diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2009-05-27 23:13:25 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-05-29 00:13:23 +0800 |
commit | fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056 (patch) | |
tree | ae78be371695c3dc18847b87d3f014f985aa3a40 /mail/em-junk-hook.c | |
parent | 6f5464f34ceec9e5701e3e3e651a40f9e6b3a072 (diff) | |
download | gsoc2013-evolution-fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056.tar.gz gsoc2013-evolution-fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056.tar.zst gsoc2013-evolution-fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056.zip |
Prefer GLib basic types over C types.
Diffstat (limited to 'mail/em-junk-hook.c')
-rw-r--r-- | mail/em-junk-hook.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/mail/em-junk-hook.c b/mail/em-junk-hook.c index f95685e351..42c15f754e 100644 --- a/mail/em-junk-hook.c +++ b/mail/em-junk-hook.c @@ -37,7 +37,7 @@ static GHashTable *emjh_types; static GObjectClass *parent_class = NULL; -static void *emjh_parent_class; +static gpointer emjh_parent_class; static GObjectClass *emj_parent; #define emjh ((EMJunkHook *)eph) @@ -63,7 +63,7 @@ static const EPluginHookTargetKey emjh_flag_map[] = { */ -static void manage_error (const char *msg, GError *error); +static void manage_error (const gchar *msg, GError *error); GQuark em_junk_error_quark (void) @@ -71,7 +71,7 @@ em_junk_error_quark (void) return g_quark_from_static_string ("em-junk-error-quark"); } -static const char * +static const gchar * em_junk_get_name (CamelJunkPlugin *csp); static void @@ -82,7 +82,7 @@ em_junk_init(CamelJunkPlugin *csp) ((EPluginClass *)G_OBJECT_GET_CLASS(item->hook->hook.plugin))->enable(item->hook->hook.plugin, 1); } -static const char * +static const gchar * em_junk_get_name (CamelJunkPlugin *csp) { struct _EMJunkHookItem *item = (EMJunkHookItem *)csp; @@ -248,7 +248,7 @@ emjh_construct_group(EPluginHook *eph, xmlNodePtr root) /* We'll processs only the first item from xml file*/ while (node) { - if (0 == strcmp((char *)node->name, "item")) { + if (0 == strcmp((gchar *)node->name, "item")) { struct _EMJunkHookItem *item; item = emjh_construct_item(eph, group, node); @@ -284,7 +284,7 @@ emjh_construct(EPluginHook *eph, EPlugin *ep, xmlNodePtr root) node = root->children; while (node) { - if (strcmp((char *)node->name, "group") == 0) { + if (strcmp((gchar *)node->name, "group") == 0) { struct _EMJunkHookGroup *group; group = emjh_construct_group(eph, node); @@ -302,7 +302,7 @@ emjh_construct(EPluginHook *eph, EPlugin *ep, xmlNodePtr root) struct manage_error_idle_data { - const char *msg; + const gchar *msg; GError *error; }; @@ -334,7 +334,7 @@ manage_error_idle (gpointer data) } static void -manage_error (const char *msg, GError *error) +manage_error (const gchar *msg, GError *error) { struct manage_error_idle_data *mei; @@ -350,7 +350,7 @@ manage_error (const char *msg, GError *error) /*XXX: don't think we need here*/ static void -emjh_enable(EPluginHook *eph, int state) +emjh_enable(EPluginHook *eph, gint state) { GSList *g; @@ -436,5 +436,5 @@ em_junk_hook_register_type(GType type) d(printf("registering junk plugin type '%s'\n", g_type_name(type))); klass = g_type_class_ref(type); - g_hash_table_insert(emjh_types, (void *)g_type_name(type), klass); + g_hash_table_insert(emjh_types, (gpointer)g_type_name(type), klass); } |