summaryrefslogtreecommitdiff
path: root/libslab/tile-action.c
diff options
context:
space:
mode:
authormonsta <[email protected]>2016-01-15 13:39:24 +0300
committermonsta <[email protected]>2016-01-15 13:39:24 +0300
commit854d41818845e0c89ae71add54a16d69419e8083 (patch)
treec82289f4aa9bb38647c7da8d1a102a0b2a6c6833 /libslab/tile-action.c
parenta632460eead10a87a9e24007bc911ab746c2a5b8 (diff)
downloadmate-control-center-854d41818845e0c89ae71add54a16d69419e8083.tar.bz2
mate-control-center-854d41818845e0c89ae71add54a16d69419e8083.tar.xz
[GTK+3] libslab: fix deprecated usage of GtkMisc
Diffstat (limited to 'libslab/tile-action.c')
-rw-r--r--libslab/tile-action.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libslab/tile-action.c b/libslab/tile-action.c
index 8ad5ff83..8066b52f 100644
--- a/libslab/tile-action.c
+++ b/libslab/tile-action.c
@@ -83,7 +83,12 @@ 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);
+#else
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
+#endif
this->menu_item = GTK_MENU_ITEM (gtk_menu_item_new ());
gtk_container_add (GTK_CONTAINER (this->menu_item), label);