From 0ea8ddb0d7f34a22da6467fb4688b321735c601d Mon Sep 17 00:00:00 2001 From: raveit65 Date: Tue, 1 Sep 2015 20:06:15 +0200 Subject: Gtk3: Remove deprecated GtkVBox/GtkHBox usage The GtkHBox and GtkVBox have been deprecated by now. Also be consistent with the other properties declarations and use PROP_0 instead of PROP = 1. taken from: https://git.gnome.org/browse/eog/commit/?id=81cb068 --- src/eom-sidebar.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/eom-sidebar.h') diff --git a/src/eom-sidebar.h b/src/eom-sidebar.h index 7e2f15d..88851b6 100644 --- a/src/eom-sidebar.h +++ b/src/eom-sidebar.h @@ -42,13 +42,21 @@ typedef struct _EomSidebarPrivate EomSidebarPrivate; #define EOM_SIDEBAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), EOM_TYPE_SIDEBAR, EomSidebarClass)) struct _EomSidebar { +#if GTK_CHECK_VERSION (3, 2, 0) + GtkBox base_instance; +#else GtkVBox base_instance; +#endif EomSidebarPrivate *priv; }; struct _EomSidebarClass { +#if GTK_CHECK_VERSION (3, 2, 0) + GtkBoxClass base_class; +#else GtkVBoxClass base_class; +#endif void (* page_added) (EomSidebar *eom_sidebar, GtkWidget *main_widget); -- cgit v1.2.1