aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/calendar-view.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 /calendar/gui/calendar-view.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 'calendar/gui/calendar-view.c')
-rw-r--r--calendar/gui/calendar-view.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/calendar/gui/calendar-view.c b/calendar/gui/calendar-view.c
index 5415affdf2..b316771ca1 100644
--- a/calendar/gui/calendar-view.c
+++ b/calendar/gui/calendar-view.c
@@ -36,18 +36,18 @@ struct _CalendarViewPrivate {
GnomeCalendarViewType view_type;
/* Title of the view */
- char *title;
+ gchar *title;
};
static void calendar_view_finalize (GObject *object);
-static void calendar_view_load (GalView *view, const char *filename);
-static void calendar_view_save (GalView *view, const char *filename);
-static const char *calendar_view_get_title (GalView *view);
-static void calendar_view_set_title (GalView *view, const char *title);
-static const char *calendar_view_get_type_code (GalView *view);
+static void calendar_view_load (GalView *view, const gchar *filename);
+static void calendar_view_save (GalView *view, const gchar *filename);
+static const gchar *calendar_view_get_title (GalView *view);
+static void calendar_view_set_title (GalView *view, const gchar *title);
+static const gchar *calendar_view_get_type_code (GalView *view);
static GalView *calendar_view_clone (GalView *view);
G_DEFINE_TYPE (CalendarView, calendar_view, GAL_VIEW_TYPE)
@@ -114,20 +114,20 @@ calendar_view_finalize (GObject *object)
/* load method of the calendar view */
static void
-calendar_view_load (GalView *view, const char *filename)
+calendar_view_load (GalView *view, const gchar *filename)
{
/* nothing */
}
/* save method of the calendar view */
static void
-calendar_view_save (GalView *view, const char *filename)
+calendar_view_save (GalView *view, const gchar *filename)
{
/* nothing */
}
/* get_title method of the calendar view */
-static const char *
+static const gchar *
calendar_view_get_title (GalView *view)
{
CalendarView *cal_view;
@@ -136,12 +136,12 @@ calendar_view_get_title (GalView *view)
cal_view = CALENDAR_VIEW (view);
priv = cal_view->priv;
- return (const char *) priv->title;
+ return (const gchar *) priv->title;
}
/* set_title method of the calendar view */
static void
-calendar_view_set_title (GalView *view, const char *title)
+calendar_view_set_title (GalView *view, const gchar *title)
{
CalendarView *cal_view;
CalendarViewPrivate *priv;
@@ -156,7 +156,7 @@ calendar_view_set_title (GalView *view, const char *title)
}
/* get_type_code method for the calendar view */
-static const char *
+static const gchar *
calendar_view_get_type_code (GalView *view)
{
CalendarView *cal_view;
@@ -219,7 +219,7 @@ calendar_view_clone (GalView *view)
CalendarView *
calendar_view_construct (CalendarView *cal_view,
GnomeCalendarViewType view_type,
- const char *title)
+ const gchar *title)
{
CalendarViewPrivate *priv;
@@ -245,7 +245,7 @@ calendar_view_construct (CalendarView *cal_view,
* Return value: A newly-created calendar view.
**/
CalendarView *
-calendar_view_new (GnomeCalendarViewType view_type, const char *title)
+calendar_view_new (GnomeCalendarViewType view_type, const gchar *title)
{
CalendarView *cal_view;