summaryrefslogtreecommitdiff
path: root/libslab
diff options
context:
space:
mode:
authorWolfgang Ulbrich <[email protected]>2016-01-26 13:00:17 +0100
committerWolfgang Ulbrich <[email protected]>2016-01-26 13:00:17 +0100
commit9c22af1831f1e150aac020c0f27d1510d0aecee9 (patch)
treefd6a0f5d90e132bdeda67c7fa066ab3c22da63ff /libslab
parent94f5031d58bc9f6cbb2911d1c6a3a5d16a69af45 (diff)
downloadmate-control-center-9c22af1831f1e150aac020c0f27d1510d0aecee9.tar.bz2
mate-control-center-9c22af1831f1e150aac020c0f27d1510d0aecee9.tar.xz
GTK3: improve GtkMisc deprecation commit
Diffstat (limited to 'libslab')
-rw-r--r--libslab/slab-section.c6
-rw-r--r--libslab/tile-action.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/libslab/slab-section.c b/libslab/slab-section.c
index d7dd978c..2f763a6e 100644
--- a/libslab/slab-section.c
+++ b/libslab/slab-section.c
@@ -155,9 +155,9 @@ slab_section_new_with_markup (const gchar * title_markup, SlabStyle style)
section->title = gtk_label_new (title_markup);
gtk_label_set_use_markup (GTK_LABEL (section->title), TRUE);
-#if GTK_CHECK_VERSION (3, 0, 0)
- gtk_widget_set_halign (section->title, GTK_ALIGN_START);
- gtk_widget_set_valign (section->title, GTK_ALIGN_CENTER);
+#if GTK_CHECK_VERSION (3, 16, 0)
+ gtk_label_set_xalign (GTK_LABEL (section->title), 0.0);
+ gtk_label_set_yalign (GTK_LABEL (section->title), 0.5);
#else
gtk_misc_set_alignment (GTK_MISC (section->title), 0.0, 0.5);
#endif
diff --git a/libslab/tile-action.c b/libslab/tile-action.c
index 8066b52f..886dec8a 100644
--- a/libslab/tile-action.c
+++ b/libslab/tile-action.c
@@ -83,9 +83,9 @@ tile_action_set_menu_item_label (TileAction * this, const gchar * markup)
{
label = gtk_label_new (markup);
gtk_label_set_use_markup (GTK_LABEL (label), TRUE);
-#if GTK_CHECK_VERSION (3, 0, 0)
- gtk_widget_set_halign (label, GTK_ALIGN_START);
- gtk_widget_set_valign (label, GTK_ALIGN_CENTER);
+#if GTK_CHECK_VERSION (3, 16, 0)
+ gtk_label_set_xalign (GTK_LABEL (label), 0.0);
+ gtk_label_set_yalign (GTK_LABEL (label), 0.5);
#else
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
#endif