summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0586e94)
raw | patch | inline | side by side (parent: 0586e94)
author | joncruz <joncruz@users.sourceforge.net> | |
Thu, 22 May 2008 04:57:08 +0000 (04:57 +0000) | ||
committer | joncruz <joncruz@users.sourceforge.net> | |
Thu, 22 May 2008 04:57:08 +0000 (04:57 +0000) |
src/dialogs/swatches.cpp | patch | blob | history |
index 1ed36e7897f28b67b75f50a57a669cd39308011e..2987b3212fdbed0aa57de9379ed3129a791154f3 100644 (file)
--- a/src/dialogs/swatches.cpp
+++ b/src/dialogs/swatches.cpp
@@ -245,14 +245,10 @@ static gboolean handleEnterNotify( GtkWidget* widget, GdkEventCrossing* event, g
if ( item ) {
SPDesktop *desktop = SP_ACTIVE_DESKTOP;
if ( desktop ) {
- desktop->tipsMessageContext()->set(Inkscape::INFORMATION_MESSAGE, g_strconcat(
- _("Color: <b>"),
- item->def.descr.c_str(),
- _("</b>"),
- _("; "),
- _("<b>Click</b> to set fill, <b>Shift+click</b> to set stroke"),
- NULL
- ));
+ gchar* msg = g_strdup_printf(_("Color: <b>%s</b>; <b>Click</b> to set fill, <b>Shift+click</b> to set stroke"),
+ item->def.descr.c_str());
+ desktop->tipsMessageContext()->set(Inkscape::INFORMATION_MESSAGE, msg);
+ g_free(msg);
}
}
return FALSE;