diff options
author | Ted Gould <ted@canonical.com> | 2009-03-26 16:06:23 -0500 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-03-26 16:06:23 -0500 |
commit | 045b2579c670b16bac9e7c13ede6bd2780edf83e (patch) | |
tree | 21c9ac1f3967b147c6b397aca10d9ba5d8f4b835 /src | |
parent | 1f7ae08ced7b7be7d852139e73dde71de68da2f7 (diff) | |
download | libayatana-indicator-045b2579c670b16bac9e7c13ede6bd2780edf83e.tar.gz libayatana-indicator-045b2579c670b16bac9e7c13ede6bd2780edf83e.tar.bz2 libayatana-indicator-045b2579c670b16bac9e7c13ede6bd2780edf83e.zip |
Switching the case for 'No Indicators' to make it a label to still support right click through.
Diffstat (limited to 'src')
-rw-r--r-- | src/applet-main.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/applet-main.c b/src/applet-main.c index 0dbb665..7f7b260 100644 --- a/src/applet-main.c +++ b/src/applet-main.c @@ -224,10 +224,6 @@ applet_fill_cb (PanelApplet * applet, const gchar * iid, gpointer data) g_signal_connect_after(menubar, "expose-event", G_CALLBACK(menubar_on_expose), menubar); gtk_container_set_border_width(GTK_CONTAINER(menubar), 0); - gtk_container_add(GTK_CONTAINER(applet), menubar); - panel_applet_set_background_widget(applet, menubar); - gtk_widget_show(menubar); - /* load 'em */ if (g_file_test(INDICATOR_DIR, (G_FILE_TEST_EXISTS | G_FILE_TEST_IS_DIR))) { GDir * dir = g_dir_open(INDICATOR_DIR, 0, NULL); @@ -240,10 +236,13 @@ applet_fill_cb (PanelApplet * applet, const gchar * iid, gpointer data) } if (indicators_loaded == 0) { - GtkWidget * item = gtk_menu_item_new_with_label("No Indicators"); - gtk_widget_set_sensitive(item, FALSE); - gtk_menu_shell_append(GTK_MENU_SHELL(menubar), item); + GtkWidget * item = gtk_label_new("No Indicators"); + gtk_container_add(GTK_CONTAINER(applet), item); gtk_widget_show(item); + } else { + gtk_container_add(GTK_CONTAINER(applet), menubar); + panel_applet_set_background_widget(applet, menubar); + gtk_widget_show(menubar); } /* Background of applet */ |