aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-folder-properties.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 /mail/em-folder-properties.c
parent6f5464f34ceec9e5701e3e3e651a40f9e6b3a072 (diff)
downloadgsoc2013-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-folder-properties.c')
-rw-r--r--mail/em-folder-properties.c42
1 files changed, 21 insertions, 21 deletions
diff --git a/mail/em-folder-properties.c b/mail/em-folder-properties.c
index b0fbfc65d2..db8bff5315 100644
--- a/mail/em-folder-properties.c
+++ b/mail/em-folder-properties.c
@@ -46,20 +46,20 @@
#include "mail-config.h"
struct _prop_data {
- void *object;
+ gpointer object;
CamelArgV *argv;
GtkWidget **widgets;
GSList *properties;
- char *name;
- int total;
- int unread;
+ gchar *name;
+ gint total;
+ gint unread;
EMConfig *config;
CamelFolderQuotaInfo *quota;
};
static void
-emfp_dialog_response (GtkWidget *dialog, int response, struct _prop_data *prop_data)
+emfp_dialog_response (GtkWidget *dialog, gint response, struct _prop_data *prop_data)
{
if (response == GTK_RESPONSE_OK)
e_config_commit((EConfig *)prop_data->config);
@@ -70,11 +70,11 @@ emfp_dialog_response (GtkWidget *dialog, int response, struct _prop_data *prop_d
}
static void
-emfp_commit(EConfig *ec, GSList *items, void *data)
+emfp_commit(EConfig *ec, GSList *items, gpointer data)
{
struct _prop_data *prop_data = data;
CamelArgV *argv = prop_data->argv;
- int i;
+ gint i;
for (i = 0; i < argv->argc; i++) {
CamelArg *arg = &argv->argv[i];
@@ -85,7 +85,7 @@ emfp_commit(EConfig *ec, GSList *items, void *data)
break;
case CAMEL_ARG_STR:
g_free (arg->ca_str);
- arg->ca_str = (char *) gtk_entry_get_text ((GtkEntry *) prop_data->widgets[i]);
+ arg->ca_str = (gchar *) gtk_entry_get_text ((GtkEntry *) prop_data->widgets[i]);
break;
case CAMEL_ARG_INT:
arg->ca_int = gtk_spin_button_get_value_as_int ((GtkSpinButton *) prop_data->widgets[i]);
@@ -103,10 +103,10 @@ emfp_commit(EConfig *ec, GSList *items, void *data)
}
static void
-emfp_free(EConfig *ec, GSList *items, void *data)
+emfp_free(EConfig *ec, GSList *items, gpointer data)
{
struct _prop_data *prop_data = data;
- int i;
+ gint i;
g_slist_free(items);
@@ -127,9 +127,9 @@ emfp_free(EConfig *ec, GSList *items, void *data)
}
static int
-add_numbered_row (GtkTable *table, int row, const char *description, const char *format, int num)
+add_numbered_row (GtkTable *table, gint row, const gchar *description, const gchar *format, gint num)
{
- char *str;
+ gchar *str;
GtkWidget *label;
g_return_val_if_fail (table != NULL, row);
@@ -154,11 +154,11 @@ add_numbered_row (GtkTable *table, int row, const char *description, const char
}
static GtkWidget *
-emfp_get_folder_item(EConfig *ec, EConfigItem *item, struct _GtkWidget *parent, struct _GtkWidget *old, void *data)
+emfp_get_folder_item(EConfig *ec, EConfigItem *item, struct _GtkWidget *parent, struct _GtkWidget *old, gpointer data)
{
GtkWidget *w, *table, *label;
struct _prop_data *prop_data = data;
- int row = 0, i;
+ gint row = 0, i;
GSList *l;
if (old)
@@ -182,8 +182,8 @@ emfp_get_folder_item(EConfig *ec, EConfigItem *item, struct _GtkWidget *parent,
CamelFolderQuotaInfo *quota = prop_data->quota;
for (info = quota; info; info = info->next) {
- char *descr;
- int procs;
+ gchar *descr;
+ gint procs;
/* should not happen, but anyway... */
if (!info->total)
@@ -287,7 +287,7 @@ static EMConfigItem emfp_items[] = {
static gboolean emfp_items_translated = FALSE;
static void
-emfp_dialog_got_folder_quota (CamelFolder *folder, CamelFolderQuotaInfo *quota, void *data)
+emfp_dialog_got_folder_quota (CamelFolder *folder, CamelFolderQuotaInfo *quota, gpointer data)
{
GtkWidget *dialog, *w;
struct _prop_data *prop_data;
@@ -300,7 +300,7 @@ emfp_dialog_got_folder_quota (CamelFolder *folder, CamelFolderQuotaInfo *quota,
gboolean hide_deleted;
GConfClient *gconf;
CamelStore *store;
- char *uri = (char *)data;
+ gchar *uri = (gchar *)data;
if (folder == NULL) {
g_free (uri);
@@ -426,7 +426,7 @@ emfp_dialog_got_folder_quota (CamelFolder *folder, CamelFolderQuotaInfo *quota,
}
static void
-emfp_dialog_got_folder (char *uri, CamelFolder *folder, void *data)
+emfp_dialog_got_folder (gchar *uri, CamelFolder *folder, gpointer data)
{
/* this should be called in a thread too */
mail_get_folder_quota (folder, emfp_dialog_got_folder_quota, g_strdup (uri), mail_msg_unordered_push);
@@ -442,7 +442,7 @@ emfp_dialog_got_folder (char *uri, CamelFolder *folder, void *data)
* as NULL, then the folder @uri will be loaded first.
**/
void
-em_folder_properties_show(GtkWindow *parent, CamelFolder *folder, const char *uri)
+em_folder_properties_show(GtkWindow *parent, CamelFolder *folder, const gchar *uri)
{
/* HACK: its the old behaviour, not very 'neat' but it works */
if (!strncmp(uri, "vfolder:", 8)) {
@@ -464,5 +464,5 @@ em_folder_properties_show(GtkWindow *parent, CamelFolder *folder, const char *ur
if (folder == NULL)
mail_get_folder(uri, 0, emfp_dialog_got_folder, NULL, mail_msg_unordered_push);
else
- emfp_dialog_got_folder((char *)uri, folder, NULL);
+ emfp_dialog_got_folder((gchar *)uri, folder, NULL);
}