aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-header-item.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-03-10 20:38:32 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-03-10 20:40:21 +0800
commit56e6bdb414fb251d99ffe43667bbc2a25741091a (patch)
tree73f7de03174d951142831b3bb342d83343e9ef98 /widgets/table/e-table-header-item.c
parenta674eab94dd55978a6fa8db1fbe57bf419377f43 (diff)
downloadgsoc2013-evolution-56e6bdb414fb251d99ffe43667bbc2a25741091a.tar
gsoc2013-evolution-56e6bdb414fb251d99ffe43667bbc2a25741091a.tar.gz
gsoc2013-evolution-56e6bdb414fb251d99ffe43667bbc2a25741091a.tar.bz2
gsoc2013-evolution-56e6bdb414fb251d99ffe43667bbc2a25741091a.tar.lz
gsoc2013-evolution-56e6bdb414fb251d99ffe43667bbc2a25741091a.tar.xz
gsoc2013-evolution-56e6bdb414fb251d99ffe43667bbc2a25741091a.tar.zst
gsoc2013-evolution-56e6bdb414fb251d99ffe43667bbc2a25741091a.zip
Bug 612374 - Build failure due to recent GTK+ deprecations
Diffstat (limited to 'widgets/table/e-table-header-item.c')
-rw-r--r--widgets/table/e-table-header-item.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/widgets/table/e-table-header-item.c b/widgets/table/e-table-header-item.c
index 7c75b58963..b2bcb591f8 100644
--- a/widgets/table/e-table-header-item.c
+++ b/widgets/table/e-table-header-item.c
@@ -1000,6 +1000,7 @@ ethi_draw (GnomeCanvasItem *item,
x2 += ethi->group_indent_width;
for (col = 0; col < cols; col++, x1 = x2) {
ETableCol *ecol = e_table_header_get_column (ethi->eth, col);
+ GtkStateType state;
gint col_width;
col_width = ecol->width;
@@ -1015,9 +1016,11 @@ ethi_draw (GnomeCanvasItem *item,
if (x2 <= x1)
continue;
+ state = gtk_widget_get_state (GTK_WIDGET (canvas));
+
e_table_header_draw_button (drawable, ecol,
GTK_WIDGET (canvas)->style,
- GTK_WIDGET_STATE (canvas),
+ state,
GTK_WIDGET (canvas),
x1 - x, -y,
width, height,
@@ -1154,6 +1157,7 @@ ethi_start_drag (ETableHeaderItem *ethi, GdkEvent *event)
GtkWidget *widget = GTK_WIDGET (GNOME_CANVAS_ITEM (ethi)->canvas);
GtkTargetList *list;
GdkDragContext *context;
+ GtkStateType state;
ETableCol *ecol;
gint col_width;
GdkPixmap *pixmap;
@@ -1210,10 +1214,12 @@ ethi_start_drag (ETableHeaderItem *ethi, GdkEvent *event)
col_width = ecol->width;
pixmap = gdk_pixmap_new (widget->window, col_width, ethi->height, -1);
+ state = gtk_widget_get_state (widget);
+
e_table_header_draw_button (
pixmap, ecol,
widget->style,
- GTK_WIDGET_STATE (widget),
+ state,
widget,
0, 0,
col_width, ethi->height,