diff options
author | monsta <[email protected]> | 2016-01-15 13:39:24 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2016-01-15 13:39:24 +0300 |
commit | 854d41818845e0c89ae71add54a16d69419e8083 (patch) | |
tree | c82289f4aa9bb38647c7da8d1a102a0b2a6c6833 /libslab/app-shell.c | |
parent | a632460eead10a87a9e24007bc911ab746c2a5b8 (diff) | |
download | mate-control-center-854d41818845e0c89ae71add54a16d69419e8083.tar.bz2 mate-control-center-854d41818845e0c89ae71add54a16d69419e8083.tar.xz |
[GTK+3] libslab: fix deprecated usage of GtkMisc
Diffstat (limited to 'libslab/app-shell.c')
-rw-r--r-- | libslab/app-shell.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/libslab/app-shell.c b/libslab/app-shell.c index 45e6feae..eb6af9da 100644 --- a/libslab/app-shell.c +++ b/libslab/app-shell.c @@ -406,7 +406,12 @@ create_actions_section (AppShellData * app_data, const gchar * title, action = (AppAction *) actions->data; header = gtk_label_new (action->name); - gtk_misc_set_alignment (GTK_MISC (header), 0, 0.5); +#if GTK_CHECK_VERSION (3, 0, 0) + gtk_widget_set_halign (header, GTK_ALIGN_START); + gtk_widget_set_valign (header, GTK_ALIGN_CENTER); +#else + gtk_misc_set_alignment (GTK_MISC (header), 0.0, 0.5); +#endif launcher = nameplate_tile_new (NULL, NULL, header, NULL); g_object_set_data (G_OBJECT (launcher), APP_ACTION_KEY, action->item); @@ -697,7 +702,12 @@ create_application_category_sections (AppShellData * app_data) GtkWidget *hbox; GtkWidget *table; - gtk_misc_set_alignment (GTK_MISC (header), 0, 0.5); +#if GTK_CHECK_VERSION (3, 0, 0) + gtk_widget_set_halign (header, GTK_ALIGN_START); + gtk_widget_set_valign (header, GTK_ALIGN_CENTER); +#else + gtk_misc_set_alignment (GTK_MISC (header), 0.0, 0.5); +#endif data->group_launcher = TILE (nameplate_tile_new (NULL, NULL, header, NULL)); g_object_ref (data->group_launcher); |