From f5f2132d60cdd1884c6343f759aadfd38a159e04 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Sat, 19 Jun 2010 19:29:49 -0400 Subject: Don't bother translating GnomeCanvas GObject properties. --- libgnomecanvas/gnome-canvas-rich-text.c | 80 ++++++++++----------- libgnomecanvas/gnome-canvas-text.c | 120 ++++++++++++++++---------------- libgnomecanvas/gnome-canvas.c | 12 ++-- 3 files changed, 106 insertions(+), 106 deletions(-) (limited to 'libgnomecanvas') diff --git a/libgnomecanvas/gnome-canvas-rich-text.c b/libgnomecanvas/gnome-canvas-rich-text.c index db0e52fde1..28bb2c50b6 100644 --- a/libgnomecanvas/gnome-canvas-rich-text.c +++ b/libgnomecanvas/gnome-canvas-rich-text.c @@ -207,88 +207,88 @@ gnome_canvas_rich_text_class_init(GnomeCanvasRichTextClass *klass) gobject_class, PROP_TEXT, g_param_spec_string ("text", - _("Text"), - _("Text to display"), + "Text", + "Text to display", NULL, G_PARAM_READWRITE)); g_object_class_install_property ( gobject_class, PROP_X, g_param_spec_double ("x", - _("X"), - _("X position"), + "X", + "X position", -G_MAXDOUBLE, G_MAXDOUBLE, 0.0, G_PARAM_READWRITE)); g_object_class_install_property ( gobject_class, PROP_Y, g_param_spec_double ("y", - _("Y"), - _("Y position"), + "Y", + "Y position", -G_MAXDOUBLE, G_MAXDOUBLE, 0.0, G_PARAM_READWRITE)); g_object_class_install_property ( gobject_class, PROP_WIDTH, g_param_spec_double ("width", - _("Width"), - _("Width for text box"), + "Width", + "Width for text box", -G_MAXDOUBLE, G_MAXDOUBLE, 0.0, G_PARAM_READWRITE)); g_object_class_install_property ( gobject_class, PROP_HEIGHT, g_param_spec_double ("height", - _("Height"), - _("Height for text box"), + "Height", + "Height for text box", -G_MAXDOUBLE, G_MAXDOUBLE, 0.0, G_PARAM_READWRITE)); g_object_class_install_property ( gobject_class, PROP_EDITABLE, g_param_spec_boolean ("editable", - _("Editable"), - _("Is this rich text item editable?"), + "Editable", + "Is this rich text item editable?", TRUE, G_PARAM_READWRITE)); g_object_class_install_property ( gobject_class, PROP_VISIBLE, g_param_spec_boolean ("visible", - _("Visible"), - _("Is this rich text item visible?"), + "Visible", + "Is this rich text item visible?", TRUE, G_PARAM_READWRITE)); g_object_class_install_property ( gobject_class, PROP_CURSOR_VISIBLE, g_param_spec_boolean ("cursor_visible", - _("Cursor Visible"), - _("Is the cursor visible in this rich text item?"), + "Cursor Visible", + "Is the cursor visible in this rich text item?", TRUE, G_PARAM_READWRITE)); g_object_class_install_property ( gobject_class, PROP_CURSOR_BLINK, g_param_spec_boolean ("cursor_blink", - _("Cursor Blink"), - _("Does the cursor blink in this rich text item?"), + "Cursor Blink", + "Does the cursor blink in this rich text item?", TRUE, G_PARAM_READWRITE)); g_object_class_install_property ( gobject_class, PROP_GROW_HEIGHT, g_param_spec_boolean ("grow_height", - _("Grow Height"), - _("Should the text box height grow if the text does not fit?"), + "Grow Height", + "Should the text box height grow if the text does not fit?", FALSE, G_PARAM_READWRITE)); g_object_class_install_property ( gobject_class, PROP_WRAP_MODE, g_param_spec_enum ("wrap_mode", - _("Wrap Mode"), - _("Wrap mode for multiline text"), + "Wrap Mode", + "Wrap mode for multiline text", GTK_TYPE_WRAP_MODE, GTK_WRAP_WORD, G_PARAM_READWRITE)); @@ -296,8 +296,8 @@ gnome_canvas_rich_text_class_init(GnomeCanvasRichTextClass *klass) gobject_class, PROP_JUSTIFICATION, g_param_spec_enum ("justification", - _("Justification"), - _("Justification mode"), + "Justification", + "Justification mode", GTK_TYPE_JUSTIFICATION, GTK_JUSTIFY_LEFT, G_PARAM_READWRITE)); @@ -305,8 +305,8 @@ gnome_canvas_rich_text_class_init(GnomeCanvasRichTextClass *klass) gobject_class, PROP_DIRECTION, g_param_spec_enum ("direction", - _("Direction"), - _("Text direction"), + "Direction", + "Text direction", GTK_TYPE_DIRECTION_TYPE, gtk_widget_get_default_direction (), G_PARAM_READWRITE)); @@ -314,8 +314,8 @@ gnome_canvas_rich_text_class_init(GnomeCanvasRichTextClass *klass) gobject_class, PROP_ANCHOR, g_param_spec_enum ("anchor", - _("Anchor"), - _("Anchor point for text"), + "Anchor", + "Anchor point for text", GTK_TYPE_ANCHOR_TYPE, GTK_ANCHOR_NW, G_PARAM_READWRITE)); @@ -323,8 +323,8 @@ gnome_canvas_rich_text_class_init(GnomeCanvasRichTextClass *klass) gobject_class, PROP_PIXELS_ABOVE_LINES, g_param_spec_int ("pixels_above_lines", - _("Pixels Above Lines"), - _("Number of pixels to put above lines"), + "Pixels Above Lines", + "Number of pixels to put above lines", G_MININT, G_MAXINT, 0, G_PARAM_READWRITE)); @@ -332,8 +332,8 @@ gnome_canvas_rich_text_class_init(GnomeCanvasRichTextClass *klass) gobject_class, PROP_PIXELS_BELOW_LINES, g_param_spec_int ("pixels_below_lines", - _("Pixels Below Lines"), - _("Number of pixels to put below lines"), + "Pixels Below Lines", + "Number of pixels to put below lines", G_MININT, G_MAXINT, 0, G_PARAM_READWRITE)); @@ -341,8 +341,8 @@ gnome_canvas_rich_text_class_init(GnomeCanvasRichTextClass *klass) gobject_class, PROP_PIXELS_INSIDE_WRAP, g_param_spec_int ("pixels_inside_wrap", - _("Pixels Inside Wrap"), - _("Number of pixels to put inside the wrap"), + "Pixels Inside Wrap", + "Number of pixels to put inside the wrap", G_MININT, G_MAXINT, 0, G_PARAM_READWRITE)); @@ -350,8 +350,8 @@ gnome_canvas_rich_text_class_init(GnomeCanvasRichTextClass *klass) gobject_class, PROP_LEFT_MARGIN, g_param_spec_int ("left_margin", - _("Left Margin"), - _("Number of pixels in the left margin"), + "Left Margin", + "Number of pixels in the left margin", G_MININT, G_MAXINT, 0, G_PARAM_READWRITE)); @@ -359,8 +359,8 @@ gnome_canvas_rich_text_class_init(GnomeCanvasRichTextClass *klass) gobject_class, PROP_RIGHT_MARGIN, g_param_spec_int ("right_margin", - _("Right Margin"), - _("Number of pixels in the right margin"), + "Right Margin", + "Number of pixels in the right margin", G_MININT, G_MAXINT, 0, G_PARAM_READWRITE)); @@ -368,8 +368,8 @@ gnome_canvas_rich_text_class_init(GnomeCanvasRichTextClass *klass) gobject_class, PROP_INDENT, g_param_spec_int ("indent", - _("Indentation"), - _("Number of pixels for indentation"), + "Indentation", + "Number of pixels for indentation", G_MININT, G_MAXINT, 0, G_PARAM_READWRITE)); diff --git a/libgnomecanvas/gnome-canvas-text.c b/libgnomecanvas/gnome-canvas-text.c index 93a7aad917..d54dee84ba 100644 --- a/libgnomecanvas/gnome-canvas-text.c +++ b/libgnomecanvas/gnome-canvas-text.c @@ -201,8 +201,8 @@ gnome_canvas_text_class_init (GnomeCanvasTextClass *class) (gobject_class, PROP_TEXT, g_param_spec_string ("text", - _("Text"), - _("Text to render"), + "Text", + "Text to render", NULL, (G_PARAM_READABLE | G_PARAM_WRITABLE))); @@ -210,8 +210,8 @@ gnome_canvas_text_class_init (GnomeCanvasTextClass *class) (gobject_class, PROP_MARKUP, g_param_spec_string ("markup", - _("Markup"), - _("Marked up text to render"), + "Markup", + "Marked up text to render", NULL, (G_PARAM_WRITABLE))); @@ -236,8 +236,8 @@ gnome_canvas_text_class_init (GnomeCanvasTextClass *class) (gobject_class, PROP_FONT, g_param_spec_string ("font", - _("Font"), - _("Font description as a string"), + "Font", + "Font description as a string", NULL, (G_PARAM_READABLE | G_PARAM_WRITABLE))); @@ -245,8 +245,8 @@ gnome_canvas_text_class_init (GnomeCanvasTextClass *class) (gobject_class, PROP_FONT_DESC, g_param_spec_boxed ("font_desc", - _("Font description"), - _("Font description as a PangoFontDescription struct"), + "Font description", + "Font description as a PangoFontDescription struct", PANGO_TYPE_FONT_DESCRIPTION, (G_PARAM_READABLE | G_PARAM_WRITABLE))); @@ -254,8 +254,8 @@ gnome_canvas_text_class_init (GnomeCanvasTextClass *class) (gobject_class, PROP_FAMILY, g_param_spec_string ("family", - _("Font family"), - _("Name of the font family, e.g. Sans, Helvetica, Times, Monospace"), + "Font family", + "Name of the font family, e.g. Sans, Helvetica, Times, Monospace", NULL, (G_PARAM_READABLE | G_PARAM_WRITABLE))); @@ -271,8 +271,8 @@ gnome_canvas_text_class_init (GnomeCanvasTextClass *class) (gobject_class, PROP_STYLE, g_param_spec_enum ("style", - _("Font style"), - _("Font style"), + "Font style", + "Font style", PANGO_TYPE_STYLE, PANGO_STYLE_NORMAL, G_PARAM_READABLE | G_PARAM_WRITABLE)); @@ -281,8 +281,8 @@ gnome_canvas_text_class_init (GnomeCanvasTextClass *class) (gobject_class, PROP_VARIANT, g_param_spec_enum ("variant", - _("Font variant"), - _("Font variant"), + "Font variant", + "Font variant", PANGO_TYPE_VARIANT, PANGO_VARIANT_NORMAL, G_PARAM_READABLE | G_PARAM_WRITABLE)); @@ -291,8 +291,8 @@ gnome_canvas_text_class_init (GnomeCanvasTextClass *class) (gobject_class, PROP_WEIGHT, g_param_spec_int ("weight", - _("Font weight"), - _("Font weight"), + "Font weight", + "Font weight", 0, G_MAXINT, PANGO_WEIGHT_NORMAL, @@ -303,8 +303,8 @@ gnome_canvas_text_class_init (GnomeCanvasTextClass *class) (gobject_class, PROP_STRETCH, g_param_spec_enum ("stretch", - _("Font stretch"), - _("Font stretch"), + "Font stretch", + "Font stretch", PANGO_TYPE_STRETCH, PANGO_STRETCH_NORMAL, G_PARAM_READABLE | G_PARAM_WRITABLE)); @@ -313,8 +313,8 @@ gnome_canvas_text_class_init (GnomeCanvasTextClass *class) (gobject_class, PROP_SIZE, g_param_spec_int ("size", - _("Font size"), - _("Font size (as a multiple of PANGO_SCALE, eg. 12*PANGO_SCALE for a 12pt font size)"), + "Font size", + "Font size (as a multiple of PANGO_SCALE, eg. 12*PANGO_SCALE for a 12pt font size)", 0, G_MAXINT, 0, @@ -324,8 +324,8 @@ gnome_canvas_text_class_init (GnomeCanvasTextClass *class) (gobject_class, PROP_SIZE_POINTS, g_param_spec_double ("size_points", - _("Font points"), - _("Font size in points (eg. 12 for a 12pt font size)"), + "Font points", + "Font size in points (eg. 12 for a 12pt font size)", 0.0, G_MAXDOUBLE, 0.0, @@ -335,8 +335,8 @@ gnome_canvas_text_class_init (GnomeCanvasTextClass *class) (gobject_class, PROP_RISE, g_param_spec_int ("rise", - _("Rise"), - _("Offset of text above the baseline (below the baseline if rise is negative)"), + "Rise", + "Offset of text above the baseline (below the baseline if rise is negative)", -G_MAXINT, G_MAXINT, 0, @@ -346,8 +346,8 @@ gnome_canvas_text_class_init (GnomeCanvasTextClass *class) (gobject_class, PROP_STRIKETHROUGH, g_param_spec_boolean ("strikethrough", - _("Strikethrough"), - _("Whether to strike through the text"), + "Strikethrough", + "Whether to strike through the text", FALSE, G_PARAM_READABLE | G_PARAM_WRITABLE)); @@ -355,8 +355,8 @@ gnome_canvas_text_class_init (GnomeCanvasTextClass *class) (gobject_class, PROP_UNDERLINE, g_param_spec_enum ("underline", - _("Underline"), - _("Style of underline for this text"), + "Underline", + "Style of underline for this text", PANGO_TYPE_UNDERLINE, PANGO_UNDERLINE_NONE, G_PARAM_READABLE | G_PARAM_WRITABLE)); @@ -365,8 +365,8 @@ gnome_canvas_text_class_init (GnomeCanvasTextClass *class) (gobject_class, PROP_SCALE, g_param_spec_double ("scale", - _("Scale"), - _("Size of font, relative to default size"), + "Scale", + "Size of font, relative to default size", 0.0, G_MAXDOUBLE, 1.0, @@ -420,24 +420,24 @@ gnome_canvas_text_class_init (GnomeCanvasTextClass *class) (gobject_class, PROP_FILL_COLOR, g_param_spec_string ("fill_color", - _("Color"), - _("Text color, as string"), + "Color", + "Text color, as string", NULL, (G_PARAM_READABLE | G_PARAM_WRITABLE))); g_object_class_install_property (gobject_class, PROP_FILL_COLOR_GDK, g_param_spec_boxed ("fill_color_gdk", - _("Color"), - _("Text color, as a GdkColor"), + "Color", + "Text color, as a GdkColor", GDK_TYPE_COLOR, (G_PARAM_READABLE | G_PARAM_WRITABLE))); g_object_class_install_property (gobject_class, PROP_FILL_COLOR_RGBA, g_param_spec_uint ("fill_color_rgba", - _("Color"), - _("Text color, as an R/G/B/A combined integer"), + "Color", + "Text color, as an R/G/B/A combined integer", 0, G_MAXUINT, 0, (G_PARAM_READABLE | G_PARAM_WRITABLE))); g_object_class_install_property @@ -450,16 +450,16 @@ gnome_canvas_text_class_init (GnomeCanvasTextClass *class) (gobject_class, PROP_TEXT_WIDTH, g_param_spec_double ("text_width", - _("Text width"), - _("Width of the rendered text"), + "Text width", + "Width of the rendered text", 0.0, G_MAXDOUBLE, 0.0, G_PARAM_READABLE)); g_object_class_install_property (gobject_class, PROP_TEXT_HEIGHT, g_param_spec_double ("text_height", - _("Text height"), - _("Height of the rendered text"), + "Text height", + "Height of the rendered text", 0.0, G_MAXDOUBLE, 0.0, G_PARAM_READABLE)); @@ -467,44 +467,44 @@ gnome_canvas_text_class_init (GnomeCanvasTextClass *class) #define ADD_SET_PROP(propname, propval, nick, blurb) g_object_class_install_property (gobject_class, propval, g_param_spec_boolean (propname, nick, blurb, FALSE, G_PARAM_READABLE | G_PARAM_WRITABLE)) ADD_SET_PROP ("family_set", PROP_FAMILY_SET, - _("Font family set"), - _("Whether this tag affects the font family")); + "Font family set", + "Whether this tag affects the font family"); ADD_SET_PROP ("style_set", PROP_STYLE_SET, - _("Font style set"), - _("Whether this tag affects the font style")); + "Font style set", + "Whether this tag affects the font style"); ADD_SET_PROP ("variant_set", PROP_VARIANT_SET, - _("Font variant set"), - _("Whether this tag affects the font variant")); + "Font variant set", + "Whether this tag affects the font variant"); ADD_SET_PROP ("weight_set", PROP_WEIGHT_SET, - _("Font weight set"), - _("Whether this tag affects the font weight")); + "Font weight set", + "Whether this tag affects the font weight"); ADD_SET_PROP ("stretch_set", PROP_STRETCH_SET, - _("Font stretch set"), - _("Whether this tag affects the font stretch")); + "Font stretch set", + "Whether this tag affects the font stretch"); ADD_SET_PROP ("size_set", PROP_SIZE_SET, - _("Font size set"), - _("Whether this tag affects the font size")); + "Font size set", + "Whether this tag affects the font size"); ADD_SET_PROP ("rise_set", PROP_RISE_SET, - _("Rise set"), - _("Whether this tag affects the rise")); + "Rise set", + "Whether this tag affects the rise"); ADD_SET_PROP ("strikethrough_set", PROP_STRIKETHROUGH_SET, - _("Strikethrough set"), - _("Whether this tag affects strikethrough")); + "Strikethrough set", + "Whether this tag affects strikethrough"); ADD_SET_PROP ("underline_set", PROP_UNDERLINE_SET, - _("Underline set"), - _("Whether this tag affects underlining")); + "Underline set", + "Whether this tag affects underlining"); ADD_SET_PROP ("scale_set", PROP_SCALE_SET, - _("Scale set"), - _("Whether this tag affects font scaling")); + "Scale set", + "Whether this tag affects font scaling"); #undef ADD_SET_PROP object_class->destroy = gnome_canvas_text_destroy; diff --git a/libgnomecanvas/gnome-canvas.c b/libgnomecanvas/gnome-canvas.c index d89eb19fa7..4f8f24b7dc 100644 --- a/libgnomecanvas/gnome-canvas.c +++ b/libgnomecanvas/gnome-canvas.c @@ -1414,15 +1414,15 @@ gnome_canvas_group_class_init (GnomeCanvasGroupClass *class) g_object_class_install_property (gobject_class, GROUP_PROP_X, g_param_spec_double ("x", - _("X"), - _("X"), + "X", + "X", -G_MAXDOUBLE, G_MAXDOUBLE, 0.0, (G_PARAM_READABLE | G_PARAM_WRITABLE))); g_object_class_install_property (gobject_class, GROUP_PROP_Y, g_param_spec_double ("y", - _("Y"), - _("Y"), + "Y", + "Y", -G_MAXDOUBLE, G_MAXDOUBLE, 0.0, (G_PARAM_READABLE | G_PARAM_WRITABLE))); @@ -2065,8 +2065,8 @@ gnome_canvas_class_init (GnomeCanvasClass *klass) g_object_class_install_property (G_OBJECT_CLASS (object_class), PROP_AA, g_param_spec_boolean ("aa", - _("Antialiased"), - _("The antialiasing mode of the canvas."), + "Antialiased", + "The antialiasing mode of the canvas.", FALSE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); -- cgit v1.2.3