aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-component-registry.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-05-27 23:13:25 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-05-29 00:13:23 +0800
commitfad4af8a3d4c6f50f7bcceca8d545eb17d6fd056 (patch)
treeae78be371695c3dc18847b87d3f014f985aa3a40 /shell/e-component-registry.c
parent6f5464f34ceec9e5701e3e3e651a40f9e6b3a072 (diff)
downloadgsoc2013-evolution-fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056.tar
gsoc2013-evolution-fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056.tar.gz
gsoc2013-evolution-fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056.tar.bz2
gsoc2013-evolution-fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056.tar.lz
gsoc2013-evolution-fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056.tar.xz
gsoc2013-evolution-fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056.tar.zst
gsoc2013-evolution-fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056.zip
Prefer GLib basic types over C types.
Diffstat (limited to 'shell/e-component-registry.c')
-rw-r--r--shell/e-component-registry.c52
1 files changed, 26 insertions, 26 deletions
diff --git a/shell/e-component-registry.c b/shell/e-component-registry.c
index 18092979d2..877c410289 100644
--- a/shell/e-component-registry.c
+++ b/shell/e-component-registry.c
@@ -45,15 +45,15 @@ G_DEFINE_TYPE (EComponentRegistry, e_component_registry, G_TYPE_OBJECT)
/* EComponentInfo handling. */
static EComponentInfo *
-component_info_new (const char *id,
+component_info_new (const gchar *id,
GNOME_Evolution_Component iface,
- const char *alias,
- const char *button_label,
- const char *button_tooltips,
- const char *menu_label,
- const char *menu_accelerator,
- const char *icon_name,
- int sort_order)
+ const gchar *alias,
+ const gchar *button_label,
+ const gchar *button_tooltips,
+ const gchar *menu_label,
+ const gchar *menu_accelerator,
+ const gchar *icon_name,
+ gint sort_order)
{
EComponentInfo *info = g_new0 (EComponentInfo, 1);
@@ -108,7 +108,7 @@ set_schemas (EComponentInfo *component_info,
{
Bonobo_ActivationProperty *property = bonobo_server_info_prop_find (server_info, "evolution:uri_schemas");
Bonobo_StringList *list;
- int i;
+ gint i;
if (property == NULL)
return;
@@ -133,8 +133,8 @@ query_components (EComponentRegistry *registry)
const gchar * const *language_names;
CORBA_Environment ev;
GSList *languages = NULL;
- char *query;
- int i;
+ gchar *query;
+ gint i;
if (registry->priv->init)
return;
@@ -147,7 +147,7 @@ query_components (EComponentRegistry *registry)
g_free (query);
if (BONOBO_EX (&ev)) {
- char *ex_text = bonobo_exception_get_text (&ev);
+ gchar *ex_text = bonobo_exception_get_text (&ev);
g_warning ("Cannot query for components: %s\n", ex_text);
g_free (ex_text);
CORBA_exception_free (&ev);
@@ -159,22 +159,22 @@ query_components (EComponentRegistry *registry)
languages = g_slist_append (languages, (gpointer)(*language_names++));
for (i = 0; i < info_list->_length; i++) {
- const char *id;
- const char *label;
- const char *menu_label;
- const char *menu_accelerator;
- const char *alias;
- const char *icon_name;
- const char *sort_order_string;
- const char *tooltips;
+ const gchar *id;
+ const gchar *label;
+ const gchar *menu_label;
+ const gchar *menu_accelerator;
+ const gchar *alias;
+ const gchar *icon_name;
+ const gchar *sort_order_string;
+ const gchar *tooltips;
EComponentInfo *info;
- int sort_order;
+ gint sort_order;
GNOME_Evolution_Component iface;
id = info_list->_buffer[i].iid;
- iface = bonobo_activation_activate_from_id ((char *)id, 0, NULL, &ev);
+ iface = bonobo_activation_activate_from_id ((gchar *)id, 0, NULL, &ev);
if (BONOBO_EX (&ev) || iface == CORBA_OBJECT_NIL) {
- char *ex_text = bonobo_exception_get_text (&ev);
+ gchar *ex_text = bonobo_exception_get_text (&ev);
g_warning("Cannot activate '%s': %s\n", id, ex_text);
g_free(ex_text);
@@ -276,7 +276,7 @@ e_component_registry_peek_list (EComponentRegistry *registry)
EComponentInfo *
e_component_registry_peek_info (EComponentRegistry *registry,
enum _EComponentRegistryField field,
- const char *key)
+ const gchar *key)
{
GSList *p, *q;
@@ -298,7 +298,7 @@ e_component_registry_peek_info (EComponentRegistry *registry,
break;
case ECR_FIELD_SCHEMA:
for (q = info->uri_schemas; q != NULL; q = q->next)
- if (strcmp((char *)q->data, key) == 0)
+ if (strcmp((gchar *)q->data, key) == 0)
return info;
break;
}
@@ -309,7 +309,7 @@ e_component_registry_peek_info (EComponentRegistry *registry,
GNOME_Evolution_Component
e_component_registry_activate (EComponentRegistry *registry,
- const char *id,
+ const gchar *id,
CORBA_Environment *ev)
{
EComponentInfo *info;