Do not namespace internal data structures

Since the internal data structures are not exported (duh!), we
can eschew the namespacing and save us some characters.
This commit is contained in:
Emmanuele Bassi 2008-12-11 11:57:46 +00:00
parent e93a7e243c
commit 2fedd3263c

View File

@ -57,7 +57,7 @@
typedef struct _LayoutCache LayoutCache; typedef struct _LayoutCache LayoutCache;
typedef struct _TextCommand TextCommand; typedef struct _TextCommand TextCommand;
typedef struct _ClutterTextMapping ClutterTextMapping; typedef struct _TextMapping TextMapping;
/* Probably move into main */ /* Probably move into main */
static PangoContext *_context = NULL; static PangoContext *_context = NULL;
@ -92,7 +92,7 @@ struct _TextCommand
ClutterEvent *event); ClutterEvent *event);
}; };
struct _ClutterTextMapping struct _TextMapping
{ {
ClutterModifierType state; ClutterModifierType state;
guint keyval; guint keyval;
@ -976,7 +976,7 @@ clutter_text_key_press (ClutterActor *actor,
for (iter = priv->mappings; iter != NULL; iter = iter->next) for (iter = priv->mappings; iter != NULL; iter = iter->next)
{ {
ClutterTextMapping *mapping = iter->data; TextMapping *mapping = iter->data;
if ( if (
(mapping->keyval == keyval) && (mapping->keyval == keyval) &&
@ -3014,7 +3014,7 @@ clutter_text_add_mapping (ClutterText *ttext,
ClutterModifierType state, ClutterModifierType state,
const gchar *commandline) const gchar *commandline)
{ {
ClutterTextMapping *tmapping = g_new (ClutterTextMapping, 1); TextMapping *tmapping = g_new (TextMapping, 1);
ClutterTextPrivate *priv = ttext->priv; ClutterTextPrivate *priv = ttext->priv;
tmapping->keyval = keyval; tmapping->keyval = keyval;
tmapping->state = state; tmapping->state = state;