+2007-05-09 Nickolay V. Shmyrev <nshmyrev@yandex.ru>
+
+ * shell/ev-application.c: (ev_application_open_window),
+ (ev_application_add_icon_path_for_screen),
+ (ev_application_open_uri_at_dest):
+ * shell/ev-navigation-action-widget.c: (popup_menu_under_arrow):
+ * shell/ev-navigation-action.c: (build_menu):
+
+ Add app-specific icons to our icon theme. Fixes bug
+ #425508.
+
+2007-05-09 Nickolay V. Shmyrev <nshmyrev@yandex.ru>
+
+ * shell/ev-application.c: (ev_application_open_window),
+ (ev_application_add_icon_path_for_screen),
+ (ev_application_open_uri_at_dest):
+ * shell/ev-navigation-action-widget.c: (popup_menu_under_arrow):
+ * shell/ev-navigation-action.c: (build_menu):
+
2007-05-09 Nickolay V. Shmyrev <nshmyrev@yandex.ru>
* shell/ev-history.c: (ev_history_class_init),
#include <string.h>
+static void ev_application_add_icon_path_for_screen (GdkScreen *screen);
+
struct _EvApplication {
GObject base_instance;
if (screen) {
gtk_window_set_screen (GTK_WINDOW (new_window), screen);
}
+ ev_application_add_icon_path_for_screen (screen);
gtk_widget_show (new_window);
return uri_window;
}
-/**
- * ev_application_open_uri_at_dest:
- * @application: The instance of the application.
- * @uri: The uri to be opened.
- * @screen: Thee screen where the link will be shown.
- * @dest: The #EvLinkDest of the document.
- * @mode: The run mode of the window.
- * @unlink_temp_file: The unlink_temp_file option value.
- * @timestamp: Current time value.
- */
-void
-ev_application_open_uri_at_dest (EvApplication *application,
- const char *uri,
- GdkScreen *screen,
- EvLinkDest *dest,
- EvWindowRunMode mode,
- gboolean unlink_temp_file,
- guint timestamp)
+static void
+ev_application_add_icon_path_for_screen (GdkScreen *screen)
{
- EvWindow *new_window;
GtkIconTheme *icon_theme;
- g_return_if_fail (uri != NULL);
-
icon_theme = gtk_icon_theme_get_for_screen (screen);
if (icon_theme) {
gchar **path = NULL;
g_free (ev_icons_path);
g_strfreev (path);
}
+}
+
+/**
+ * ev_application_open_uri_at_dest:
+ * @application: The instance of the application.
+ * @uri: The uri to be opened.
+ * @screen: Thee screen where the link will be shown.
+ * @dest: The #EvLinkDest of the document.
+ * @mode: The run mode of the window.
+ * @unlink_temp_file: The unlink_temp_file option value.
+ * @timestamp: Current time value.
+ */
+void
+ev_application_open_uri_at_dest (EvApplication *application,
+ const char *uri,
+ GdkScreen *screen,
+ EvLinkDest *dest,
+ EvWindowRunMode mode,
+ gboolean unlink_temp_file,
+ guint timestamp)
+{
+ EvWindow *new_window;
+
+ g_return_if_fail (uri != NULL);
+
+ ev_application_add_icon_path_for_screen (screen);
new_window = ev_application_get_uri_window (application, uri);
popup_menu_under_arrow (EvNavigationActionWidget *button,
GdkEventButton *event)
{
+ g_signal_emit (button, signals[SHOW_MENU], 0);
+
if (!button->menu)
return;
- g_signal_emit (button, signals[SHOW_MENU], 0);
-
gtk_menu_popup (button->menu, NULL, NULL,
(GtkMenuPositionFunc) menu_position_func,
button,