[Xfce4-commits] [apps/xfce4-notifyd] 02/04: Set a default value for "show notifications on" option

noreply at xfce.org noreply at xfce.org
Tue Nov 7 23:47:15 CET 2017


This is an automated email from the git hooks/post-receive script.

o   c   h   o   s   i       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository apps/xfce4-notifyd.

commit ec166d18047e2b287745918a5287036c8c68ae4f
Author: Christian Hesse <mail at eworm.de>
Date:   Fri Nov 3 00:46:48 2017 +0100

    Set a default value for "show notifications on" option
---
 xfce4-notifyd-config/main.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/xfce4-notifyd-config/main.c b/xfce4-notifyd-config/main.c
index 77605b6..391095d 100644
--- a/xfce4-notifyd-config/main.c
+++ b/xfce4-notifyd-config/main.c
@@ -830,6 +830,8 @@ xfce4_notifyd_config_setup_dialog(GtkBuilder *builder)
     primary_monitor = GTK_WIDGET(gtk_builder_get_object(builder, "primary_monitor"));
     xfconf_g_property_bind(channel, "/primary-monitor", G_TYPE_UINT,
                            G_OBJECT(primary_monitor), "active");
+    if(gtk_combo_box_get_active(GTK_COMBO_BOX(primary_monitor)) == -1)
+        gtk_combo_box_set_active(GTK_COMBO_BOX(primary_monitor), 0);
 
     // Appearance
     theme_combo = GTK_WIDGET(gtk_builder_get_object(builder, "theme_combo"));

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list