summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7086096)
raw | patch | inline | side by side (parent: 7086096)
author | joncruz <joncruz@users.sourceforge.net> | |
Sun, 3 Aug 2008 06:07:19 +0000 (06:07 +0000) | ||
committer | joncruz <joncruz@users.sourceforge.net> | |
Sun, 3 Aug 2008 06:07:19 +0000 (06:07 +0000) |
index 5b0acb31d1cd932ece1e8fa1bdd736ad4928dd2b..15acece5e403791fba7e227c9483aafbf7a7c1b9 100644 (file)
@@ -428,7 +428,7 @@ sp_canvastext_update (SPCanvasItem *item, NR::Matrix const &affine, unsigned int
}
SPCanvasItem *
-sp_canvastext_new(SPCanvasGroup *parent, SPDesktop *desktop, Geom::Point pos, char *new_text)
+sp_canvastext_new(SPCanvasGroup *parent, SPDesktop *desktop, Geom::Point pos, gchar const *new_text)
{
SPCanvasItem *item = sp_canvas_item_new(parent, SP_TYPE_CANVASTEXT, NULL);
}
void
-sp_canvastext_set_text (SPCanvasText *ct, const char* new_text)
+sp_canvastext_set_text (SPCanvasText *ct, gchar const * new_text)
{
g_free (ct->text);
ct->text = g_strdup(new_text);
index 5a6e6e7ff6bc810c0c63bc5fb24f9d215bb2248c..bc3db883b85e85bbe3c074e9b99aa49bd4f5f3d5 100644 (file)
guint32 rgba;
SPDesktop *desktop; // the desktop to which this text is attached; needed for coordinate transforms (TODO: these should be eliminated)
- char* text;
+ gchar* text;
NR::Point s;
NR::Matrix affine;
double fontsize;
GtkType sp_canvastext_get_type (void);
-SPCanvasItem *sp_canvastext_new(SPCanvasGroup *parent, SPDesktop *desktop, Geom::Point pos, char *text);
+SPCanvasItem *sp_canvastext_new(SPCanvasGroup *parent, SPDesktop *desktop, Geom::Point pos, gchar const *text);
void sp_canvastext_set_rgba32 (SPCanvasText *ct, guint32 rgba);
void sp_canvastext_set_coords (SPCanvasText *ct, gdouble x0, gdouble y0);
void sp_canvastext_set_coords (SPCanvasText *ct, const NR::Point start);
-void sp_canvastext_set_text (SPCanvasText *ct, const char* new_text);
+void sp_canvastext_set_text (SPCanvasText *ct, gchar const* new_text);
void sp_canvastext_set_number_as_text (SPCanvasText *ct, int num);
void sp_canvastext_set_fontsize (SPCanvasText *ct, double size);
void sp_canvastext_set_anchor (SPCanvasText *ct, double anchor_x, double anchor_y);
index d93fc3167ef799391491ea32105b950fd83c653f..1ed35fe2ab045cd9ca60f1c86591317bd27adb04 100644 (file)
@@ -168,7 +168,7 @@ sp_canvastext_update (SPCanvasItem *item, NR::Matrix const &affine, unsigned int
}
SPCanvasItem *
-sp_canvastext_new(SPCanvasGroup *parent, Geom::Point pos, char *new_text)
+sp_canvastext_new(SPCanvasGroup *parent, Geom::Point pos, gchar const *new_text)
{
SPCanvasItem *item = sp_canvas_item_new(parent, SP_TYPE_CANVASTEXT, NULL);
}
void
-sp_canvastext_set_text (SPCanvasText *ct, const char* new_text)
+sp_canvastext_set_text (SPCanvasText *ct, gchar const* new_text)
{
g_free (ct->text);
ct->text = g_strdup(new_text);
index 7d1da46f57ce3cae26c9db809484002267aacd91..54ec8c413ca2b8d295bee71e0997fbc50089fcaa 100644 (file)
SPItem *item; // the item to which this line belongs in some sense; may be NULL for some users
guint32 rgba;
- char* text;
+ gchar* text;
NR::Point s;
NR::Matrix affine;
double fontsize;
GtkType sp_canvastext_get_type (void);
-SPCanvasItem *sp_canvastext_new(SPCanvasGroup *parent, Geom::Point pos, char *text);
+SPCanvasItem *sp_canvastext_new(SPCanvasGroup *parent, Geom::Point pos, gchar const *text);
void sp_canvastext_set_rgba32 (SPCanvasText *ct, guint32 rgba);
void sp_canvastext_set_coords (SPCanvasText *ct, gdouble x0, gdouble y0);
void sp_canvastext_set_coords (SPCanvasText *ct, const NR::Point start);
-void sp_canvastext_set_text (SPCanvasText *ct, const char* new_text);
+void sp_canvastext_set_text (SPCanvasText *ct, gchar const* new_text);
void sp_canvastext_set_number_as_text (SPCanvasText *ct, int num);
void sp_canvastext_set_fontsize (SPCanvasText *ct, double size);
void sp_canvastext_set_anchor (SPCanvasText *ct, double anchor_x, double anchor_y);