[gthumb] add the SIDEBAR class to the sidebar



commit ddcb532c532162b24cf1aeb279a8cf9715f4f6b5
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Tue Nov 5 19:41:55 2013 +0100

    add the SIDEBAR class to the sidebar

 gthumb/gth-file-properties.c |    2 +-
 gthumb/gth-sidebar.c         |    2 ++
 gthumb/gth-toolbox.c         |    1 -
 3 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gthumb/gth-file-properties.c b/gthumb/gth-file-properties.c
index 717962b..07c1173 100644
--- a/gthumb/gth-file-properties.c
+++ b/gthumb/gth-file-properties.c
@@ -341,7 +341,7 @@ gth_file_properties_init (GthFileProperties *self)
 
        scrolled_win = gtk_scrolled_window_new (NULL, NULL);
        gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled_win), GTK_POLICY_AUTOMATIC, 
GTK_POLICY_AUTOMATIC);
-       gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolled_win), GTK_SHADOW_ETCHED_IN);
+       gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolled_win), GTK_SHADOW_NONE);
        gtk_widget_show (scrolled_win);
        gtk_widget_set_size_request (scrolled_win, -1, MIN_HEIGHT);
        gtk_paned_pack1 (GTK_PANED (vpaned), scrolled_win, TRUE, FALSE);
diff --git a/gthumb/gth-sidebar.c b/gthumb/gth-sidebar.c
index bd7aecb..386b662 100644
--- a/gthumb/gth-sidebar.c
+++ b/gthumb/gth-sidebar.c
@@ -138,6 +138,7 @@ _gth_sidebar_construct (GthSidebar *sidebar,
                        const char *name)
 {
        sidebar->priv->properties = gth_multipage_new ();
+       gtk_style_context_add_class (gtk_widget_get_style_context (sidebar->priv->properties), 
GTK_STYLE_CLASS_SIDEBAR);
        gtk_widget_show (sidebar->priv->properties);
        gtk_stack_add_named (GTK_STACK (sidebar), sidebar->priv->properties, GTH_SIDEBAR_PAGE_PROPERTIES);
 
@@ -151,6 +152,7 @@ _gth_sidebar_construct (GthSidebar *sidebar,
                                  sidebar);
 
        sidebar->priv->toolbox = gth_toolbox_new (name);
+       gtk_style_context_add_class (gtk_widget_get_style_context (sidebar->priv->properties), 
GTK_STYLE_CLASS_SIDEBAR);
        gtk_widget_show (sidebar->priv->toolbox);
        gtk_stack_add_named (GTK_STACK (sidebar), sidebar->priv->toolbox, GTH_SIDEBAR_PAGE_TOOLS);
 }
diff --git a/gthumb/gth-toolbox.c b/gthumb/gth-toolbox.c
index 51ca385..5333e36 100644
--- a/gthumb/gth-toolbox.c
+++ b/gthumb/gth-toolbox.c
@@ -138,7 +138,6 @@ gth_toolbox_init (GthToolbox *toolbox)
        GtkWidget *header_align;
 
        toolbox->priv = G_TYPE_INSTANCE_GET_PRIVATE (toolbox, GTH_TYPE_TOOLBOX, GthToolboxPrivate);
-       gtk_style_context_add_class (gtk_widget_get_style_context (GTK_WIDGET (toolbox)), 
GTK_STYLE_CLASS_SIDEBAR);
 
        /* tool list page */
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]