summaryrefslogtreecommitdiff
path: root/src/terminal-window.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-window.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-window.c')
-rw-r--r--src/terminal-window.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/terminal-window.c b/src/terminal-window.c
index b6e8eb0..8bcc30a 100644
--- a/src/terminal-window.c
+++ b/src/terminal-window.c
@@ -2081,7 +2081,11 @@ terminal_window_init (TerminalWindow *window)
priv->active_screen = NULL;
priv->menubar_visible = FALSE;
+#if GTK_CHECK_VERSION (3, 0, 0)
+ main_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
+#else
main_vbox = gtk_vbox_new (FALSE, 0);
+#endif
gtk_container_add (GTK_CONTAINER (window), main_vbox);
gtk_widget_show (main_vbox);
@@ -3903,7 +3907,11 @@ terminal_set_title_callback (GtkAction *action,
message_area = gtk_message_dialog_get_message_area (GTK_MESSAGE_DIALOG (dialog));
gtk_container_foreach (GTK_CONTAINER (message_area), (GtkCallback) gtk_widget_hide, NULL);
+#if GTK_CHECK_VERSION (3, 0, 0)
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
+#else
hbox = gtk_hbox_new (FALSE, 12);
+#endif
gtk_box_pack_start (GTK_BOX (message_area), hbox, FALSE, FALSE, 0);
label = gtk_label_new_with_mnemonic (_("_Title:"));