diff options
author | Conor Curran <conor.curran@canonical.com> | 2010-09-14 18:30:03 +0100 |
---|---|---|
committer | Conor Curran <conor.curran@canonical.com> | 2010-09-14 18:30:03 +0100 |
commit | bab2f6616d4ad90243d3551513ad9e90c0df692e (patch) | |
tree | ff8c1c03db6d2dbc98417a16dcca51916610e4a7 /src | |
parent | 21c38af8ec53f8ccdcf5b434b5cda807f27c9a3c (diff) | |
download | ayatana-indicator-sound-bab2f6616d4ad90243d3551513ad9e90c0df692e.tar.gz ayatana-indicator-sound-bab2f6616d4ad90243d3551513ad9e90c0df692e.tar.bz2 ayatana-indicator-sound-bab2f6616d4ad90243d3551513ad9e90c0df692e.zip |
removed redundant code
Diffstat (limited to 'src')
-rw-r--r-- | src/dbus-menu-manager.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/dbus-menu-manager.c b/src/dbus-menu-manager.c index 222affa..63e91b4 100644 --- a/src/dbus-menu-manager.c +++ b/src/dbus-menu-manager.c @@ -53,7 +53,6 @@ static gboolean idle_routine (gpointer data); static void rebuild_sound_menu(DbusmenuMenuitem *root, SoundServiceDbus *service); static void refresh_menu(); -static void remove_previous_children(gpointer obj, gpointer user_data); /*-------------------------------------------------------------------------*/ @@ -74,23 +73,10 @@ DbusmenuMenuitem* dbus_menu_manager_setup() DbusmenuServer *server = dbusmenu_server_new(INDICATOR_SOUND_DBUS_OBJECT); dbusmenu_server_set_root(server, root_menuitem); - - /*GList* previous_children = dbusmenu_menuitem_get_children(root_menuitem); - if(previous_children != NULL){ - g_list_foreach(previous_children, remove_previous_children, NULL); - }*/ establish_pulse_activities(dbus_interface); return root_menuitem; } -/*static void remove_previous_children(gpointer obj, gpointer user_data) -{ - DbusmenuMenuitem *child = (DbusmenuMenuitem*)obj; - if(child != NULL){ - dbusmenu_menuitem_child_delete(root_menuitem, child); - } -}*/ - void dbus_menu_manager_update_volume(gdouble volume) { GValue value = {0}; |