[Xfce4-commits] [xfce/xfce4-session] 02/08: Initialize the session list treeview if necessary

noreply at xfce.org noreply at xfce.org
Mon May 13 22:10:41 CEST 2019


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-session.

commit 417dae36e4b1fb4dc91f2414c9a2ef06c26f225d
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date:   Sat May 11 22:48:41 2019 +0200

    Initialize the session list treeview if necessary
---
 settings/session-editor.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/settings/session-editor.c b/settings/session-editor.c
index b9dd193..c1218dd 100644
--- a/settings/session-editor.c
+++ b/settings/session-editor.c
@@ -165,6 +165,12 @@ session_editor_save_session(GtkWidget *btn,
         gtk_widget_show (gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook), 3));
         sessions = settings_list_sessions (rc);
         model = gtk_tree_view_get_model (GTK_TREE_VIEW (treeview));
+        /* If the treeview hasn't been initialized we do it now */
+        if (!GTK_IS_LIST_STORE (model))
+        {
+            settings_list_sessions_treeview_init (GTK_TREE_VIEW (treeview));
+            model = gtk_tree_view_get_model (GTK_TREE_VIEW (treeview));
+        }
         settings_list_sessions_populate (model, sessions);
     }
 }

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


More information about the Xfce4-commits mailing list