[Xfce4-commits] [panel-plugins/xfce4-statusnotifier-plugin] 02/02: Remove SnBox instead of its children upon plugin destruction
noreply at xfce.org
noreply at xfce.org
Sat Jul 22 02:43:31 CEST 2017
This is an automated email from the git hooks/post-receive script.
n i n e t l s p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository panel-plugins/xfce4-statusnotifier-plugin.
commit 4999bc52532893c80ac370dfa12ee05f3784de3b
Author: Viktor Odintsev <ninetls at xfce.org>
Date: Sat Jul 22 03:32:26 2017 +0300
Remove SnBox instead of its children upon plugin destruction
---
panel-plugin/sn-plugin.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/panel-plugin/sn-plugin.c b/panel-plugin/sn-plugin.c
index de9582e..3dff055 100644
--- a/panel-plugin/sn-plugin.c
+++ b/panel-plugin/sn-plugin.c
@@ -107,12 +107,7 @@ sn_plugin_free (XfcePanelPlugin *panel_plugin)
GList *children, *li;
/* remove children so they won't use unrefed SnItems and SnConfig */
- children = gtk_container_get_children (GTK_CONTAINER (plugin->box));
- for (li = children; li != NULL; li = li->next)
- {
- gtk_container_remove (GTK_CONTAINER (plugin->box), li->data);
- }
- g_list_free (children);
+ gtk_container_remove (GTK_CONTAINER (panel_plugin), plugin->box);
g_object_unref (plugin->backend);
g_object_unref (plugin->config);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list