summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormonsta <[email protected]>2016-01-20 18:21:59 +0300
committerWolfgang Ulbrich <[email protected]>2016-01-23 03:59:55 +0100
commit610b1913c3f4cfc082c52bada71731aaca8ffcd4 (patch)
treec388ef38ae945de383e5947fb044d2dc5d5405b6
parent805c09d647f40ee44466be501ccc054688cd68ff (diff)
downloadcaja-610b1913c3f4cfc082c52bada71731aaca8ffcd4.tar.bz2
caja-610b1913c3f4cfc082c52bada71731aaca8ffcd4.tar.xz
information-panel: use GtkWidget* instead of Gtk(V)Box
and don't use deprecated function in GTK+3 build
-rw-r--r--src/caja-information-panel.c12
1 files changed, 8 insertions, 4 deletions
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 ());