From fae67e1661842bd514929aa41ce21528ae56c571 Mon Sep 17 00:00:00 2001 From: "Jon A. Cruz" Date: Wed, 17 Mar 2010 18:21:55 -0700 Subject: Changed the embed/link dialog to use radio buttons instead of a checkbox to make the link/embed effect clearer. (bzr r9202) --- src/extension/internal/gdkpixbuf-input.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/extension') diff --git a/src/extension/internal/gdkpixbuf-input.cpp b/src/extension/internal/gdkpixbuf-input.cpp index 3f78b3f36..a1295406c 100644 --- a/src/extension/internal/gdkpixbuf-input.cpp +++ b/src/extension/internal/gdkpixbuf-input.cpp @@ -30,7 +30,8 @@ static std::set create_lossy_set() SPDocument * GdkpixbufInput::open(Inkscape::Extension::Input *mod, char const *uri) { - bool embed = !mod->get_param_bool("link"); + bool embed = (strcmp(mod->get_param_optiongroup("link"), "embed") == 0); + SPDocument *doc = NULL; GdkPixbuf *pb = Inkscape::IO::pixbuf_new_from_file( uri, NULL ); static std::set lossy = create_lossy_set(); @@ -147,9 +148,11 @@ GdkpixbufInput::init(void) "\n" "" N_("%s GDK pixbuf Input") "\n" "org.inkscape.input.gdkpixbuf.%s\n" - "false" + "\n" + "<_option value='embed'>" N_("embed") "\n" + "<_option value='link'>" N_("link") "\n" + "\n" + "<_param name='help' type='description'>" N_("Embed results in stand-alone, larger SVG files. Link references a file outside this SVG document and all files must be moved together.") "\n" "\n" ".%s\n" "%s\n" -- cgit v1.2.3