diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2011-09-30 23:34:38 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2011-09-30 23:44:21 +0800 |
commit | b73a8f243ea4446f39012d7a64c107c25ff6d854 (patch) | |
tree | 1fce505e0670540cff0fd9ede4a822e75b89e20c /widgets/table/e-table-utils.c | |
parent | 6b1663a63d6d49fa9a74420a61c126a3f7ab390a (diff) | |
download | gsoc2013-evolution-b73a8f243ea4446f39012d7a64c107c25ff6d854.tar.gz gsoc2013-evolution-b73a8f243ea4446f39012d7a64c107c25ff6d854.tar.zst gsoc2013-evolution-b73a8f243ea4446f39012d7a64c107c25ff6d854.zip |
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.
Diffstat (limited to 'widgets/table/e-table-utils.c')
-rw-r--r-- | widgets/table/e-table-utils.c | 5 |
1 files changed, 1 insertions, 4 deletions
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); |