diff options
| author | John Smith <john.smith7545@yahoo.com> | 2012-02-17 08:05:08 +0000 |
|---|---|---|
| committer | John Smith <removethis.john.q.public@bigmail.com> | 2012-02-17 08:05:08 +0000 |
| commit | afb80368d6bf4dc2a55b011c9a14fa4288d2fe84 (patch) | |
| tree | 6ec54c830a6537271186388726542ca873ff7830 /src/dialogs | |
| parent | Documentation of the Text and Font dialog (diff) | |
| download | inkscape-afb80368d6bf4dc2a55b011c9a14fa4288d2fe84.tar.gz inkscape-afb80368d6bf4dc2a55b011c9a14fa4288d2fe84.zip | |
Fix for 171579 : Make inkscape remember dialogs window status
(bzr r10992)
Diffstat (limited to 'src/dialogs')
| -rw-r--r-- | src/dialogs/clonetiler.cpp | 5 | ||||
| -rw-r--r-- | src/dialogs/export.cpp | 5 | ||||
| -rw-r--r-- | src/dialogs/find.cpp | 5 | ||||
| -rw-r--r-- | src/dialogs/spellcheck.cpp | 4 | ||||
| -rw-r--r-- | src/dialogs/xml-tree.cpp | 5 |
5 files changed, 24 insertions, 0 deletions
diff --git a/src/dialogs/clonetiler.cpp b/src/dialogs/clonetiler.cpp index bd4364cc1..c56abc21a 100644 --- a/src/dialogs/clonetiler.cpp +++ b/src/dialogs/clonetiler.cpp @@ -97,6 +97,9 @@ static Inkscape::UI::Widget::ColorPicker *color_picker; static void clonetiler_dialog_destroy(GtkObject */*object*/, gpointer /*data*/) { + Inkscape::Preferences *prefs = Inkscape::Preferences::get(); + prefs->setInt(prefs_path + "visible", 0); + sp_signal_disconnect_by_data (INKSCAPE, dlg); _color_changed_connection.disconnect(); @@ -1769,6 +1772,8 @@ void clonetiler_dialog(void) h = prefs->getInt(prefs_path + "h", 0); } + prefs->setInt(prefs_path + "visible", 1); + // if (x<0) x=0; // if (y<0) y=0; diff --git a/src/dialogs/export.cpp b/src/dialogs/export.cpp index 85149ccaa..706ece066 100644 --- a/src/dialogs/export.cpp +++ b/src/dialogs/export.cpp @@ -156,6 +156,9 @@ static const char * selection_labels[SELECTION_NUMBER_OF] = { static void sp_export_dialog_destroy ( GtkObject */*object*/, gpointer /*data*/ ) { + Inkscape::Preferences *prefs = Inkscape::Preferences::get(); + prefs->setInt(prefs_path + "visible", 0); + sp_signal_disconnect_by_data (INKSCAPE, dlg); wd.win = dlg = NULL; @@ -422,6 +425,8 @@ sp_export_dialog (void) h = prefs->getInt(prefs_path + "h", 0); } + prefs->setInt(prefs_path + "visible", 1); + // if (x<0) x=0; // if (y<0) y=0; diff --git a/src/dialogs/find.cpp b/src/dialogs/find.cpp index 7219c910e..b96284209 100644 --- a/src/dialogs/find.cpp +++ b/src/dialogs/find.cpp @@ -77,6 +77,9 @@ static Glib::ustring const prefs_path = "/dialogs/find/"; static void sp_find_dialog_destroy(GtkObject *object, gpointer) { + Inkscape::Preferences *prefs = Inkscape::Preferences::get(); + prefs->setInt(prefs_path + "visible", 0); + sp_signal_disconnect_by_data (INKSCAPE, object); wd.win = dlg = NULL; wd.stop = 0; @@ -661,6 +664,8 @@ sp_find_dialog_old (void) h = prefs->getInt(prefs_path + "h", 0); } + prefs->setInt(prefs_path + "visible", 1); + // if (x<0) x=0; // if (y<0) y=0; diff --git a/src/dialogs/spellcheck.cpp b/src/dialogs/spellcheck.cpp index 399d6ce81..cc1afd475 100644 --- a/src/dialogs/spellcheck.cpp +++ b/src/dialogs/spellcheck.cpp @@ -156,6 +156,8 @@ spellcheck_disconnect() static void sp_spellcheck_dialog_destroy(GtkObject *object, gpointer) { + _prefs->setInt(prefs_path + "visible", 0); + spellcheck_clear_rects(); spellcheck_clear_langs(); spellcheck_disconnect(); @@ -903,6 +905,8 @@ sp_spellcheck_dialog (void) h = _prefs->getInt(prefs_path + "h", 0); } + _prefs->setInt(prefs_path + "visible", 1); + if (w && h) gtk_window_resize ((GtkWindow *) dlg, w, h); if (x >= 0 && y >= 0 && (x < (gdk_screen_width()-MIN_ONSCREEN_DISTANCE)) && (y < (gdk_screen_height()-MIN_ONSCREEN_DISTANCE))) { diff --git a/src/dialogs/xml-tree.cpp b/src/dialogs/xml-tree.cpp index 608e7e121..6cf130c2b 100644 --- a/src/dialogs/xml-tree.cpp +++ b/src/dialogs/xml-tree.cpp @@ -206,6 +206,8 @@ void sp_xml_tree_dialog() h = prefs->getInt(prefs_path + "h", 0); } + prefs->setInt(prefs_path + "visible", 1); + // if (x<0) x=0; // if (y<0) y=0; @@ -991,6 +993,9 @@ void after_tree_move(GtkCTree */*tree*/, static void on_destroy(GtkObject */*object*/, gpointer /*data*/) { + Inkscape::Preferences *prefs = Inkscape::Preferences::get(); + prefs->setInt(prefs_path + "visible", 0); + set_tree_desktop(NULL); sp_signal_disconnect_by_data(INKSCAPE, dlg); wd.win = dlg = NULL; |
