diff options
author | Ted Gould <ted@canonical.com> | 2008-11-24 22:49:50 -0600 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2008-11-24 22:49:50 -0600 |
commit | c8ae9fe01a30b09f2803edb85966303bd9850cad (patch) | |
tree | ae8334f0bafef7f3aa1597acb3bb295599afb3a7 | |
parent | f45883312746b395935a3756fe04abe1459a8dd8 (diff) | |
download | libayatana-indicator-c8ae9fe01a30b09f2803edb85966303bd9850cad.tar.gz libayatana-indicator-c8ae9fe01a30b09f2803edb85966303bd9850cad.tar.bz2 libayatana-indicator-c8ae9fe01a30b09f2803edb85966303bd9850cad.zip |
Adding in some filler menus to get some depth.
-rw-r--r-- | src/indicator-audio.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/src/indicator-audio.c b/src/indicator-audio.c index 48acaa3..d102ff9 100644 --- a/src/indicator-audio.c +++ b/src/indicator-audio.c @@ -3,22 +3,6 @@ #include "slidermenuitem.h" #include "indicator-audio.h" -void -block_prelight (GtkWidget * widget, GtkStateType prev, gpointer data) -{ - if (GTK_WIDGET_STATE(widget) == GTK_STATE_PRELIGHT) { - gtk_widget_set_state(widget, prev); - } - return; -} - -GtkWidget * -create_output_menu_item (void) -{ - GtkWidget * menuitem = slider_menu_item_new("Volume:", 0.0, 1.0, 0.02); - - return menuitem; -} GtkWidget * indicator_audio_menuitem (void) @@ -33,7 +17,23 @@ indicator_audio_menuitem (void) GtkWidget * menu = gtk_menu_new(); - GtkWidget * item = create_output_menu_item(); + GtkWidget * item = gtk_menu_item_new_with_label("Mute All"); + gtk_menu_append(GTK_MENU(menu), item); + gtk_widget_show(item); + + item = gtk_menu_item_new_with_label("Sound Settings..."); + gtk_menu_append(GTK_MENU(menu), item); + gtk_widget_show(item); + + GtkWidget * sep = gtk_separator_menu_item_new(); + gtk_menu_append(GTK_MENU(menu), sep); + gtk_widget_show(sep); + + item = slider_menu_item_new("Speakers:", 0.0, 1.0, 0.02); + gtk_menu_append(GTK_MENU(menu), item); + gtk_widget_show(item); + + item = slider_menu_item_new("Headphones:", 0.0, 1.0, 0.02); gtk_menu_append(GTK_MENU(menu), item); gtk_widget_show(item); |