summaryrefslogtreecommitdiff
path: root/plugins/housekeeping/msd-ldsm-trash-empty.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/housekeeping/msd-ldsm-trash-empty.c')
-rw-r--r--plugins/housekeeping/msd-ldsm-trash-empty.c20
1 files changed, 12 insertions, 8 deletions
diff --git a/plugins/housekeeping/msd-ldsm-trash-empty.c b/plugins/housekeeping/msd-ldsm-trash-empty.c
index 132c9b7..6a708d0 100644
--- a/plugins/housekeeping/msd-ldsm-trash-empty.c
+++ b/plugins/housekeeping/msd-ldsm-trash-empty.c
@@ -257,16 +257,18 @@ 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);
+#if GTK_CHECK_VERSION (3, 16, 0)
+ gtk_label_set_xalign (GTK_LABEL (label1), 0.0);
+ gtk_label_set_yalign (GTK_LABEL (label1), 0.5);
#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);
+#if GTK_CHECK_VERSION (3, 16, 0)
+ gtk_label_set_xalign (GTK_LABEL (label3), 0.0);
+ gtk_label_set_yalign (GTK_LABEL (label3), 0.5);
#else
gtk_misc_set_alignment (GTK_MISC (label3), 0.0, 0.5);
#endif
@@ -274,16 +276,18 @@ trash_empty_start ()
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);
+#if GTK_CHECK_VERSION (3, 16, 0)
+ gtk_label_set_xalign (GTK_LABEL (location_label), 0.0);
+ gtk_label_set_yalign (GTK_LABEL (location_label), 0.5);
#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);
+#if GTK_CHECK_VERSION (3, 16, 0)
+ gtk_label_set_xalign (GTK_LABEL (file_label), 0.0);
+ gtk_label_set_yalign (GTK_LABEL (file_label), 0.5);
#else
gtk_misc_set_alignment (GTK_MISC (file_label), 0.0, 0.5);
#endif