diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-01-31 03:03:19 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-04-08 23:05:26 +0800 |
commit | 72797decc12602b181f69dba7c54df7a0d1b9326 (patch) | |
tree | ecd1314c92bc26b59647b351b2d47e446f4ed21d /shell/e-shell-taskbar.c | |
parent | 3ba0b61f9f447b01c3a83bfb78ee33a45d413700 (diff) | |
download | gsoc2013-evolution-72797decc12602b181f69dba7c54df7a0d1b9326.tar.gz gsoc2013-evolution-72797decc12602b181f69dba7c54df7a0d1b9326.tar.zst gsoc2013-evolution-72797decc12602b181f69dba7c54df7a0d1b9326.zip |
Giant leap towards GSEAL compliance.
Diffstat (limited to 'shell/e-shell-taskbar.c')
-rw-r--r-- | shell/e-shell-taskbar.c | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/shell/e-shell-taskbar.c b/shell/e-shell-taskbar.c index bf8dfa7e2a..43865470de 100644 --- a/shell/e-shell-taskbar.c +++ b/shell/e-shell-taskbar.c @@ -64,20 +64,26 @@ static void shell_taskbar_activity_remove (EShellTaskbar *shell_taskbar, EActivity *activity) { - GtkBox *box; GtkWidget *proxy; + GtkContainer *container; GHashTable *proxy_table; + GList *children; - box = GTK_BOX (shell_taskbar->priv->hbox); proxy_table = shell_taskbar->priv->proxy_table; proxy = g_hash_table_lookup (proxy_table, activity); g_return_if_fail (proxy != NULL); g_hash_table_remove (proxy_table, activity); - gtk_container_remove (GTK_CONTAINER (box), proxy); - if (box->children == NULL) - gtk_widget_hide (GTK_WIDGET (box)); + container = GTK_CONTAINER (shell_taskbar->priv->hbox); + gtk_container_remove (container, proxy); + + children = gtk_container_get_children (container); + + if (children == NULL) + gtk_widget_hide (GTK_WIDGET (container)); + + g_list_free (children); } static void |