diff options
| author | MenTaLguY <mental@rydia.net> | 2006-05-21 20:36:01 +0000 |
|---|---|---|
| committer | mental <mental@users.sourceforge.net> | 2006-05-21 20:36:01 +0000 |
| commit | 3c2f8189a5e834c1f2aa53230da69b97e3171e81 (patch) | |
| tree | dbe4a4990e825f065273954e6aaaaefd994cd736 /src/dialogs/filedialog.cpp | |
| parent | remove unnecessary casts which didn't compile on old versions of FreeType (diff) | |
| download | inkscape-3c2f8189a5e834c1f2aa53230da69b97e3171e81.tar.gz inkscape-3c2f8189a5e834c1f2aa53230da69b97e3171e81.zip | |
call GC::request_early_collection() after switching preview images
(bzr r923)
Diffstat (limited to 'src/dialogs/filedialog.cpp')
| -rw-r--r-- | src/dialogs/filedialog.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/dialogs/filedialog.cpp b/src/dialogs/filedialog.cpp index bf9eaceb5..fb6e599a8 100644 --- a/src/dialogs/filedialog.cpp +++ b/src/dialogs/filedialog.cpp @@ -45,6 +45,7 @@ #include "inkscape.h" #include "svg-view-widget.h" #include "filedialog.h" +#include "gc-core.h" #undef INK_DUMP_FILENAME_CONV @@ -175,6 +176,8 @@ bool SVGPreview::setFromMem(char const *xmlBuffer) sp_document_unref(doc); + Inkscape::GC::request_early_collection(); + return true; } @@ -675,10 +678,8 @@ private: void FileOpenDialogImpl::updatePreviewCallback() { Glib::ustring fileName = get_preview_filename(); - if (fileName.length() < 1) return; - svgPreview.set(fileName, dialogType); } @@ -897,6 +898,7 @@ FileOpenDialogImpl::show() set_modal (TRUE); //Window sp_transientize((GtkWidget *)gobj()); //Make transient gint b = run(); //Dialog + svgPreview.showNoPreview(); hide(); if (b == Gtk::RESPONSE_OK) @@ -1344,6 +1346,7 @@ FileSaveDialogImpl::show() set_modal (TRUE); //Window sp_transientize((GtkWidget *)gobj()); //Make transient gint b = run(); //Dialog + svgPreview.showNoPreview(); hide(); if (b == Gtk::RESPONSE_OK) |
