[gedit] Add the classes also to the sidebar rows



commit 1d740c7644a3596a006ee7a98064dd965486fbf0
Author: Paolo Borelli <pborelli gnome org>
Date:   Wed Dec 30 19:13:37 2015 +0100

    Add the classes also to the sidebar rows

 gedit/gedit-documents-panel.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gedit/gedit-documents-panel.c b/gedit/gedit-documents-panel.c
index ce59835..472a28c 100644
--- a/gedit/gedit-documents-panel.c
+++ b/gedit/gedit-documents-panel.c
@@ -1581,6 +1581,7 @@ row_create (GtkWidget *row)
 {
        GeditDocumentsGenericRow *generic_row = (GeditDocumentsGenericRow *)row;
        GtkWidget *event_box;
+       GtkStyleContext *context;
        GtkWidget *image;
        GIcon *icon;
 
@@ -1605,6 +1606,10 @@ row_create (GtkWidget *row)
                                                              "focus-on-click", FALSE,
                                                              NULL));
 
+       context = gtk_widget_get_style_context (generic_row->close_button);
+       gtk_style_context_add_class (context, "flat");
+       gtk_style_context_add_class (context, "small-button");
+
        icon = g_themed_icon_new_with_default_fallbacks ("window-close-symbolic");
        image = gtk_image_new_from_gicon (icon, GTK_ICON_SIZE_MENU);
        gtk_widget_show (image);


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