summaryrefslogtreecommitdiff
path: root/src/terminal-info-bar.c
diff options
context:
space:
mode:
authormonsta <[email protected]>2016-01-20 10:56:16 +0300
committermonsta <[email protected]>2016-01-20 10:56:16 +0300
commit4ef8ebf3a36535bd46fe40c7c7a1288f45dcae84 (patch)
treeb59afec6084ded93fad2b656187fd43b876ee1e1 /src/terminal-info-bar.c
parent75b1dfbc0360b199e80e8a8b1c84b78cf1b16078 (diff)
downloadmate-terminal-4ef8ebf3a36535bd46fe40c7c7a1288f45dcae84.tar.bz2
mate-terminal-4ef8ebf3a36535bd46fe40c7c7a1288f45dcae84.tar.xz
use GtkBox instead of GtkVBox/GtkHBox in both GTK+ builds
and fix deprecated usage of GtkHBox and GtkVBox in GTK+3 build
Diffstat (limited to 'src/terminal-info-bar.c')
-rw-r--r--src/terminal-info-bar.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/terminal-info-bar.c b/src/terminal-info-bar.c
index 0574224..5e60f21 100644
--- a/src/terminal-info-bar.c
+++ b/src/terminal-info-bar.c
@@ -41,7 +41,11 @@ terminal_info_bar_init (TerminalInfoBar *bar)
priv = bar->priv = TERMINAL_INFO_BAR_GET_PRIVATE (bar);
+#if GTK_CHECK_VERSION (3, 0, 0)
+ priv->content_box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
+#else
priv->content_box = gtk_vbox_new (FALSE, 6);
+#endif
gtk_box_pack_start (GTK_BOX (gtk_info_bar_get_content_area (info_bar)),
priv->content_box, TRUE, TRUE, 0);
}