diff options
| author | Maximilian Albert <maximilian.albert@gmail.com> | 2008-08-18 00:43:01 +0000 |
|---|---|---|
| committer | cilix42 <cilix42@users.sourceforge.net> | 2008-08-18 00:43:01 +0000 |
| commit | b3a7532b050af92cfab11723604b27f2b1b46f6d (patch) | |
| tree | 121dbc0386eaad347e0d5124bce8e5ef094685cf /src/lpe-tool-context.cpp | |
| parent | Slightly enlarge icon for geometric tool (diff) | |
| download | inkscape-b3a7532b050af92cfab11723604b27f2b1b46f6d.tar.gz inkscape-b3a7532b050af92cfab11723604b27f2b1b46f6d.zip | |
Add button whether to display limiting bounding box; add 'all inactive' toggle button as a workaround that not all toggle buttons can be inactive in an EgeSelectOneAction
(bzr r6673)
Diffstat (limited to 'src/lpe-tool-context.cpp')
| -rw-r--r-- | src/lpe-tool-context.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/lpe-tool-context.cpp b/src/lpe-tool-context.cpp index f9fc3ad71..881aa47e9 100644 --- a/src/lpe-tool-context.cpp +++ b/src/lpe-tool-context.cpp @@ -43,9 +43,10 @@ static gint sp_lpetool_context_root_handler(SPEventContext *ec, GdkEvent *event) void sp_lpetool_context_selection_changed(Inkscape::Selection *selection, gpointer data); -const int num_subtools = 6; +const int num_subtools = 7; Inkscape::LivePathEffect::EffectType lpesubtools[] = { + Inkscape::LivePathEffect::INVALID_LPE, // this must be here to account for the "all inactive" action Inkscape::LivePathEffect::LINE_SEGMENT, Inkscape::LivePathEffect::CIRCLE_3PTS, Inkscape::LivePathEffect::CIRCLE_WITH_RADIUS, @@ -305,6 +306,14 @@ sp_lpetool_context_root_handler(SPEventContext *event_context, GdkEvent *event) void lpetool_context_reset_limiting_bbox(SPLPEToolContext *lc) { + if (lc->canvas_bbox) { + gtk_object_destroy(GTK_OBJECT(lc->canvas_bbox)); + lc->canvas_bbox = NULL; + } + + if (prefs_get_int_attribute("tools.lpetool", "show_bbox", 1) == 0) + return; + SPDocument *document = sp_desktop_document(lc->desktop); Geom::Coord w = sp_document_width(document); Geom::Coord h = sp_document_height(document); |
