From 610b1913c3f4cfc082c52bada71731aaca8ffcd4 Mon Sep 17 00:00:00 2001 From: monsta Date: Wed, 20 Jan 2016 18:21:59 +0300 Subject: information-panel: use GtkWidget* instead of Gtk(V)Box and don't use deprecated function in GTK+3 build --- src/caja-information-panel.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/caja-information-panel.c b/src/caja-information-panel.c index 417f2b85..fed6e1d1 100644 --- a/src/caja-information-panel.c +++ b/src/caja-information-panel.c @@ -51,7 +51,7 @@ struct CajaInformationPanelDetails { - GtkVBox *container; + GtkWidget *container; CajaWindowInfo *window; CajaSidebarTitle *title; GtkWidget *button_box_centerer; @@ -260,11 +260,15 @@ caja_information_panel_init (CajaInformationPanel *information_panel) gtk_widget_add_events (GTK_WIDGET (information_panel), GDK_POINTER_MOTION_MASK); /* create the container box */ - information_panel->details->container = GTK_VBOX (gtk_vbox_new (FALSE, 0)); +#if GTK_CHECK_VERSION (3, 0, 0) + information_panel->details->container = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); +#else + information_panel->details->container = gtk_vbox_new (FALSE, 0); +#endif gtk_container_set_border_width (GTK_CONTAINER (information_panel->details->container), 0); - gtk_widget_show (GTK_WIDGET (information_panel->details->container)); + gtk_widget_show (information_panel->details->container); gtk_container_add (GTK_CONTAINER (information_panel), - GTK_WIDGET (information_panel->details->container)); + information_panel->details->container); /* allocate and install the index title widget */ information_panel->details->title = CAJA_SIDEBAR_TITLE (caja_sidebar_title_new ()); -- cgit v1.2.1