summaryrefslogtreecommitdiff
path: root/libmate-desktop/mate-aboutdialog.c
diff options
context:
space:
mode:
authormonsta <[email protected]>2016-01-20 15:25:28 +0300
committermonsta <[email protected]>2016-01-20 15:51:23 +0300
commit84ad7cdc33edf7d533aefdbc4884321a7a27ddaa (patch)
tree0721e6199d4b366f28bd9ec0e6c30d19b1811e83 /libmate-desktop/mate-aboutdialog.c
parent8032c71822b165fd46183711ef3ca8bfe3e899c4 (diff)
downloadmate-desktop-84ad7cdc33edf7d533aefdbc4884321a7a27ddaa.tar.bz2
mate-desktop-84ad7cdc33edf7d533aefdbc4884321a7a27ddaa.tar.xz
use GtkBox instead of GtkVBox in both GTK+ builds
and fix deprecated usage of GtkHBox and GtkVBox in GTK+3 build NOTE: this commit changes the public interface of the library
Diffstat (limited to 'libmate-desktop/mate-aboutdialog.c')
-rw-r--r--libmate-desktop/mate-aboutdialog.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libmate-desktop/mate-aboutdialog.c b/libmate-desktop/mate-aboutdialog.c
index 45b223c..2183499 100644
--- a/libmate-desktop/mate-aboutdialog.c
+++ b/libmate-desktop/mate-aboutdialog.c
@@ -492,7 +492,11 @@ mate_about_dialog_init (MateAboutDialog *about)
/* Widgets */
gtk_widget_push_composite_child ();
+#if GTK_CHECK_VERSION (3, 0, 0)
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8);
+#else
vbox = gtk_vbox_new (FALSE, 8);
+#endif
gtk_container_set_focus_chain (GTK_CONTAINER (vbox), NULL);
gtk_container_set_border_width (GTK_CONTAINER (vbox), 5);
gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (dialog)), vbox, TRUE, TRUE, 0);
@@ -519,7 +523,11 @@ mate_about_dialog_init (MateAboutDialog *about)
gtk_label_set_justify (GTK_LABEL (priv->copyright_label), GTK_JUSTIFY_CENTER);
gtk_box_pack_start (GTK_BOX (vbox), priv->copyright_label, FALSE, FALSE, 0);
+#if GTK_CHECK_VERSION (3, 0, 0)
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
+#else
hbox = gtk_hbox_new (TRUE, 0);
+#endif
gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE, FALSE, 0);
priv->website_label = button = gtk_label_new ("");