summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2011-02-04 12:43:26 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2011-02-04 12:43:26 +0000
commit33dc722235c12777bede5e6f795cf17063b30f84 (patch)
tree9090775c879c8fca16f02dc365e9e18f36b7f719 /libs
parent97d1ba4e6292f67a7025e467bb9f99fd8610034f (diff)
ensure that Gtkmm2ext::UI's requests always get their type field initialized, since they are now deleted without necessarily having been used
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@8699 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs')
-rw-r--r--libs/gtkmm2ext/gtk_ui.cc1
-rw-r--r--libs/gtkmm2ext/gtkmm2ext/gtk_ui.h5
2 files changed, 6 insertions, 0 deletions
diff --git a/libs/gtkmm2ext/gtk_ui.cc b/libs/gtkmm2ext/gtk_ui.cc
index 25501a2119..291740c15b 100644
--- a/libs/gtkmm2ext/gtk_ui.cc
+++ b/libs/gtkmm2ext/gtk_ui.cc
@@ -52,6 +52,7 @@ using std::map;
pthread_t UI::gui_thread;
UI *UI::theGtkUI = 0;
+BaseUI::RequestType Gtkmm2ext::NullRequest = BaseUI::new_request_type();
BaseUI::RequestType Gtkmm2ext::ErrorMessage = BaseUI::new_request_type();
BaseUI::RequestType Gtkmm2ext::Quit = BaseUI::new_request_type();
BaseUI::RequestType Gtkmm2ext::TouchDisplay = BaseUI::new_request_type();
diff --git a/libs/gtkmm2ext/gtkmm2ext/gtk_ui.h b/libs/gtkmm2ext/gtkmm2ext/gtk_ui.h
index 4d4d7181ed..c3352f672b 100644
--- a/libs/gtkmm2ext/gtkmm2ext/gtk_ui.h
+++ b/libs/gtkmm2ext/gtkmm2ext/gtk_ui.h
@@ -51,6 +51,7 @@ namespace Gtkmm2ext {
class TextViewer;
+extern BaseUI::RequestType NullRequest;
extern BaseUI::RequestType ErrorMessage;
extern BaseUI::RequestType Quit;
extern BaseUI::RequestType CallSlot;
@@ -77,6 +78,10 @@ struct UIRequest : public BaseUI::BaseRequestObject {
void *arg;
const char *msg2;
sigc::slot<void> slot;
+
+ UIRequest () {
+ type = NullRequest;
+ }
~UIRequest () {
if (type == ErrorMessage && msg) {