summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
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) {