[gnome-panel] na: Do not setup applet menu since we have no item anymore



commit 844a82afd23b9f4e1b432cdfecf06853f5716bcd
Author: Vincent Untz <vuntz gnome org>
Date:   Tue Feb 22 15:00:33 2011 +0100

    na: Do not setup applet menu since we have no item anymore

 applets/notification_area/Makefile.am              |    3 ---
 applets/notification_area/main.c                   |   18 ------------------
 .../notification_area/notification-area-menu.xml   |    1 -
 3 files changed, 0 insertions(+), 22 deletions(-)
---
diff --git a/applets/notification_area/Makefile.am b/applets/notification_area/Makefile.am
index cd871c1..049cfdd 100644
--- a/applets/notification_area/Makefile.am
+++ b/applets/notification_area/Makefile.am
@@ -94,9 +94,6 @@ org.gnome.panel.applet.NotificationAreaAppletFactory.service: $(service_in_files
 		$< > $@
 endif
 
-uidir = $(datadir)/gnome-panel/ui
-ui_DATA = notification-area-menu.xml
-
 EXTRA_DIST =								\
 	org.gnome.panel.NotificationAreaApplet.panel-applet.in.in	\
 	$(ui_DATA)							\
diff --git a/applets/notification_area/main.c b/applets/notification_area/main.c
index 26a72bc..a0feb30 100644
--- a/applets/notification_area/main.c
+++ b/applets/notification_area/main.c
@@ -63,9 +63,6 @@ get_orientation_from_applet (PanelApplet *applet)
   return orientation;
 }
 
-static const GtkActionEntry menu_actions [] = {
-};
-
 static void
 applet_change_background (PanelApplet     *applet,
                           cairo_pattern_t *pattern,
@@ -105,8 +102,6 @@ on_applet_realized (GtkWidget *widget,
   PanelApplet    *applet;
   AppletData     *data;
   NaTray         *tray;
-  GtkActionGroup *action_group;
-  gchar          *ui_path;
 
   applet = PANEL_APPLET (widget);
   data = g_object_get_data (G_OBJECT (widget), "system-tray-data");
@@ -136,19 +131,6 @@ on_applet_realized (GtkWidget *widget,
 
   gtk_container_add (GTK_CONTAINER (applet), GTK_WIDGET (tray));
   gtk_widget_show (GTK_WIDGET (tray));
-
-  action_group = gtk_action_group_new ("ClockApplet Menu Actions");
-  gtk_action_group_set_translation_domain (action_group, GETTEXT_PACKAGE);
-  gtk_action_group_add_actions (action_group,
-                                menu_actions,
-                                G_N_ELEMENTS (menu_actions),
-                                data);
-  ui_path = g_build_filename (NOTIFICATION_AREA_MENU_UI_DIR, "notification-area-menu.xml", NULL);
-  panel_applet_setup_menu_from_file (applet,
-                                     ui_path, action_group);
-  g_free (ui_path);
-  g_object_unref (action_group);
-
 }
 
 static inline void



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]