summaryrefslogtreecommitdiff
path: root/src/eom-scroll-view.h
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2015-07-23 21:45:07 +0200
committerinfirit <[email protected]>2015-08-31 22:35:17 +0200
commitc66a5fa6cadb49ee9ca43da098df0176a37883c5 (patch)
tree166632b0b10876e9e71ffb0f3b076e0272d88fda /src/eom-scroll-view.h
parent5a2f094f4fa1a6cc80711d2357dd1a508f6ac86c (diff)
downloadeom-c66a5fa6cadb49ee9ca43da098df0176a37883c5.tar.bz2
eom-c66a5fa6cadb49ee9ca43da098df0176a37883c5.tar.xz
GTK3: EomScrollView, Convert to GtkGrid
GtkTable is deprecated. taken from: https://git.gnome.org/browse/eog/commit/?id=c19345e
Diffstat (limited to 'src/eom-scroll-view.h')
-rw-r--r--src/eom-scroll-view.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/eom-scroll-view.h b/src/eom-scroll-view.h
index 7ed6181..24ad306 100644
--- a/src/eom-scroll-view.h
+++ b/src/eom-scroll-view.h
@@ -18,13 +18,21 @@ typedef struct _EomScrollViewPrivate EomScrollViewPrivate;
struct _EomScrollView {
+#if GTK_CHECK_VERSION (3, 4, 0)
+ GtkGrid base_instance;
+#else
GtkTable widget;
+#endif
EomScrollViewPrivate *priv;
};
struct _EomScrollViewClass {
+#if GTK_CHECK_VERSION (3, 4, 0)
+ GtkGridClass parent_class;
+#else
GtkTableClass parent_class;
+#endif
void (* zoom_changed) (EomScrollView *view, double zoom);
};