aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/google-account-setup/google-contacts-source.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 /plugins/google-account-setup/google-contacts-source.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 'plugins/google-account-setup/google-contacts-source.c')
-rw-r--r--plugins/google-account-setup/google-contacts-source.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/plugins/google-account-setup/google-contacts-source.c b/plugins/google-account-setup/google-contacts-source.c
index 23314a44cc..2253d8a7a0 100644
--- a/plugins/google-account-setup/google-contacts-source.c
+++ b/plugins/google-account-setup/google-contacts-source.c
@@ -83,8 +83,8 @@ static void
on_username_entry_changed (GtkEntry *entry, gpointer user_data)
{
ESource *source = user_data;
- const char *text;
- char *username;
+ const gchar *text;
+ gchar *username;
text = gtk_entry_get_text (entry);
@@ -120,9 +120,9 @@ typedef enum {
} IntervalType;
static void
-seconds_to_interval (guint seconds, IntervalType *type, int *time)
+seconds_to_interval (guint seconds, IntervalType *type, gint *time)
{
- int minutes = seconds / 60;
+ gint minutes = seconds / 60;
*type = MINUTES;
*time = minutes;
@@ -139,7 +139,7 @@ seconds_to_interval (guint seconds, IntervalType *type, int *time)
}
static guint
-interval_to_seconds (IntervalType type, int time)
+interval_to_seconds (IntervalType type, gint time)
{
switch (type) {
case MINUTES:
@@ -163,7 +163,7 @@ on_interval_sb_value_changed (GtkSpinButton *sb, gpointer user_data)
ESource *source = user_data;
gdouble time;
guint seconds;
- char *value_string;
+ gchar *value_string;
GtkWidget *interval_combo;
IntervalType type;
@@ -185,7 +185,7 @@ on_interval_combo_changed (GtkComboBox *combo, gpointer user_data)
ESource *source = user_data;
gdouble time;
guint seconds;
- char *value_string;
+ gchar *value_string;
GtkWidget *sb;
IntervalType type;
@@ -223,11 +223,11 @@ plugin_google_contacts (EPlugin *epl,
EABConfigTargetSource *t = (EABConfigTargetSource *) data->target;
ESource *source;
ESourceGroup *group;
- const char *base_uri;
- const char *username;
- const char *refresh_interval_str;
+ const gchar *base_uri;
+ const gchar *username;
+ const gchar *refresh_interval_str;
guint refresh_interval;
- const char *use_ssl_str;
+ const gchar *use_ssl_str;
gboolean use_ssl;
GtkWidget *parent;
GtkWidget *vbox;
@@ -243,7 +243,7 @@ plugin_google_contacts (EPlugin *epl,
GtkWidget *interval_sb;
GtkWidget *interval_combo;
IntervalType type;
- int time;
+ gint time;
GtkWidget *ssl_cb;
struct ui_data *ui;