diff options
author | Nickolay V. Shmyrev <nshmyrev@yandex.ru> | 2007-05-09 16:26:44 (GMT) |
---|---|---|
committer | Nickolay V. Shmyrev <nshmyrev@src.gnome.org> | 2007-05-09 16:26:44 (GMT) |
commit | 122c227b07387a942e4379eef8132fe6b6e92e80 (patch) | |
tree | e563df6100a1aa8eea5de74593c6aea1db507ba8 /shell/ev-navigation-action.c | |
parent | 33bf66b8f4e2d719c847af1c177c71b5173b49aa (diff) |
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):
Add app-specific icons to our icon theme. Fixes bug
#425508.
svn path=/trunk/; revision=2444
Diffstat (limited to 'shell/ev-navigation-action.c')
-rw-r--r-- | shell/ev-navigation-action.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/shell/ev-navigation-action.c b/shell/ev-navigation-action.c index 9da89f9..3aa1bea 100644 --- a/shell/ev-navigation-action.c +++ b/shell/ev-navigation-action.c @@ -134,12 +134,12 @@ build_menu (EvNavigationAction *action) EvHistory *history = action->priv->history; int start, end, i; - menu = GTK_MENU_SHELL (gtk_menu_new ()); - - if (history == NULL) { - return GTK_WIDGET (menu); + if (history == NULL || ev_history_get_n_links (history) <= 0) { + return NULL; } + menu = GTK_MENU_SHELL (gtk_menu_new ()); + start = 0; end = ev_history_get_n_links (history); |