summaryrefslogtreecommitdiffstats
path: root/src/interface.cpp
diff options
context:
space:
mode:
authorJon A. Cruz <jon@joncruz.org>2010-03-18 01:21:55 +0000
committerJon A. Cruz <jon@joncruz.org>2010-03-18 01:21:55 +0000
commitfae67e1661842bd514929aa41ce21528ae56c571 (patch)
tree5244778438528c6d367937602fec42f3a3d5074e /src/interface.cpp
parentAdded wrappers for the "optiongroup" type that correspond to existing "float"... (diff)
downloadinkscape-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 '')
-rw-r--r--src/interface.cpp6
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"));