diff options
author | Wolfgang Ulbrich <[email protected]> | 2015-11-16 13:52:32 +0100 |
---|---|---|
committer | Wolfgang Ulbrich <[email protected]> | 2015-12-02 12:49:34 +0100 |
commit | 6016147ccdf1335dc6d285d50938446c42e1ce95 (patch) | |
tree | 4628a38006774b66c1ec368a1ce391156a0efac2 /plugins/housekeeping/msd-ldsm-dialog.c | |
parent | eccf1e91de9543e3f062802aaae663dbbb5176ae (diff) | |
download | mate-settings-daemon-6016147ccdf1335dc6d285d50938446c42e1ce95.tar.bz2 mate-settings-daemon-6016147ccdf1335dc6d285d50938446c42e1ce95.tar.xz |
Gtk-+3.14: don't use deprecated GtkMisc
Diffstat (limited to 'plugins/housekeeping/msd-ldsm-dialog.c')
-rw-r--r-- | plugins/housekeeping/msd-ldsm-dialog.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/plugins/housekeeping/msd-ldsm-dialog.c b/plugins/housekeeping/msd-ldsm-dialog.c index 597e687..32fe1a7 100644 --- a/plugins/housekeeping/msd-ldsm-dialog.c +++ b/plugins/housekeeping/msd-ldsm-dialog.c @@ -221,18 +221,32 @@ msd_ldsm_dialog_init (MsdLdsmDialog *dialog) /* Create the image */ image = gtk_image_new_from_stock (GTK_STOCK_DIALOG_WARNING, GTK_ICON_SIZE_DIALOG); +#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.0); +#endif /* Create the labels */ dialog->priv->primary_label = gtk_label_new (NULL); gtk_label_set_line_wrap (GTK_LABEL (dialog->priv->primary_label), TRUE); gtk_label_set_single_line_mode (GTK_LABEL (dialog->priv->primary_label), FALSE); +#if GTK_CHECK_VERSION (3, 14, 0) + gtk_widget_set_halign (dialog->priv->primary_label, GTK_ALIGN_START); + gtk_widget_set_valign (dialog->priv->primary_label, GTK_ALIGN_START); +#else gtk_misc_set_alignment (GTK_MISC (dialog->priv->primary_label), 0.0, 0.0); +#endif dialog->priv->secondary_label = gtk_label_new (NULL); gtk_label_set_line_wrap (GTK_LABEL (dialog->priv->secondary_label), TRUE); gtk_label_set_single_line_mode (GTK_LABEL (dialog->priv->secondary_label), FALSE); +#if GTK_CHECK_VERSION (3, 14, 0) + gtk_widget_set_halign (dialog->priv->secondary_label, GTK_ALIGN_START); + gtk_widget_set_valign (dialog->priv->secondary_label, GTK_ALIGN_START); +#else gtk_misc_set_alignment (GTK_MISC (dialog->priv->secondary_label), 0.0, 0.0); +#endif /* Create the check button to ignore future warnings */ dialog->priv->ignore_check_button = gtk_check_button_new (); |