aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-junk-hook.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-05-27 22:29:19 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-05-27 22:29:19 +0800
commit948235c3d1076dbe6ed2e57a24c16a083bbd9f01 (patch)
tree4133b1adfd94d8f889ca7ad4ad851346518f4171 /mail/em-junk-hook.c
parentcc3a98fc1ad5bb87aa7335f3de404ee7feee1541 (diff)
downloadgsoc2013-evolution-948235c3d1076dbe6ed2e57a24c16a083bbd9f01.tar
gsoc2013-evolution-948235c3d1076dbe6ed2e57a24c16a083bbd9f01.tar.gz
gsoc2013-evolution-948235c3d1076dbe6ed2e57a24c16a083bbd9f01.tar.bz2
gsoc2013-evolution-948235c3d1076dbe6ed2e57a24c16a083bbd9f01.tar.lz
gsoc2013-evolution-948235c3d1076dbe6ed2e57a24c16a083bbd9f01.tar.xz
gsoc2013-evolution-948235c3d1076dbe6ed2e57a24c16a083bbd9f01.tar.zst
gsoc2013-evolution-948235c3d1076dbe6ed2e57a24c16a083bbd9f01.zip
Prefer GLib basic types over C types.
Diffstat (limited to 'mail/em-junk-hook.c')
-rw-r--r--mail/em-junk-hook.c20
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);
}