From 79899f7a62dbbebb33eb0c1707fc2a9434d00008 Mon Sep 17 00:00:00 2001 From: gustav_b Date: Sun, 17 Feb 2008 16:27:23 +0000 Subject: [PATCH] Fix #192549 "selected style indicator can only call fill&stroke dialog once", regression by r17207. (Request dialog to presented when panel signals present.) --- src/ui/dialog/panel-dialog.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/ui/dialog/panel-dialog.h b/src/ui/dialog/panel-dialog.h index 6a2218a06..eebd323d6 100644 --- a/src/ui/dialog/panel-dialog.h +++ b/src/ui/dialog/panel-dialog.h @@ -74,6 +74,8 @@ public: inline virtual void present(); private: + inline void _presentDialog(); + PanelDialog(); // no constructor without params PanelDialog(PanelDialog const &d); // no copy PanelDialog& operator=(PanelDialog const &d); // no assign @@ -134,6 +136,7 @@ PanelDialog::PanelDialog(Panel &panel, char const *prefs_path, int const verb { Gtk::VBox *vbox = get_vbox(); _panel.signalResponse().connect(sigc::mem_fun(*this, &PanelDialog::_handleResponse)); + _panel.signalPresent().connect(sigc::mem_fun(*this, &PanelDialog::_presentDialog)); vbox->pack_start(_panel, true, true, 0); @@ -168,10 +171,16 @@ template void PanelDialog::present() { - Dialog::present(); _panel.present(); } +template +void +PanelDialog::_presentDialog() +{ + Dialog::present(); +} + PanelDialog::PanelDialog(Panel &panel, char const *prefs_path, int const verb_num, Glib::ustring const &apply_label) : PanelDialogBase(panel, prefs_path, verb_num, apply_label), -- 2.30.2