diff options
author | Wolfgang Ulbrich <[email protected]> | 2015-12-13 17:36:55 +0100 |
---|---|---|
committer | Wolfgang Ulbrich <[email protected]> | 2015-12-13 17:36:55 +0100 |
commit | b8d7f35570dad2b6285a4c7f02712c6111e79902 (patch) | |
tree | 0e13cb1921b0bcfecbec7c19ccd9d105d77602ce /src/gs-window-x11.c | |
parent | f78b6c9444c46c54440b8f6367d88f0e80e72a36 (diff) | |
download | mate-screensaver-b8d7f35570dad2b6285a4c7f02712c6111e79902.tar.bz2 mate-screensaver-b8d7f35570dad2b6285a4c7f02712c6111e79902.tar.xz |
GTK3: don't use deprecated GtkMisc
Diffstat (limited to 'src/gs-window-x11.c')
-rw-r--r-- | src/gs-window-x11.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gs-window-x11.c b/src/gs-window-x11.c index 15fb677..066d4a7 100644 --- a/src/gs-window-x11.c +++ b/src/gs-window-x11.c @@ -1125,7 +1125,11 @@ set_info_text_and_icon (GSWindow *window, image = gtk_image_new_from_stock (icon_stock_id, GTK_ICON_SIZE_DIALOG); gtk_widget_show (image); gtk_box_pack_start (GTK_BOX (hbox_content), image, FALSE, FALSE, 0); +#if GTK_CHECK_VERSION (3, 14, 0) + gtk_widget_set_valign (image, GTK_ALIGN_START); +#else gtk_misc_set_alignment (GTK_MISC (image), 0.5, 0); +#endif vbox = gtk_vbox_new (FALSE, 6); gtk_widget_show (vbox); @@ -1138,7 +1142,11 @@ set_info_text_and_icon (GSWindow *window, gtk_box_pack_start (GTK_BOX (vbox), primary_label, TRUE, TRUE, 0); gtk_label_set_use_markup (GTK_LABEL (primary_label), TRUE); gtk_label_set_line_wrap (GTK_LABEL (primary_label), TRUE); +#if GTK_CHECK_VERSION (3, 14, 0) + gtk_widget_set_halign (primary_label, GTK_ALIGN_START); +#else gtk_misc_set_alignment (GTK_MISC (primary_label), 0, 0.5); +#endif if (secondary_text != NULL) { @@ -1150,7 +1158,11 @@ set_info_text_and_icon (GSWindow *window, gtk_box_pack_start (GTK_BOX (vbox), secondary_label, TRUE, TRUE, 0); gtk_label_set_use_markup (GTK_LABEL (secondary_label), TRUE); gtk_label_set_line_wrap (GTK_LABEL (secondary_label), TRUE); +#if GTK_CHECK_VERSION (3, 14, 0) + gtk_widget_set_halign (secondary_label, GTK_ALIGN_START); +#else gtk_misc_set_alignment (GTK_MISC (secondary_label), 0, 0.5); +#endif } /* remove old content */ |