summaryrefslogtreecommitdiff
path: root/plugins/housekeeping/msd-ldsm-trash-empty.c
diff options
context:
space:
mode:
authorWolfgang Ulbrich <[email protected]>2015-11-16 13:52:32 +0100
committerWolfgang Ulbrich <[email protected]>2015-12-02 12:49:34 +0100
commit6016147ccdf1335dc6d285d50938446c42e1ce95 (patch)
tree4628a38006774b66c1ec368a1ce391156a0efac2 /plugins/housekeeping/msd-ldsm-trash-empty.c
parenteccf1e91de9543e3f062802aaae663dbbb5176ae (diff)
downloadmate-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-trash-empty.c')
-rw-r--r--plugins/housekeeping/msd-ldsm-trash-empty.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/plugins/housekeeping/msd-ldsm-trash-empty.c b/plugins/housekeeping/msd-ldsm-trash-empty.c
index e0fe554..132c9b7 100644
--- a/plugins/housekeeping/msd-ldsm-trash-empty.c
+++ b/plugins/housekeeping/msd-ldsm-trash-empty.c
@@ -257,20 +257,36 @@ trash_empty_start ()
label1 = gtk_label_new (NULL);
gtk_label_set_line_wrap (GTK_LABEL (label1), TRUE);
+#if GTK_CHECK_VERSION (3, 14, 0)
+ gtk_widget_set_halign (label1, GTK_ALIGN_START);
+#else
gtk_misc_set_alignment (GTK_MISC (label1), 0.0, 0.5);
+#endif
label3 = gtk_label_new (NULL);
gtk_label_set_line_wrap (GTK_LABEL (label3), TRUE);
+#if GTK_CHECK_VERSION (3, 14, 0)
+ gtk_widget_set_halign (label3, GTK_ALIGN_START);
+#else
gtk_misc_set_alignment (GTK_MISC (label3), 0.0, 0.5);
+#endif
gtk_widget_hide (label3);
location_label = gtk_label_new (NULL);
gtk_label_set_line_wrap (GTK_LABEL (location_label), TRUE);
+#if GTK_CHECK_VERSION (3, 14, 0)
+ gtk_widget_set_halign (location_label, GTK_ALIGN_START);
+#else
gtk_misc_set_alignment (GTK_MISC (location_label), 0.0, 0.5);
+#endif
file_label = gtk_label_new (NULL);
gtk_label_set_line_wrap (GTK_LABEL (file_label), TRUE);
+#if GTK_CHECK_VERSION (3, 14, 0)
+ gtk_widget_set_halign (file_label, GTK_ALIGN_START);
+#else
gtk_misc_set_alignment (GTK_MISC (file_label), 0.0, 0.5);
+#endif
progressbar = gtk_progress_bar_new ();
gtk_progress_bar_set_pulse_step (GTK_PROGRESS_BAR (progressbar), 0.1);