[anjuta] gtodo: Deselecting "Hide completed items" does nothing (#614751)



commit cccfbd6fe6d352b8245e64163fac0db988affbf7
Author: Johannes Schmid <jhs gnome org>
Date:   Mon Apr 5 19:52:25 2010 +0200

    gtodo: Deselecting "Hide completed items" does nothing (#614751)

 plugins/gtodo/preferences.c |   31 +++++++++++++++++++++++++++++++
 1 files changed, 31 insertions(+), 0 deletions(-)
---
diff --git a/plugins/gtodo/preferences.c b/plugins/gtodo/preferences.c
index 24d71e6..325da48 100644
--- a/plugins/gtodo/preferences.c
+++ b/plugins/gtodo/preferences.c
@@ -383,6 +383,24 @@ static void  pref_gconf_changed_hl_indays(GConfClient *client)
 	category_changed();
 }
 
+static void  pref_gconf_changed_hide_due(GConfClient *client)
+{
+	settings.hide_due = gconf_client_get_bool(client,"/apps/gtodo/prefs/hide-due",NULL);
+	category_changed();
+}
+
+static void  pref_gconf_changed_hide_done(GConfClient *client)
+{
+	settings.hide_done = gconf_client_get_bool(client,"/apps/gtodo/prefs/hide-done",NULL);
+	category_changed();
+}
+
+static void  pref_gconf_changed_hide_nodate(GConfClient *client)
+{
+	settings.hide_nodate = gconf_client_get_bool(client,"/apps/gtodo/prefs/hide-nodate",NULL);
+	category_changed();
+}
+
 void pref_gconf_set_notifications(GConfClient *client)
 {
 	gconf_client_notify_add(client, "/apps/gtodo/prefs/restore-size",
@@ -433,6 +451,19 @@ void pref_gconf_set_notifications(GConfClient *client)
 	gconf_client_notify_add(client,"/apps/gtodo/prefs/hl-indays",
 			(GConfClientNotifyFunc) pref_gconf_changed_hl_indays,
 			NULL,
+			NULL, NULL);
+	
+	gconf_client_notify_add(client,"/apps/gtodo/prefs/hide-done",
+			(GConfClientNotifyFunc) pref_gconf_changed_hide_done,
+			NULL,
 			NULL, NULL);	
 
+	gconf_client_notify_add(client,"/apps/gtodo/prefs/hide-due",
+			(GConfClientNotifyFunc) pref_gconf_changed_hide_due,
+			NULL,
+			NULL, NULL);	
+	gconf_client_notify_add(client,"/apps/gtodo/prefs/hide-nodate",
+			(GConfClientNotifyFunc) pref_gconf_changed_hide_nodate,
+			NULL,
+			NULL, NULL);
 }



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