aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/plugin-manager
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 /plugins/plugin-manager
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 'plugins/plugin-manager')
-rw-r--r--plugins/plugin-manager/plugin-manager.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/plugins/plugin-manager/plugin-manager.c b/plugins/plugin-manager/plugin-manager.c
index 7a669668a7..838de0e2f3 100644
--- a/plugins/plugin-manager/plugin-manager.c
+++ b/plugins/plugin-manager/plugin-manager.c
@@ -53,7 +53,7 @@ enum
};
static struct {
- const char *label;
+ const gchar *label;
} label_info[LABEL_LAST] = {
{ N_("Name"), },
{ N_("Author(s)"), },
@@ -84,7 +84,7 @@ gboolean e_plugin_ui_init (GtkUIManager *ui_manager,
EShellWindow *shell_window);
static void
-eppm_set_label (GtkLabel *l, const char *v)
+eppm_set_label (GtkLabel *l, const gchar *v)
{
gtk_label_set_label(l, v?v:_("Unknown"));
}
@@ -101,7 +101,7 @@ static void
eppm_show_plugin (Manager *m, EPlugin *ep, GtkWidget *cfg_widget)
{
if (ep) {
- char *string;
+ gchar *string;
string = g_strdup_printf ("<span size=\"x-large\">%s</span>", ep->name);
gtk_label_set_markup (GTK_LABEL (m->items[LABEL_NAME]), string);
@@ -133,7 +133,7 @@ eppm_show_plugin (Manager *m, EPlugin *ep, GtkWidget *cfg_widget)
eppm_set_label (m->items[LABEL_DESCRIPTION], ep->description);
} else {
- int i;
+ gint i;
gtk_label_set_markup (GTK_LABEL (m->config_plugin_label), "");
for (i = 0; i < LABEL_LAST; i++)
@@ -184,7 +184,7 @@ eppm_selection_changed (GtkTreeSelection *selection, Manager *m)
}
static void
-eppm_enable_toggled (GtkCellRendererToggle *renderer, const char *path_string, Manager *m)
+eppm_enable_toggled (GtkCellRendererToggle *renderer, const gchar *path_string, Manager *m)
{
GtkTreePath *path;
GtkTreeIter iter;
@@ -207,7 +207,7 @@ eppm_enable_toggled (GtkCellRendererToggle *renderer, const char *path_string, M
}
static void
-eppm_free (void *data)
+eppm_free (gpointer data)
{
Manager *m = data;
GSList *l;
@@ -225,7 +225,7 @@ action_plugin_manager_cb (GtkAction *action,
EShellWindow *shell_window)
{
Manager *m;
- int i;
+ gint i;
GtkWidget *dialog;
GtkWidget *hbox, *w;
GtkWidget *overview_page;
@@ -234,7 +234,7 @@ action_plugin_manager_cb (GtkAction *action,
GtkTreeSelection *selection;
GtkCellRenderer *renderer;
GSList *l;
- char *string;
+ gchar *string;
GtkWidget *subvbox;
m = g_malloc0 (sizeof (*m));
@@ -384,7 +384,7 @@ action_plugin_manager_cb (GtkAction *action,
/* this is every other data */
for (i = 1; i < LABEL_LAST; i++) {
- char *markup;
+ gchar *markup;
subvbox = gtk_vbox_new (FALSE, 6);