diff options
author | raveit65 <[email protected]> | 2017-05-08 15:21:55 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2017-05-28 09:52:32 +0200 |
commit | 05461ec1fb5738823be95973391d01ff513a2997 (patch) | |
tree | 3d15e8110b48de164a1a32e07df0a86979eb65a3 | |
parent | fe3c32f28c1a06344d1ab0cec13e0e36b5ba2da9 (diff) | |
download | mate-control-center-05461ec1fb5738823be95973391d01ff513a2997.tar.bz2 mate-control-center-05461ec1fb5738823be95973391d01ff513a2997.tar.xz |
libslab app-shell: avoid deprecated gtk_alignment_new ()
-rw-r--r-- | libslab/app-shell.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/libslab/app-shell.c b/libslab/app-shell.c index ed4460b1..dd14a978 100644 --- a/libslab/app-shell.c +++ b/libslab/app-shell.c @@ -749,23 +749,21 @@ show_no_results_message (AppShellData * app_data, GtkWidget * containing_vbox) if (!app_data->filtered_out_everything_widget) { - GtkWidget *hbox; GtkWidget *image; GtkWidget *label; - app_data->filtered_out_everything_widget = gtk_alignment_new (0.5, 0.5, 0.0, 0.0); + app_data->filtered_out_everything_widget = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); + gtk_widget_set_halign (app_data->filtered_out_everything_widget, GTK_ALIGN_CENTER); + gtk_widget_set_valign (app_data->filtered_out_everything_widget, GTK_ALIGN_CENTER); g_object_ref (app_data->filtered_out_everything_widget); - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); image = themed_icon_new ("face-surprise", GTK_ICON_SIZE_DIALOG); - gtk_box_pack_start (GTK_BOX (hbox), image, FALSE, FALSE, 0); + gtk_box_pack_start (GTK_BOX (app_data->filtered_out_everything_widget), image, FALSE, FALSE, 0); label = gtk_label_new (NULL); gtk_label_set_line_wrap (GTK_LABEL (label), TRUE); - gtk_box_pack_start (GTK_BOX (hbox), label, TRUE, TRUE, 15); + gtk_box_pack_start (GTK_BOX (app_data->filtered_out_everything_widget), label, TRUE, TRUE, 15); app_data->filtered_out_everything_widget_label = GTK_LABEL (label); - - gtk_container_add (GTK_CONTAINER (app_data->filtered_out_everything_widget), hbox); } str1 = g_markup_printf_escaped ("<b>%s</b>", app_data->filter_string); |