aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/itip-formatter/itip-formatter.c
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@gnome-db.org>2011-11-09 19:35:00 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-11-09 19:35:00 +0800
commit925b03c373fc79ccd56ab718a0ab97ab92c06115 (patch)
tree57bdcde0d7f103022ad47967c4e5956cfb0f9f40 /plugins/itip-formatter/itip-formatter.c
parenta610cccc0a32d48809301c35341e02822edaa612 (diff)
downloadgsoc2013-evolution-925b03c373fc79ccd56ab718a0ab97ab92c06115.tar.gz
gsoc2013-evolution-925b03c373fc79ccd56ab718a0ab97ab92c06115.tar.zst
gsoc2013-evolution-925b03c373fc79ccd56ab718a0ab97ab92c06115.zip
Make it fully build
Diffstat (limited to 'plugins/itip-formatter/itip-formatter.c')
-rw-r--r--plugins/itip-formatter/itip-formatter.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/plugins/itip-formatter/itip-formatter.c b/plugins/itip-formatter/itip-formatter.c
index d9ec622f6e..c6852b7baf 100644
--- a/plugins/itip-formatter/itip-formatter.c
+++ b/plugins/itip-formatter/itip-formatter.c
@@ -2949,9 +2949,12 @@ static void
delete_toggled_cb (GtkWidget *widget,
gpointer data)
{
+ GSettings *settings;
EMConfigTargetPrefs *target = data;
- g_settings_set_boolean (target->settings, CONF_KEY_DELETE, gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (widget)));
+ settings = g_settings_new ("org.gnome.evolution.eplugin.itip");
+ g_settings_set_boolean (settings, CONF_KEY_DELETE, gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (widget)));
+ g_object_unref (settings);
}
static void
@@ -3022,6 +3025,7 @@ itip_formatter_page_factory (EPlugin *ep,
GtkWidget *scrolledwin;
ESourceList *source_list;
gchar *str;
+ GSettings *settings;
/* Create a new notebook page */
page = gtk_vbox_new (FALSE, 0);
@@ -3050,12 +3054,15 @@ itip_formatter_page_factory (EPlugin *ep,
gtk_box_pack_start (GTK_BOX (hbox), inner_vbox, FALSE, FALSE, 0);
/* Delete message after acting */
- /* FIXME Need a schema for this */
+ settings = g_settings_new ("org.gnome.evolution.eplugin.itip");
+
check = gtk_check_button_new_with_mnemonic (_("_Delete message after acting"));
- gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (check), g_settings_get_boolean (target->settings, CONF_KEY_DELETE));
+ gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (check), g_settings_get_boolean (settings, CONF_KEY_DELETE));
g_signal_connect (GTK_TOGGLE_BUTTON (check), "toggled", G_CALLBACK (delete_toggled_cb), target);
gtk_box_pack_start (GTK_BOX (inner_vbox), check, FALSE, FALSE, 0);
+ g_object_unref (settings);
+
/* "Conflict searching" */
frame = gtk_vbox_new (FALSE, 6);
gtk_box_pack_start (GTK_BOX (page), frame, TRUE, TRUE, 24);