project: Remove unnecessary usage of gtk_widget_show()
Now that widgets are visible by default, no need to show them after creating them. Also revove gtk_widget_show_all() which doesn't exist in GTK4.
This commit is contained in:
parent
bb0865eb23
commit
c39ffd45fc
|
@ -357,8 +357,6 @@ create_row_for_app_cb (gpointer item,
|
||||||
adw_action_row_add_suffix (ADW_ACTION_ROW (row), w);
|
adw_action_row_add_suffix (ADW_ACTION_ROW (row), w);
|
||||||
adw_action_row_set_activatable_widget (ADW_ACTION_ROW (row), w);
|
adw_action_row_set_activatable_widget (ADW_ACTION_ROW (row), w);
|
||||||
|
|
||||||
gtk_widget_show_all (row);
|
|
||||||
|
|
||||||
/* Fetch status from AccountService */
|
/* Fetch status from AccountService */
|
||||||
g_object_set_data (G_OBJECT (row), "GtkSwitch", w);
|
g_object_set_data (G_OBJECT (row), "GtkSwitch", w);
|
||||||
g_object_set_data_full (G_OBJECT (w), "GAppInfo", g_object_ref (app), g_object_unref);
|
g_object_set_data_full (G_OBJECT (w), "GAppInfo", g_object_ref (app), g_object_unref);
|
||||||
|
|
|
@ -329,12 +329,10 @@ mct_carousel_add (GtkContainer *container,
|
||||||
|
|
||||||
page = g_strdup_printf ("%d", MCT_CAROUSEL_ITEM (widget)->page);
|
page = g_strdup_printf ("%d", MCT_CAROUSEL_ITEM (widget)->page);
|
||||||
self->last_box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
|
self->last_box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
|
||||||
gtk_widget_show (self->last_box);
|
|
||||||
gtk_widget_set_valign (self->last_box, GTK_ALIGN_CENTER);
|
gtk_widget_set_valign (self->last_box, GTK_ALIGN_CENTER);
|
||||||
gtk_stack_add_named (self->stack, self->last_box, page);
|
gtk_stack_add_named (self->stack, self->last_box, page);
|
||||||
}
|
}
|
||||||
|
|
||||||
gtk_widget_show_all (widget);
|
|
||||||
gtk_box_append (GTK_BOX (self->last_box), widget);
|
gtk_box_append (GTK_BOX (self->last_box), widget);
|
||||||
|
|
||||||
update_buttons_visibility (self);
|
update_buttons_visibility (self);
|
||||||
|
|
Loading…
Reference in New Issue