summaryrefslogtreecommitdiff
path: root/libslab/app-shell.c
diff options
context:
space:
mode:
Diffstat (limited to 'libslab/app-shell.c')
-rw-r--r--libslab/app-shell.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/libslab/app-shell.c b/libslab/app-shell.c
index 3045fff8..9e84e1c5 100644
--- a/libslab/app-shell.c
+++ b/libslab/app-shell.c
@@ -418,9 +418,8 @@ create_actions_section (AppShellData * app_data, const gchar * title,
action = (AppAction *) actions->data;
header = gtk_label_new (action->name);
-#if GTK_CHECK_VERSION (3, 0, 0)
- gtk_widget_set_halign (header, GTK_ALIGN_START);
- gtk_widget_set_valign (header, GTK_ALIGN_CENTER);
+#if GTK_CHECK_VERSION (3, 16, 0)
+ gtk_label_set_xalign (GTK_LABEL (header), 0.0);
#else
gtk_misc_set_alignment (GTK_MISC (header), 0.0, 0.5);
#endif
@@ -718,9 +717,8 @@ create_application_category_sections (AppShellData * app_data)
GtkWidget *hbox;
GtkWidget *table;
-#if GTK_CHECK_VERSION (3, 0, 0)
- gtk_widget_set_halign (header, GTK_ALIGN_START);
- gtk_widget_set_valign (header, GTK_ALIGN_CENTER);
+#if GTK_CHECK_VERSION (3, 16, 0)
+ gtk_label_set_xalign (GTK_LABEL (header), 0.0);
#else
gtk_misc_set_alignment (GTK_MISC (header), 0.0, 0.5);
#endif