[libdazzle] menu-button: stash appropriate widget for destruction
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libdazzle] menu-button: stash appropriate widget for destruction
- Date: Sat, 28 Jul 2018 08:39:04 +0000 (UTC)
commit 29a4dbbdd9fb106192c00c3a745265531b954a02
Author: Christian Hergert <chergert redhat com>
Date: Sat Jul 28 01:38:46 2018 -0700
menu-button: stash appropriate widget for destruction
src/menus/dzl-menu-button.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/menus/dzl-menu-button.c b/src/menus/dzl-menu-button.c
index 5dcda9a..9a8018d 100644
--- a/src/menus/dzl-menu-button.c
+++ b/src/menus/dzl-menu-button.c
@@ -126,7 +126,7 @@ dzl_menu_button_items_changed (DzlMenuButton *self,
for (guint i = 0; i < removed; i++)
{
- GtkWidget *child = dzl_box_get_nth_child (priv->popover_box, position);
+ GtkWidget *child = dzl_box_get_nth_child (priv->popover_box, position + i);
children = g_list_prepend (children, g_object_ref (child));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]