diff options
author | Wolfgang Ulbrich <[email protected]> | 2015-11-21 13:02:46 +0100 |
---|---|---|
committer | Wolfgang Ulbrich <[email protected]> | 2015-11-21 13:02:46 +0100 |
commit | 11faa5bb63005322d016aa0c76653985d0468b42 (patch) | |
tree | 2344d65988d43ef3b9903e11a081d879af6636d3 /src/math-buttons.c | |
parent | 48fe60d466a5aba0cca69b6ae7c386c4a473074c (diff) | |
download | mate-calc-11faa5bb63005322d016aa0c76653985d0468b42.tar.bz2 mate-calc-11faa5bb63005322d016aa0c76653985d0468b42.tar.xz |
Don't use deprecated gtk_{vh}box and GTK_TYPE_{VH}BOX
Diffstat (limited to 'src/math-buttons.c')
-rw-r--r-- | src/math-buttons.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/math-buttons.c b/src/math-buttons.c index 518a487..92c8ef1 100644 --- a/src/math-buttons.c +++ b/src/math-buttons.c @@ -58,7 +58,7 @@ struct MathButtonsPrivate GtkWidget *character_code_entry; }; -G_DEFINE_TYPE (MathButtons, math_buttons, GTK_TYPE_VBOX); +G_DEFINE_TYPE (MathButtons, math_buttons, GTK_TYPE_BOX); #define UI_BASIC_FILE UI_DIR "/buttons-basic.ui" #define UI_ADVANCED_FILE UI_DIR "/buttons-advanced.ui" @@ -1367,6 +1367,8 @@ math_buttons_init(MathButtons *buttons) { buttons->priv = G_TYPE_INSTANCE_GET_PRIVATE(buttons, math_buttons_get_type(), MathButtonsPrivate); gtk_box_set_spacing(GTK_BOX(buttons), 6); + gtk_orientable_set_orientation (GTK_ORIENTABLE (buttons), + GTK_ORIENTATION_VERTICAL); buttons->priv->programming_base = 10; g_signal_connect(G_OBJECT(buttons), "show", G_CALLBACK(load_buttons), NULL); } |