[Xfce4-commits] [xfce/xfce4-settings] 46/67: display: Make sure the popdown disappears on saving the profile

noreply at xfce.org noreply at xfce.org
Sat Sep 22 11:23:37 CEST 2018


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 xfce/xfce4-settings.

commit f7c1b66d13570f3e6f8efcb2ac2fe46b8dfc9c92
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
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.


More information about the Xfce4-commits mailing list