From e77cdcee8a93fffba34fa752e977ee3f2b6dac3e Mon Sep 17 00:00:00 2001 From: raveit65 Date: Sun, 3 Jul 2016 11:40:36 +0200 Subject: GTK+-3 ev-view-private: Use GtkContainer and GtkContainerClass in EvView and EvViewClass https://bugzilla.gnome.org/show_bug.cgi?id=685362 taken from: https://git.gnome.org/browse/evince/commit/?id=9c007a9 --- libview/ev-view-private.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'libview') diff --git a/libview/ev-view-private.h b/libview/ev-view-private.h index 30f6ff0e..5cfdaae8 100644 --- a/libview/ev-view-private.h +++ b/libview/ev-view-private.h @@ -108,11 +108,13 @@ typedef struct _EvHeightToPageCache { } EvHeightToPageCache; struct _EvView { - GtkLayout layout; - #if GTK_CHECK_VERSION (3, 0, 0) + GtkContainer layout; + /* Container */ GList *children; +#else + GtkLayout layout; #endif EvDocument *document; @@ -208,7 +210,11 @@ struct _EvView { }; struct _EvViewClass { +#if GTK_CHECK_VERSION (3, 0, 0) + GtkContainerClass parent_class; +#else GtkLayoutClass parent_class; +#endif void (*binding_activated) (EvView *view, GtkScrollType scroll, -- cgit v1.2.1