[evolution] Bug 737300 - Make message list header draw closer to GtkTreeView



commit e47598298aa129f1b35dc8a0b99ee42471d4a391
Author: Milan Crha <mcrha redhat com>
Date:   Fri Feb 27 09:31:10 2015 +0100

    Bug 737300 - Make message list header draw closer to GtkTreeView

 e-util/e-table-header-utils.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/e-util/e-table-header-utils.c b/e-util/e-table-header-utils.c
index b7ce763..371d173 100644
--- a/e-util/e-table-header-utils.c
+++ b/e-util/e-table-header-utils.c
@@ -150,6 +150,10 @@ e_table_header_draw_button (cairo_t *cr,
        gtk_style_context_save (context);
        gtk_style_context_set_state (context, state_flags);
        gtk_style_context_add_class (context, GTK_STYLE_CLASS_BUTTON);
+       if ((ecol->text && *ecol->text) || !ecol->icon_name)
+               gtk_style_context_add_class (context, "text-button");
+       else
+               gtk_style_context_add_class (context, "image-button");
 
        gtk_style_context_get_padding (context, state_flags, &padding);
 


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