diff options
author | monsta <[email protected]> | 2016-01-20 10:56:16 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2016-01-20 10:56:16 +0300 |
commit | 4ef8ebf3a36535bd46fe40c7c7a1288f45dcae84 (patch) | |
tree | b59afec6084ded93fad2b656187fd43b876ee1e1 /src/terminal-screen-container.c | |
parent | 75b1dfbc0360b199e80e8a8b1c84b78cf1b16078 (diff) | |
download | mate-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-screen-container.c')
-rw-r--r-- | src/terminal-screen-container.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/terminal-screen-container.c b/src/terminal-screen-container.c index 8c82c63..7017be9 100644 --- a/src/terminal-screen-container.c +++ b/src/terminal-screen-container.c @@ -52,7 +52,7 @@ enum PROP_WINDOW_PLACEMENT_SET }; -G_DEFINE_TYPE (TerminalScreenContainer, terminal_screen_container, GTK_TYPE_VBOX) +G_DEFINE_TYPE (TerminalScreenContainer, terminal_screen_container, GTK_TYPE_BOX) /* helper functions */ @@ -123,6 +123,8 @@ terminal_screen_container_init (TerminalScreenContainer *container) priv->vscrollbar_policy = GTK_POLICY_AUTOMATIC; priv->window_placement = GTK_CORNER_BOTTOM_RIGHT; priv->window_placement_set = FALSE; + + gtk_orientable_set_orientation (GTK_ORIENTABLE (container), GTK_ORIENTATION_VERTICAL); } static GObject * @@ -165,7 +167,11 @@ terminal_screen_container_constructor (GType type, #else +#if GTK_CHECK_VERSION (3, 0, 0) + priv->hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); +#else priv->hbox = gtk_hbox_new (FALSE, 0); +#endif #if VTE_CHECK_VERSION (0, 38, 0) priv->vscrollbar = gtk_vscrollbar_new (gtk_scrollable_get_vadjustment (GTK_SCROLLABLE (priv->screen))); |