aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/indicator-messages.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/indicator-messages.c b/src/indicator-messages.c
index ffc525f..b0aaffd 100644
--- a/src/indicator-messages.c
+++ b/src/indicator-messages.c
@@ -34,7 +34,6 @@ INDICATOR_SET_NAME("messages")
static IndicateListener * listener;
static GList * serverList;
static GtkWidget * main_image;
-static GtkWidget * main_menu;
static void server_count_changed (AppMenuItem * appitem, guint count, gpointer data);
static void server_name_changed (AppMenuItem * appitem, gchar * name, gpointer data);
@@ -163,7 +162,7 @@ server_added (IndicateListener * listener, IndicateListenerServer * server, gcha
gtk_menu_shell_prepend(menushell, GTK_WIDGET(menuitem));
gtk_widget_show(GTK_WIDGET(menuitem));
- gtk_widget_show(GTK_WIDGET(main_menu));
+ gtk_widget_show(GTK_WIDGET(main_image));
reconsile_list_and_menu(serverList, menushell);
@@ -263,7 +262,7 @@ server_removed (IndicateListener * listener, IndicateListenerServer * server, gc
g_free(sltp);
if (g_list_length(serverList) == 0) {
- gtk_widget_hide(main_menu);
+ gtk_widget_hide(main_image);
} else {
/* Simulate a server saying zero to recalculate icon */
server_count_changed(NULL, 0, NULL);