summaryrefslogtreecommitdiffstats
path: root/src/sinkinputwidget.h
diff options
context:
space:
mode:
authorColin Guthrie <cguthrie@mandriva.org>2009-06-17 22:25:19 +0100
committerColin Guthrie <cguthrie@mandriva.org>2009-06-17 22:25:19 +0100
commit7a7c1fc7f2a94fea91c66e9be35e8d6d81c0c7fe (patch)
treef8dd5ef70300062de48612c17d37b8214ad11275 /src/sinkinputwidget.h
parent02b316fcba8a112e528a0bddfcb93cf6f3179168 (diff)
Hide the terminate button.
The terminate button is a last resort and shouldn't be promoted in the UI. This commit hides it behind a right click menu instead. This also hides the 'Set as Fallback' label in the glade file.
Diffstat (limited to 'src/sinkinputwidget.h')
-rw-r--r--src/sinkinputwidget.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sinkinputwidget.h b/src/sinkinputwidget.h
index b48a802..6ec1b69 100644
--- a/src/sinkinputwidget.h
+++ b/src/sinkinputwidget.h
@@ -42,6 +42,7 @@ public:
uint32_t sinkIndex();
virtual void executeVolumeUpdate();
virtual bool onDeviceChangePopup(GdkEventButton*);
+ virtual bool onWidgetButtonEvent(GdkEventButton*);
virtual void onMuteToggleButton();
virtual void onKill();
@@ -49,6 +50,9 @@ private:
MainWindow *mpMainWindow;
uint32_t mSinkIndex;
+ Gtk::Menu terminateMenu;
+ Gtk::MenuItem terminate;
+
void clearMenu();
void buildMenu();