diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-01-14 06:16:57 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2011-01-15 03:58:30 +0800 |
commit | d47adb5922a262effdd14c1c50bb0a3660088798 (patch) | |
tree | e5e35815f8feea8d7fbf46a46d7e82f1b8ed3d6a /widgets/table/e-cell-date-edit.c | |
parent | 0af3ff804c0d71c76fd63f0a2a152cac7de64863 (diff) | |
download | gsoc2013-evolution-d47adb5922a262effdd14c1c50bb0a3660088798.tar gsoc2013-evolution-d47adb5922a262effdd14c1c50bb0a3660088798.tar.gz gsoc2013-evolution-d47adb5922a262effdd14c1c50bb0a3660088798.tar.bz2 gsoc2013-evolution-d47adb5922a262effdd14c1c50bb0a3660088798.tar.lz gsoc2013-evolution-d47adb5922a262effdd14c1c50bb0a3660088798.tar.xz gsoc2013-evolution-d47adb5922a262effdd14c1c50bb0a3660088798.tar.zst gsoc2013-evolution-d47adb5922a262effdd14c1c50bb0a3660088798.zip |
Fudge GtkScrollable for gtk2.
Yes, the GtkScrollable interface is implemented by more than just
GtkLayout, but it turns out GtkLayout is the only thing Evolution
uses the GtkScrollable API for on the gtk3 branch.
Diffstat (limited to 'widgets/table/e-cell-date-edit.c')
-rw-r--r-- | widgets/table/e-cell-date-edit.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/widgets/table/e-cell-date-edit.c b/widgets/table/e-cell-date-edit.c index 005f7a63e4..31d63d97cf 100644 --- a/widgets/table/e-cell-date-edit.c +++ b/widgets/table/e-cell-date-edit.c @@ -648,7 +648,7 @@ e_cell_date_edit_get_popup_pos (ECellDateEdit *ecde, GtkWidget *canvas = GTK_WIDGET (GNOME_CANVAS_ITEM (eti)->canvas); GtkRequisition popup_requisition; GtkAdjustment *adjustment; - GtkLayout *layout; + GtkScrollable *scrollable; GdkWindow *window; gint avail_height, screen_width, column_width, row_height; gdouble x1, y1, wx, wy; @@ -677,8 +677,8 @@ e_cell_date_edit_get_popup_pos (ECellDateEdit *ecde, *x += x1; /* The ETable positions don't include the grid lines, I think, so we add 1. */ - layout = &GNOME_CANVAS (canvas)->layout; - adjustment = gtk_layout_get_vadjustment (layout); + scrollable = GTK_SCROLLABLE (&GNOME_CANVAS (canvas)->layout); + adjustment = gtk_scrollable_get_vadjustment (scrollable); value = (gint) gtk_adjustment_get_value (adjustment); *y += y1 + 1 - value + ((GnomeCanvas *)canvas)->zoom_yofs; |