summaryrefslogtreecommitdiffstats
path: root/src/sourceoutputwidget.h
diff options
context:
space:
mode:
authorColin Guthrie2009-06-17 23:25:19 +0200
committerColin Guthrie2009-06-17 23:25:19 +0200
commit7a7c1fc7f2a94fea91c66e9be35e8d6d81c0c7fe (patch)
treef8dd5ef70300062de48612c17d37b8214ad11275 /src/sourceoutputwidget.h
parentMore changes in the UI to try and make things neater. (diff)
downloadpavucontrol-slx-7a7c1fc7f2a94fea91c66e9be35e8d6d81c0c7fe.tar.gz
pavucontrol-slx-7a7c1fc7f2a94fea91c66e9be35e8d6d81c0c7fe.tar.xz
pavucontrol-slx-7a7c1fc7f2a94fea91c66e9be35e8d6d81c0c7fe.zip
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/sourceoutputwidget.h')
-rw-r--r--src/sourceoutputwidget.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sourceoutputwidget.h b/src/sourceoutputwidget.h
index ecf937f..1782c77 100644
--- a/src/sourceoutputwidget.h
+++ b/src/sourceoutputwidget.h
@@ -41,12 +41,16 @@ public:
void setSourceIndex(uint32_t idx);
uint32_t sourceIndex();
virtual bool onDeviceChangePopup(GdkEventButton*);
+ virtual bool onWidgetButtonEvent(GdkEventButton*);
virtual void onKill();
private:
MainWindow *mpMainWindow;
uint32_t mSourceIndex;
+ Gtk::Menu terminateMenu;
+ Gtk::MenuItem terminate;
+
void clearMenu();
void buildMenu();