diff options
| author | Jon A. Cruz <jon@joncruz.org> | 2010-03-18 01:21:55 +0000 |
|---|---|---|
| committer | Jon A. Cruz <jon@joncruz.org> | 2010-03-18 01:21:55 +0000 |
| commit | fae67e1661842bd514929aa41ce21528ae56c571 (patch) | |
| tree | 5244778438528c6d367937602fec42f3a3d5074e /src/interface.cpp | |
| parent | Added wrappers for the "optiongroup" type that correspond to existing "float"... (diff) | |
| download | inkscape-fae67e1661842bd514929aa41ce21528ae56c571.tar.gz inkscape-fae67e1661842bd514929aa41ce21528ae56c571.zip | |
Changed the embed/link dialog to use radio buttons instead of a checkbox to make the link/embed effect clearer.
(bzr r9202)
Diffstat (limited to 'src/interface.cpp')
| -rw-r--r-- | src/interface.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/interface.cpp b/src/interface.cpp index cb021db18..1a6da5635 100644 --- a/src/interface.cpp +++ b/src/interface.cpp @@ -1465,8 +1465,8 @@ sp_ui_drag_data_received(GtkWidget *widget, ++i; } Inkscape::Extension::Extension *ext = *i; - bool save = ext->get_param_bool("link"); - ext->set_param_bool("link", false); + bool save = (strcmp(ext->get_param_optiongroup("link"), "embed") == 0); + ext->set_param_optiongroup("link", "embed"); ext->set_gui(false); gchar *filename = g_build_filename( g_get_tmp_dir(), "inkscape-dnd-import", NULL ); @@ -1474,7 +1474,7 @@ sp_ui_drag_data_received(GtkWidget *widget, file_import(doc, filename, ext); g_free(filename); - ext->set_param_bool("link", save); + ext->set_param_optiongroup("link", save ? "embed" : "link"); ext->set_gui(true); sp_document_done( doc , SP_VERB_NONE, _("Drop bitmap image")); |
