diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-03-10 20:38:32 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-03-10 20:40:21 +0800 |
commit | 56e6bdb414fb251d99ffe43667bbc2a25741091a (patch) | |
tree | 73f7de03174d951142831b3bb342d83343e9ef98 /widgets/table/e-table-field-chooser-item.c | |
parent | a674eab94dd55978a6fa8db1fbe57bf419377f43 (diff) | |
download | gsoc2013-evolution-56e6bdb414fb251d99ffe43667bbc2a25741091a.tar.gz 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-field-chooser-item.c')
-rw-r--r-- | widgets/table/e-table-field-chooser-item.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/widgets/table/e-table-field-chooser-item.c b/widgets/table/e-table-field-chooser-item.c index f38cb3964a..69f1fe85dc 100644 --- a/widgets/table/e-table-field-chooser-item.c +++ b/widgets/table/e-table-field-chooser-item.c @@ -463,7 +463,7 @@ etfci_draw (GnomeCanvasItem *item, GdkDrawable *drawable, gint x, gint y, gint w rows = e_table_header_count (etfci->combined_header); style = GTK_WIDGET (canvas)->style; - state = GTK_WIDGET_STATE (canvas); + state = gtk_widget_get_state (GTK_WIDGET (canvas)); y1 = y2 = 0; for (row = 0; row < rows; row++, y1 = y2) { @@ -519,6 +519,7 @@ etfci_start_drag (ETableFieldChooserItem *etfci, GdkEvent *event, gdouble x, gdo GtkWidget *widget = GTK_WIDGET (GNOME_CANVAS_ITEM (etfci)->canvas); GtkTargetList *list; GdkDragContext *context; + GtkStateType state; ETableCol *ecol; GdkPixmap *pixmap; gint drag_col; @@ -552,8 +553,10 @@ etfci_start_drag (ETableFieldChooserItem *etfci, GdkEvent *event, gdouble x, gdo button_height = e_table_header_compute_height (ecol, widget); pixmap = gdk_pixmap_new (widget->window, etfci->width, button_height, -1); + state = gtk_widget_get_state (widget); + e_table_header_draw_button (pixmap, ecol, - widget->style, GTK_WIDGET_STATE (widget), + widget->style, state, widget, 0, 0, etfci->width, button_height, |