aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/calendar-http
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/calendar-http
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 'plugins/calendar-http')
-rw-r--r--plugins/calendar-http/calendar-http.c38
1 files changed, 19 insertions, 19 deletions
diff --git a/plugins/calendar-http/calendar-http.c b/plugins/calendar-http/calendar-http.c
index 7814ef5ea0..e6d4aee6a2 100644
--- a/plugins/calendar-http/calendar-http.c
+++ b/plugins/calendar-http/calendar-http.c
@@ -72,7 +72,7 @@ static void
url_changed (GtkEntry *entry, ESource *source)
{
EUri *uri;
- char *relative_uri;
+ gchar *relative_uri;
uri = e_uri_new (gtk_entry_get_text (GTK_ENTRY (entry)));
@@ -96,10 +96,10 @@ e_calendar_http_url (EPlugin *epl, EConfigHookItemFactoryData *data)
{
static GtkWidget *label;
GtkWidget *entry, *parent;
- int row;
+ gint row;
ECalConfigTargetSource *t = (ECalConfigTargetSource *) data->target;
EUri *uri;
- char *uri_text;
+ gchar *uri_text;
static GtkWidget *hidden = NULL;
if (!hidden)
@@ -142,9 +142,9 @@ e_calendar_http_url (EPlugin *epl, EConfigHookItemFactoryData *data)
static void
set_refresh_time (ESource *source, GtkWidget *spin, GtkWidget *combobox)
{
- int time;
- int item_num = 0;
- const char *refresh_str = e_source_get_property (source, "refresh");
+ gint time;
+ gint item_num = 0;
+ const gchar *refresh_str = e_source_get_property (source, "refresh");
time = refresh_str ? atoi (refresh_str) : 30;
if (time && !(time % 10080)) {
@@ -164,10 +164,10 @@ set_refresh_time (ESource *source, GtkWidget *spin, GtkWidget *combobox)
gtk_spin_button_set_value (GTK_SPIN_BUTTON (spin), time);
}
-static char *
+static gchar *
get_refresh_minutes (GtkWidget *spin, GtkWidget *combobox)
{
- int setting = gtk_spin_button_get_value_as_int (GTK_SPIN_BUTTON (spin));
+ gint setting = gtk_spin_button_get_value_as_int (GTK_SPIN_BUTTON (spin));
switch (gtk_combo_box_get_active (GTK_COMBO_BOX (combobox))) {
case 0:
/* minutes */
@@ -195,7 +195,7 @@ get_refresh_minutes (GtkWidget *spin, GtkWidget *combobox)
static void
spin_changed (GtkSpinButton *spin, ECalConfigTargetSource *t)
{
- char *refresh_str;
+ gchar *refresh_str;
GtkWidget *combobox;
combobox = g_object_get_data (G_OBJECT (spin), "combobox");
@@ -208,7 +208,7 @@ spin_changed (GtkSpinButton *spin, ECalConfigTargetSource *t)
static void
combobox_changed (GtkComboBox *combobox, ECalConfigTargetSource *t)
{
- char *refresh_str;
+ gchar *refresh_str;
GtkWidget *spin;
spin = g_object_get_data (G_OBJECT (combobox), "spin");
@@ -232,11 +232,11 @@ e_calendar_http_refresh (EPlugin *epl, EConfigHookItemFactoryData *data)
{
static GtkWidget *label;
GtkWidget *combobox, *spin, *hbox, *parent;
- int row;
+ gint row;
ECalConfigTargetSource *t = (ECalConfigTargetSource *) data->target;
ESource *source = t->source;
EUri *uri;
- char* uri_text;
+ gchar * uri_text;
static GtkWidget *hidden = NULL;
if (!hidden)
@@ -297,10 +297,10 @@ e_calendar_http_secure (EPlugin *epl, EConfigHookItemFactoryData *data)
{
ECalConfigTargetSource *t = (ECalConfigTargetSource *) data->target;
GtkWidget *secure_setting, *parent;
- const char *secure_prop;
- int row;
+ const gchar *secure_prop;
+ gint row;
EUri *uri;
- char* uri_text;
+ gchar * uri_text;
static GtkWidget *hidden = NULL;
if (!hidden)
@@ -358,11 +358,11 @@ e_calendar_http_auth (EPlugin *epl, EConfigHookItemFactoryData *data)
{
static GtkWidget *label;
GtkWidget *entry, *parent;
- int row;
+ gint row;
ECalConfigTargetSource *t = (ECalConfigTargetSource *) data->target;
EUri *uri;
- char *uri_text;
- const char *username;
+ gchar *uri_text;
+ const gchar *username;
static GtkWidget *hidden = NULL;
if (!hidden)
@@ -412,7 +412,7 @@ e_calendar_http_check (EPlugin *epl, EConfigHookPageCheckData *data)
EUri *uri;
gboolean ok = FALSE;
ESourceGroup *group = e_source_peek_group (t->source);
- char *uri_text;
+ gchar *uri_text;
if (strncmp (e_source_group_peek_base_uri (group), "webcal", 6))
return TRUE;