diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2009-05-27 23:13:25 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-05-29 00:13:23 +0800 |
commit | fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056 (patch) | |
tree | ae78be371695c3dc18847b87d3f014f985aa3a40 /calendar/gui/tasks-control.c | |
parent | 6f5464f34ceec9e5701e3e3e651a40f9e6b3a072 (diff) | |
download | gsoc2013-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 'calendar/gui/tasks-control.c')
-rw-r--r-- | calendar/gui/tasks-control.c | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/calendar/gui/tasks-control.c b/calendar/gui/tasks-control.c index 7ee468e768..5e57456bd3 100644 --- a/calendar/gui/tasks-control.c +++ b/calendar/gui/tasks-control.c @@ -85,17 +85,17 @@ static void tasks_control_print_preview_cmd (BonoboUIComponent *uic, const char *path); static void tasks_control_assign_cmd (BonoboUIComponent *uic, gpointer data, - const char *path); + const gchar *path); static void tasks_control_forward_cmd (BonoboUIComponent *uic, gpointer data, - const char *path); + const gchar *path); static void tasks_control_view_preview (BonoboUIComponent *uic, - const char *path, + const gchar *path, Bonobo_UIComponent_EventType type, - const char *state, - void *data); + const gchar *state, + gpointer data); struct focus_changed_data { BonoboControl *control; @@ -162,7 +162,7 @@ static void sensitize_items(BonoboUIComponent *uic, struct _tasks_sensitize_item *items, guint32 mask) { while (items->command) { - char command[32]; + gchar command[32]; if (strlen(items->command)>=21) { g_warning ("Size more than 21: %s\n", items->command); @@ -197,7 +197,7 @@ static struct _tasks_sensitize_item tasks_sensitize_table[] = { * selected tasks. */ void -tasks_control_sensitize_commands (BonoboControl *control, ETasks *tasks, int n_selected) +tasks_control_sensitize_commands (BonoboControl *control, ETasks *tasks, gint n_selected) { BonoboUIComponent *uic; gboolean read_only = TRUE; @@ -247,7 +247,7 @@ tasks_control_sensitize_commands (BonoboControl *control, ETasks *tasks, int n_s /* Callback used when the selection in the table changes */ static void -selection_changed_cb (ETasks *tasks, int n_selected, gpointer data) +selection_changed_cb (ETasks *tasks, gint n_selected, gpointer data) { BonoboControl *control; @@ -304,11 +304,11 @@ tasks_control_activate (BonoboControl *control, ETasks *tasks) { Bonobo_UIContainer remote_uih; BonoboUIComponent *uic; - int n_selected; + gint n_selected; ECalendarTable *cal_table; ETable *etable; gboolean state; - char *xmlfile; + gchar *xmlfile; uic = bonobo_control_get_ui_component (control); g_return_if_fail (uic != NULL); @@ -399,7 +399,7 @@ tasks_control_new_task_cmd (BonoboUIComponent *uic, static void tasks_control_cut_cmd (BonoboUIComponent *uic, gpointer data, - const char *path) + const gchar *path) { ETasks *tasks; ECalendarTable *cal_table; @@ -412,7 +412,7 @@ tasks_control_cut_cmd (BonoboUIComponent *uic, static void tasks_control_copy_cmd (BonoboUIComponent *uic, gpointer data, - const char *path) + const gchar *path) { ETasks *tasks; ECalendarTable *cal_table; @@ -434,7 +434,7 @@ tasks_control_copy_cmd (BonoboUIComponent *uic, static void tasks_control_paste_cmd (BonoboUIComponent *uic, gpointer data, - const char *path) + const gchar *path) { ETasks *tasks; ECalendarTable *cal_table; @@ -473,7 +473,7 @@ static gboolean confirm_purge (ETasks *tasks) { GtkWidget *dialog, *checkbox, *parent; - int button; + gint button; if (!calendar_config_get_confirm_purge ()) return TRUE; @@ -516,7 +516,7 @@ tasks_control_purge_cmd (BonoboUIComponent *uic, static void tasks_control_print_cmd (BonoboUIComponent *uic, gpointer data, - const char *path) + const gchar *path) { ETasks *tasks = E_TASKS (data); ETable *table; @@ -532,7 +532,7 @@ tasks_control_print_cmd (BonoboUIComponent *uic, static void tasks_control_print_preview_cmd (BonoboUIComponent *uic, gpointer data, - const char *path) + const gchar *path) { ETasks *tasks = E_TASKS (data); ETable *table; @@ -548,7 +548,7 @@ tasks_control_print_preview_cmd (BonoboUIComponent *uic, static void tasks_control_assign_cmd (BonoboUIComponent *uic, gpointer data, - const char *path) + const gchar *path) { ETasks *tasks; ECalendarTable *cal_table; @@ -564,7 +564,7 @@ tasks_control_assign_cmd (BonoboUIComponent *uic, static void tasks_control_forward_cmd (BonoboUIComponent *uic, gpointer data, - const char *path) + const gchar *path) { ETasks *tasks; ECalendarTable *cal_table; @@ -583,7 +583,7 @@ tasks_control_forward_cmd (BonoboUIComponent *uic, } static void -tasks_control_view_preview (BonoboUIComponent *uic, const char *path, Bonobo_UIComponent_EventType type, const char *state, void *data) +tasks_control_view_preview (BonoboUIComponent *uic, const gchar *path, Bonobo_UIComponent_EventType type, const gchar *state, gpointer data) { ETasks *tasks; |