summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b8f7123)
raw | patch | inline | side by side (parent: b8f7123)
author | joncruz <joncruz@users.sourceforge.net> | |
Thu, 22 May 2008 06:39:40 +0000 (06:39 +0000) | ||
committer | joncruz <joncruz@users.sourceforge.net> | |
Thu, 22 May 2008 06:39:40 +0000 (06:39 +0000) |
src/pen-context.cpp | patch | blob | history |
diff --git a/src/pen-context.cpp b/src/pen-context.cpp
index d286c6f6c00fcfc3cd0b15e2eaef33bc83879066..b63efdf56a847e4d430eaeebb7a3346b93ed18eb 100644 (file)
--- a/src/pen-context.cpp
+++ b/src/pen-context.cpp
@@ -1135,14 +1135,9 @@ spdc_pen_set_subsequent_point(SPPenContext *const pc, NR::Point const p, bool st
sp_canvas_bpath_set_bpath(SP_CANVAS_BPATH(pc->red_bpath), pc->red_curve);
if (statusbar) {
- gchar *message = g_strconcat(
- "<b>",
- is_curve ? _("Curve segment") : _("Line segment"),
- "</b>: ",
- _("angle %3.2f°, distance %s; with <b>Ctrl</b> to snap angle, <b>Enter</b> to finish the path"),
- NULL
- );
-
+ gchar *message = is_curve ?
+ _("<b>Curve segment</b>: angle %3.2f°, distance %s; with <b>Ctrl</b> to snap angle, <b>Enter</b> to finish the path" ):
+ _("<b>Line segment</b>: angle %3.2f°, distance %s; with <b>Ctrl</b> to snap angle, <b>Enter</b> to finish the path");
spdc_pen_set_angle_distance_status_message(pc, p, 0, message);
g_free(message);
}
@@ -1182,14 +1177,9 @@ spdc_pen_set_ctrl(SPPenContext *const pc, NR::Point const p, guint const state)
SP_CTRL(pc->c1)->moveto(pc->p[4]);
sp_ctrlline_set_coords(SP_CTRLLINE(pc->cl1), pc->p[3], pc->p[4]);
- gchar *message = g_strconcat(
- "<b>",
- is_symm ? _("Curve handle, symmetric") : _("Curve handle"),
- "</b>: ",
- _("angle %3.2f°, length %s; with <b>Ctrl</b> to snap angle, with <b>Shift</b> to move this handle only"),
- NULL
- );
-
+ gchar *message = is_symm ?
+ _("<b>Curve handle, symmetric</b>: angle %3.2f°, length %s; with <b>Ctrl</b> to snap angle, with <b>Shift</b> to move this handle only") :
+ _("<b>Curve handle</b>: angle %3.2f°, length %s; with <b>Ctrl</b> to snap angle, with <b>Shift</b> to move this handle only");
spdc_pen_set_angle_distance_status_message(pc, p, 3, message);
g_free(message);
} else {