From: gustav_b Date: Sun, 17 Feb 2008 16:27:23 +0000 (+0000) Subject: Fix #192549 "selected style indicator can only call fill&stroke dialog once", X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=79899f7a62dbbebb33eb0c1707fc2a9434d00008;p=inkscape.git Fix #192549 "selected style indicator can only call fill&stroke dialog once", regression by r17207. (Request dialog to presented when panel signals present.) --- 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),