aboutsummaryrefslogtreecommitdiff
path: root/src/indicator-notifications-settings.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/indicator-notifications-settings.c')
-rw-r--r--src/indicator-notifications-settings.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/indicator-notifications-settings.c b/src/indicator-notifications-settings.c
index 3e9517c..46fd37b 100644
--- a/src/indicator-notifications-settings.c
+++ b/src/indicator-notifications-settings.c
@@ -231,6 +231,7 @@ indicator_notifications_settings_activate(GApplication *app)
GtkWidget *button_cmc;
GtkWidget *button_hide_ind;
GtkWidget *button_dnd;
+ GtkWidget *button_swap_clr_s;
GtkWidget *spin;
GtkWidget *spin_label;
GtkWidget *blacklist_label;
@@ -301,6 +302,15 @@ indicator_notifications_settings_activate(GApplication *app)
gtk_box_pack_start(GTK_BOX(vbox), button_dnd, FALSE, FALSE, 4);
gtk_widget_show(button_dnd);
+ /* swap-clear-settings */
+ button_swap_clr_s = gtk_check_button_new_with_label(_("Swap \"Clear\" and \"Settings\" items"));
+ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(button_swap_clr_s),
+ g_settings_get_boolean(self->settings, NOTIFICATIONS_KEY_SWAP_CLEAR_SETTINGS));
+ g_object_set_data(G_OBJECT(button_swap_clr_s), SCHEMA_KEY, NOTIFICATIONS_KEY_SWAP_CLEAR_SETTINGS);
+ g_signal_connect(button_swap_clr_s, "toggled", G_CALLBACK(button_toggled_cb), self->settings);
+ gtk_box_pack_start(GTK_BOX(vbox), button_swap_clr_s, FALSE, FALSE, 4);
+ gtk_widget_show(button_swap_clr_s);
+
/* max-items */
/* FIXME: indicator does not change max items until restart... */
spin_label = gtk_label_new(_("Maximum number of visible notifications"));