[Xfce4-commits] [xfce/thunar] 03/03: Add sidebar class to the sidepanes

noreply at xfce.org noreply at xfce.org
Mon Sep 18 00:32:57 CEST 2017


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

a   n   d   r   e       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/thunar.

commit 4f8037f2c7a4f953f3f2ce3f869f5fc84efc1c67
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date:   Mon Sep 18 00:11:10 2017 +0200

    Add sidebar class to the sidepanes
---
 thunar/thunar-window.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/thunar/thunar-window.c b/thunar/thunar-window.c
index f5ba594..2e8af3e 100644
--- a/thunar/thunar-window.c
+++ b/thunar/thunar-window.c
@@ -1896,6 +1896,8 @@ static void
 thunar_window_install_sidepane (ThunarWindow *window,
                                 GType         type)
 {
+  GtkStyleContext *context;
+
   _thunar_return_if_fail (type == G_TYPE_NONE || g_type_is_a (type, THUNAR_TYPE_SIDE_PANE));
   _thunar_return_if_fail (THUNAR_IS_WINDOW (window));
 
@@ -1917,6 +1919,8 @@ thunar_window_install_sidepane (ThunarWindow *window,
       exo_binding_new (G_OBJECT (window), "current-directory", G_OBJECT (window->sidepane), "current-directory");
       g_signal_connect_swapped (G_OBJECT (window->sidepane), "change-directory", G_CALLBACK (thunar_window_set_current_directory), window);
       g_signal_connect_swapped (G_OBJECT (window->sidepane), "open-new-tab", G_CALLBACK (thunar_window_notebook_insert), window);
+      context = gtk_widget_get_style_context (window->sidepane);
+      gtk_style_context_add_class (context, "sidebar");
       gtk_paned_pack1 (GTK_PANED (window->paned), window->sidepane, FALSE, FALSE);
       gtk_widget_show (window->sidepane);
 

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


More information about the Xfce4-commits mailing list