aboutsummaryrefslogtreecommitdiffstats
path: root/libgnomecanvas/gnome-canvas-text.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-05-21 22:02:58 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-06-30 00:42:17 +0800
commit5146ff4c535f443fe25290eb96631e91ad44c8ef (patch)
treeb8cc31419c1f297092e13eedd9a5877f4c106eda /libgnomecanvas/gnome-canvas-text.c
parentea8a59a443f861af88ddb21d5dcbde1c95006203 (diff)
downloadgsoc2013-evolution-5146ff4c535f443fe25290eb96631e91ad44c8ef.tar
gsoc2013-evolution-5146ff4c535f443fe25290eb96631e91ad44c8ef.tar.gz
gsoc2013-evolution-5146ff4c535f443fe25290eb96631e91ad44c8ef.tar.bz2
gsoc2013-evolution-5146ff4c535f443fe25290eb96631e91ad44c8ef.tar.lz
gsoc2013-evolution-5146ff4c535f443fe25290eb96631e91ad44c8ef.tar.xz
gsoc2013-evolution-5146ff4c535f443fe25290eb96631e91ad44c8ef.tar.zst
gsoc2013-evolution-5146ff4c535f443fe25290eb96631e91ad44c8ef.zip
Coding style and whitespace cleanup.
Diffstat (limited to 'libgnomecanvas/gnome-canvas-text.c')
-rw-r--r--libgnomecanvas/gnome-canvas-text.c40
1 files changed, 29 insertions, 11 deletions
diff --git a/libgnomecanvas/gnome-canvas-text.c b/libgnomecanvas/gnome-canvas-text.c
index 81176df6e8..35a109b937 100644
--- a/libgnomecanvas/gnome-canvas-text.c
+++ b/libgnomecanvas/gnome-canvas-text.c
@@ -935,9 +935,9 @@ gnome_canvas_text_get_property (GObject *object,
switch (param_id) {
case PROP_FONT:
{
- /* FIXME GValue imposes a totally gratuitous string copy
- * here, we could just hand off string ownership
- */
+ /* FIXME GValue imposes a totally gratuitous string
+ * copy here, we could just hand off string
+ * ownership. */
gchar *str;
str = pango_font_description_to_string (text->font_desc);
@@ -952,34 +952,52 @@ gnome_canvas_text_get_property (GObject *object,
break;
case PROP_FAMILY:
- g_value_set_string (value, pango_font_description_get_family (text->font_desc));
+ g_value_set_string (
+ value,
+ pango_font_description_get_family (
+ text->font_desc));
break;
case PROP_STYLE:
- g_value_set_enum (value, pango_font_description_get_style (text->font_desc));
+ g_value_set_enum (
+ value,
+ pango_font_description_get_style (
+ text->font_desc));
break;
case PROP_VARIANT:
- g_value_set_enum (value, pango_font_description_get_variant (text->font_desc));
+ g_value_set_enum (
+ value,
+ pango_font_description_get_variant (
+ text->font_desc));
break;
case PROP_WEIGHT:
- g_value_set_int (value, pango_font_description_get_weight (text->font_desc));
+ g_value_set_int (
+ value,
+ pango_font_description_get_weight (
+ text->font_desc));
break;
case PROP_STRETCH:
- g_value_set_enum (value, pango_font_description_get_stretch (text->font_desc));
+ g_value_set_enum (
+ value,
+ pango_font_description_get_stretch (
+ text->font_desc));
break;
case PROP_SIZE:
- g_value_set_int (value, pango_font_description_get_size (text->font_desc));
+ g_value_set_int (
+ value,
+ pango_font_description_get_size (
+ text->font_desc));
break;
case PROP_SIZE_POINTS:
g_value_set_double (
value, ((gdouble)
- pango_font_description_get_size (text->font_desc)) /
- (gdouble) PANGO_SCALE);
+ pango_font_description_get_size (
+ text->font_desc)) / (gdouble) PANGO_SCALE);
break;
}
break;