aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Coulson <chrisccoulson@ubuntu.com>2010-02-27 22:48:33 +0000
committerChris Coulson <chrisccoulson@ubuntu.com>2010-02-27 22:48:33 +0000
commit70c46caa4773bbaa926a64a7e5b77d80c2279e6e (patch)
tree3cfb06ccfa1c1f066a4b4980acc69fe5e447d753
parentbc5b940605bdcd6282f7eda735ef3d262101da79 (diff)
downloadayatana-indicator-application-70c46caa4773bbaa926a64a7e5b77d80c2279e6e.tar.gz
ayatana-indicator-application-70c46caa4773bbaa926a64a7e5b77d80c2279e6e.tar.bz2
ayatana-indicator-application-70c46caa4773bbaa926a64a7e5b77d80c2279e6e.zip
Use gtk_status_icon_set_visible to hide the status icon. GtkStatusIcon is not derived from GtkWidget, so gtk_widget_hide doesn't work
-rw-r--r--src/libappindicator/app-indicator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libappindicator/app-indicator.c b/src/libappindicator/app-indicator.c
index 1796e8e..ef9f5c0 100644
--- a/src/libappindicator/app-indicator.c
+++ b/src/libappindicator/app-indicator.c
@@ -895,7 +895,7 @@ unfallback (AppIndicator * self, GtkStatusIcon * status_icon)
{
g_signal_handlers_disconnect_by_func(G_OBJECT(self), status_icon_status_wrapper, status_icon);
g_signal_handlers_disconnect_by_func(G_OBJECT(self), status_icon_changes, status_icon);
- gtk_widget_hide(GTK_WIDGET(status_icon));
+ gtk_status_icon_set_visible(status_icon, FALSE);
g_object_unref(G_OBJECT(status_icon));
return;
}