aboutsummaryrefslogtreecommitdiff
path: root/src/indicator-messages.c
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-04-22 23:33:38 -0500
committerTed Gould <ted@canonical.com>2009-04-22 23:33:38 -0500
commit4ed02eb08d3e8c64660d7f9fe6c93ddc404ff4cb (patch)
treea898523b1942bf81fcee0b5c0cf4fd0a8bee8e6d /src/indicator-messages.c
parent86043d1764da6a8e58dead41245d0872781745eb (diff)
downloadayatana-indicator-messages-4ed02eb08d3e8c64660d7f9fe6c93ddc404ff4cb.tar.gz
ayatana-indicator-messages-4ed02eb08d3e8c64660d7f9fe6c93ddc404ff4cb.tar.bz2
ayatana-indicator-messages-4ed02eb08d3e8c64660d7f9fe6c93ddc404ff4cb.zip
Get rid of the main menu variable that we're not using. Hide the image.
Diffstat (limited to 'src/indicator-messages.c')
-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);