From: buliabyak Date: Sun, 1 Apr 2007 20:14:17 +0000 (+0000) Subject: patch 1690246 from Max + read_geometry fixes for consistent placement X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=04ef8d29d434efa3370b37008b04d06ac30d8160;p=inkscape.git patch 1690246 from Max + read_geometry fixes for consistent placement --- diff --git a/src/ui/dialog/dialog.cpp b/src/ui/dialog/dialog.cpp index 64109de3f..ac147d656 100644 --- a/src/ui/dialog/dialog.cpp +++ b/src/ui/dialog/dialog.cpp @@ -66,6 +66,7 @@ sp_dialog_shutdown (GtkObject *object, gpointer dlgPtr) void Dialog::present() { + _user_hidden = false; Gtk::Dialog::present(); } diff --git a/src/verbs.cpp b/src/verbs.cpp index 6eb74214a..28e008486 100644 --- a/src/verbs.cpp +++ b/src/verbs.cpp @@ -129,12 +129,13 @@ static void show_panel( Inkscape::UI::Widget::Panel &panel, char const *prefs_pa Gtk::VBox *mainVBox = dia->get_vbox(); mainVBox->pack_start(panel); dia->show_all_children(); - dia->present(); dia->read_geometry(); + dia->present(); } else { - Gtk::Dialog *dia = dynamic_cast(container); + PanelDialog *dia = dynamic_cast(container); if ( dia ) { //g_message("Found an existing dialog"); + dia->read_geometry(); dia->present(); } else { g_message("Failed to find an existing dialog");