carousel: Make MctCarouselItem subclass GtkButton

And add a setter to its internal child.
This commit is contained in:
Georges Basile Stavracas Neto 2022-07-08 16:25:21 -03:00
parent e088443645
commit 0fca70768a
4 changed files with 20 additions and 12 deletions

View file

@ -455,7 +455,7 @@ user_added_cb (ActUserManager *user_manager,
widget = create_carousel_entry (self, user);
item = mct_carousel_item_new ();
gtk_container_add (GTK_CONTAINER (item), widget);
mct_carousel_item_set_child (MCT_CAROUSEL_ITEM (item), widget);
g_object_set_data (G_OBJECT (item), "uid", GINT_TO_POINTER (act_user_get_uid (user)));
gtk_container_add (GTK_CONTAINER (self->carousel), item);