summaryrefslogtreecommitdiff
path: root/pluma/pluma-panel.c
diff options
context:
space:
mode:
authorWolfgang Ulbrich <[email protected]>2016-01-24 02:30:34 +0100
committerWolfgang Ulbrich <[email protected]>2016-01-24 02:30:34 +0100
commit9e3170e4b8de9b2120168b6de310ba839dc12072 (patch)
tree7c1f45722e7264db2fbe5e0f0ce45d4998cdf8ac /pluma/pluma-panel.c
parent9d1bf65037d56ced8c3d4396902e83e286222914 (diff)
downloadpluma-9e3170e4b8de9b2120168b6de310ba839dc12072.tar.bz2
pluma-9e3170e4b8de9b2120168b6de310ba839dc12072.tar.xz
GTK3: fix previous GtkMisc deprecated commit
Diffstat (limited to 'pluma/pluma-panel.c')
-rw-r--r--pluma/pluma-panel.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/pluma/pluma-panel.c b/pluma/pluma-panel.c
index 591fc5dd..c8b0cc56 100644
--- a/pluma/pluma-panel.c
+++ b/pluma/pluma-panel.c
@@ -547,8 +547,8 @@ build_vertical_panel (PlumaPanel *panel)
0);
panel->priv->title_label = gtk_label_new (_("Empty"));
-#if GTK_CHECK_VERSION (3, 14, 0)
- gtk_widget_set_halign (panel->priv->title_label, GTK_ALIGN_START);
+#if GTK_CHECK_VERSION (3, 16, 0)
+ gtk_label_set_xalign (GTK_LABEL (panel->priv->title_label), 0.0);
#else
gtk_misc_set_alignment (GTK_MISC (panel->priv->title_label), 0, 0.5);
#endif
@@ -649,8 +649,8 @@ build_tab_label (PlumaPanel *panel,
/* setup label */
label = gtk_label_new (name);
-#if GTK_CHECK_VERSION (3, 14, 0)
- gtk_widget_set_halign (label, GTK_ALIGN_START);
+#if GTK_CHECK_VERSION (3, 0, 0)
+ gtk_label_set_xalign (GTK_LABEL (label), 0.0);
gtk_widget_set_margin_start (label, 0);
gtk_widget_set_margin_end (label, 0);
gtk_widget_set_margin_top (label, 0);
@@ -724,7 +724,7 @@ pluma_panel_add_item (PlumaPanel *panel,
tab_label = build_tab_label (panel, item, data->name, data->icon);
menu_label = gtk_label_new (name);
-#if GTK_CHECK_VERSION (3, 14, 0)
+#if GTK_CHECK_VERSION (3, 0, 0)
gtk_widget_set_halign (menu_label, GTK_ALIGN_START);
#else
gtk_misc_set_alignment (GTK_MISC (menu_label), 0.0, 0.5);