summaryrefslogtreecommitdiff
path: root/examples/renderdemo.c
diff options
context:
space:
mode:
authorMorten Welinder <terra@gnome.org>2004-07-24 02:25:48 +0000
committerMorten Welinder <mortenw@src.gnome.org>2004-07-24 02:25:48 +0000
commit4b9a1f1f9d9bf8cff161f9a57b78a9f5fe950b94 (patch)
tree40eda675aed43004203c981b4977827fd5058a8b /examples/renderdemo.c
parent476dc1d5646b90ed3b9fbe28109da0ca9dd0b3bf (diff)
downloadpango-4b9a1f1f9d9bf8cff161f9a57b78a9f5fe950b94.tar.gz
Fix C99ism. I am clearly the last man stuck in the dark age of C.
2004-07-23 Morten Welinder <terra@gnome.org> * examples/renderdemo.c (parse_ellipsis): Fix C99ism. I am clearly the last man stuck in the dark age of C.
Diffstat (limited to 'examples/renderdemo.c')
-rw-r--r--examples/renderdemo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/renderdemo.c b/examples/renderdemo.c
index 78aa4037..b6940380 100644
--- a/examples/renderdemo.c
+++ b/examples/renderdemo.c
@@ -306,11 +306,12 @@ parse_ellipsis (ArgContext *arg_context,
gpointer data)
{
static GEnumClass *class = NULL;
+ GEnumValue *value;
if (!class)
class = g_type_class_ref (PANGO_TYPE_ELLIPSIZE_MODE);
- GEnumValue *value = g_enum_get_value_by_nick (class, arg);
+ value = g_enum_get_value_by_nick (class, arg);
if (!value)
fail ("--ellipsize option must be one of none/start/middle/end");