[gthumb] removed the history list from the Go menu
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] removed the history list from the Go menu
- Date: Sat, 9 Nov 2013 20:04:19 +0000 (UTC)
commit 766688a5cf01fbfabbb1ef950f1c469edc664323
Author: Paolo Bacchilega <paobac src gnome org>
Date: Fri Oct 18 18:24:18 2013 +0200
removed the history list from the Go menu
gthumb/gth-browser-ui.h | 1 -
gthumb/gth-browser.c | 36 ++----------------------------------
2 files changed, 2 insertions(+), 35 deletions(-)
---
diff --git a/gthumb/gth-browser-ui.h b/gthumb/gth-browser-ui.h
index a1eedde..7015fa6 100644
--- a/gthumb/gth-browser-ui.h
+++ b/gthumb/gth-browser-ui.h
@@ -93,7 +93,6 @@ static const char *fixed_ui_info =
" <separator name='EntryPointListSeparator'/>"
" <menuitem action='Go_Clear_History'/>"
" <separator name='BeforeHistoryList'/>"
-" <placeholder name='HistoryList'/>"
" </menu>"
" <placeholder name='OtherMenus'/>"
" <menu name='Help' action='HelpMenu'>"
diff --git a/gthumb/gth-browser.c b/gthumb/gth-browser.c
index a9f7e1e..0814a98 100644
--- a/gthumb/gth-browser.c
+++ b/gthumb/gth-browser.c
@@ -746,10 +746,6 @@ _gth_browser_history_print (GthBrowser *browser)
static void
_gth_browser_history_menu (GthBrowser *browser)
{
- GtkWidget *menu;
- GList *scan;
- GtkWidget *separator;
-
_gth_browser_update_go_sensitivity (browser);
/* Update the history menu model for the headerbar button */
@@ -757,7 +753,8 @@ _gth_browser_history_menu (GthBrowser *browser)
g_menu_remove_all (browser->priv->history_menu);
if (browser->priv->history != NULL) {
- int i;
+ GList *scan;
+ int i;
for (i = 0, scan = browser->priv->history;
scan;
@@ -793,36 +790,7 @@ _gth_browser_history_menu (GthBrowser *browser)
g_free (label);
g_object_unref (file_source);
}
-
- /* if (i > 0)
- _gth_browser_add_clear_history_menu_item (browser, menu); FIXME */
}
-
- /* Update the history list in the go menu */
-
- separator = gtk_ui_manager_get_widget (browser->priv->ui, "/MenuBar/Go/HistoryList");
- menu = gtk_widget_get_parent (separator);
-
- _gtk_container_remove_children (GTK_CONTAINER (menu), separator, NULL);
-
- if (browser->priv->history != NULL) {
- int i;
-
- for (i = 0, scan = browser->priv->history;
- scan && (i < MAX_HISTORY_LENGTH);
- scan = scan->next)
- {
- _gth_browser_add_file_menu_item (browser,
- menu,
- scan->data,
- NULL,
- GTH_ACTION_GO_TO,
- ++i);
- }
- }
-
- separator = gtk_ui_manager_get_widget (browser->priv->ui, "/MenuBar/Go/BeforeHistoryList");
- gtk_widget_show (separator);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]