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

ochosi pushed a 
commit to branch 
master
in repository xfce/xfce4-settings.

commit f7c1b66d13570f3e6f8efcb2ac2fe46b8dfc9c92
Author: Simon Steinbeiss <[email protected]>
Date:   Sat Sep 1 02:11:45 2018 +0200

    display: Make sure the popdown disappears on saving the profile
---
 dialogs/display-settings/main.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/dialogs/display-settings/main.c b/dialogs/display-settings/main.c
index 010254a..36ea717 100644
--- a/dialogs/display-settings/main.c
+++ b/dialogs/display-settings/main.c
@@ -1369,7 +1369,7 @@ display_settings_profile_list_populate (GtkBuilder 
*builder)
 
     profiles = display_settings_get_profiles ();
 
-    /* populate combobox */
+    /* Populate treeview */
     current = g_list_first (profiles);
     while (current)
     {
@@ -1581,6 +1581,7 @@ static void
 display_settings_profile_create_cb (GtkWidget *widget, GtkBuilder *builder)
 {
     const gchar *profile_name;
+    GtkWidget *popover;
 
     profile_name = gtk_entry_get_text (GTK_ENTRY (profile_create_entry));
     if (profile_name)
@@ -1600,8 +1601,10 @@ display_settings_profile_create_cb (GtkWidget *widget, 
GtkBuilder *builder)
 
         g_free (property);
         g_free (profile_hash);
-        //g_free (profile_name);
     }
+    popover = gtk_widget_get_ancestor (widget, GTK_TYPE_POPOVER);
+    if (popover)
+        gtk_popover_popdown (GTK_POPOVER (popover));
 }
 
 static void

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.
_______________________________________________
Xfce4-commits mailing list
[email protected]
https://mail.xfce.org/mailman/listinfo/xfce4-commits

Reply via email to