Use clutter_text_activate()
authorEmmanuele Bassi <ebassi@linux.intel.com>
Tue, 16 Dec 2008 12:05:10 +0000 (12:05 +0000)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Tue, 16 Dec 2008 12:05:10 +0000 (12:05 +0000)
Instead of repeating the same code for the ::activate signal
emission, use the clutter_text_activate() function inside the
'activate' key binding handler.

clutter/clutter-text.c

index 22198a6..cfeb3a7 100644 (file)
@@ -1446,16 +1446,7 @@ clutter_text_real_activate (ClutterText         *self,
                             guint                keyval,
                             ClutterModifierType  modifiers)
 {
-  ClutterTextPrivate *priv = self->priv;
-
-  if (priv->activatable)
-    {
-      g_signal_emit (self, text_signals[ACTIVATE], 0);
-
-      return TRUE;
-    }
-
-  return FALSE;
+  return clutter_text_activate (self);
 }
 
 static inline void