[file-roller] fixed setting of the recent list limit



commit b68e78583ec73337558f0f2c48002f53117e7757
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Sat Oct 22 12:23:23 2011 +0200

    fixed setting of the recent list limit

 src/fr-window.c |   17 ++++++++++-------
 1 files changed, 10 insertions(+), 7 deletions(-)
---
diff --git a/src/fr-window.c b/src/fr-window.c
index 660ca1c..21c8378 100644
--- a/src/fr-window.c
+++ b/src/fr-window.c
@@ -4957,14 +4957,17 @@ pref_history_len_changed (GSettings  *settings,
 			  const char *key,
 			  gpointer    user_data)
 {
-	FrWindow *window = user_data;
+	FrWindow  *window = user_data;
+	int        limit;
+	GtkAction *action;
 
-	/* FIXME
-	gtk_recent_chooser_set_limit (GTK_RECENT_CHOOSER (window->priv->recent_chooser_menu),
-				      g_settings_get_int (settings, PREF_UI_HISTORY_LEN));
-	gtk_recent_chooser_set_limit (GTK_RECENT_CHOOSER (window->priv->recent_chooser_toolbar),
-				      g_settings_get_int (settings, PREF_UI_HISTORY_LEN));
-	*/
+	limit = g_settings_get_int (settings, PREF_UI_HISTORY_LEN);
+
+	action = gtk_action_group_get_action (window->priv->actions, "OpenRecent");
+	gtk_recent_chooser_set_limit (GTK_RECENT_CHOOSER (action), limit);
+
+	action = gtk_action_group_get_action (window->priv->actions, "OpenRecent_Toolbar");
+	gtk_recent_chooser_set_limit (GTK_RECENT_CHOOSER (action), limit);
 }
 
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]