From b73a8f243ea4446f39012d7a64c107c25ff6d854 Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Fri, 30 Sep 2011 11:34:38 -0400 Subject: ETableHeader: Rework the header button drawing code for GTK+ 3 The code in ETable that draws the button headers is outdated, and uses deprecated gtk_paint_* functions mixed with cairo. Port the code to use the GtkStyleContext API, which allows themes to give the header the same appearance of a regular GtkTreeView header. --- widgets/table/e-table-utils.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'widgets/table/e-table-utils.c') diff --git a/widgets/table/e-table-utils.c b/widgets/table/e-table-utils.c index 007803585e..a534f22f07 100644 --- a/widgets/table/e-table-utils.c +++ b/widgets/table/e-table-utils.c @@ -40,7 +40,6 @@ e_table_state_to_header (GtkWidget *widget, ETableState *state) { ETableHeader *nh; - GtkStyle *style; const gint max_cols = e_table_header_count (full_header); gint column; GValue *val = g_new0 (GValue, 1); @@ -49,11 +48,9 @@ e_table_state_to_header (GtkWidget *widget, g_return_val_if_fail (full_header, NULL); g_return_val_if_fail (state, NULL); - style = gtk_widget_get_style (widget); - nh = e_table_header_new (); g_value_init (val, G_TYPE_DOUBLE); - g_value_set_double (val, e_table_header_width_extras (style)); + g_value_set_double (val, e_table_header_width_extras (widget)); g_object_set_property (G_OBJECT(nh), "width_extras", val); g_free (val); -- cgit