aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-07-05 11:47:28 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-07-06 04:40:49 +0800
commitc361af739614d5a4bdc90741128bb25c0907e015 (patch)
treefafe5058cafa939808ae9138f4dbb4bc38e0277c
parent7193739a13cacee281c66aeed48d36da90ddafcc (diff)
downloadgsoc2013-evolution-c361af739614d5a4bdc90741128bb25c0907e015.tar
gsoc2013-evolution-c361af739614d5a4bdc90741128bb25c0907e015.tar.gz
gsoc2013-evolution-c361af739614d5a4bdc90741128bb25c0907e015.tar.bz2
gsoc2013-evolution-c361af739614d5a4bdc90741128bb25c0907e015.tar.lz
gsoc2013-evolution-c361af739614d5a4bdc90741128bb25c0907e015.tar.xz
gsoc2013-evolution-c361af739614d5a4bdc90741128bb25c0907e015.tar.zst
gsoc2013-evolution-c361af739614d5a4bdc90741128bb25c0907e015.zip
GalViewFactory: Remove get_title() method.
No longer used. Removed functions: gal_view_factory_get_title()
-rw-r--r--addressbook/gui/widgets/gal-view-factory-minicard.c7
-rw-r--r--calendar/gui/calendar-view-factory.c31
-rw-r--r--doc/reference/evolution-util/evolution-util-sections.txt1
-rw-r--r--e-util/gal-view-factory-etable.c7
-rw-r--r--e-util/gal-view-factory.c19
-rw-r--r--e-util/gal-view-factory.h2
6 files changed, 0 insertions, 67 deletions
diff --git a/addressbook/gui/widgets/gal-view-factory-minicard.c b/addressbook/gui/widgets/gal-view-factory-minicard.c
index a4700db480..5efd6995ed 100644
--- a/addressbook/gui/widgets/gal-view-factory-minicard.c
+++ b/addressbook/gui/widgets/gal-view-factory-minicard.c
@@ -33,12 +33,6 @@ G_DEFINE_TYPE (
gal_view_factory_minicard, GAL_TYPE_VIEW_FACTORY)
static const gchar *
-gal_view_factory_minicard_get_title (GalViewFactory *factory)
-{
- return _("Card View");
-}
-
-static const gchar *
gal_view_factory_minicard_get_type_code (GalViewFactory *factory)
{
return "minicard";
@@ -57,7 +51,6 @@ gal_view_factory_minicard_class_init (GalViewFactoryMinicardClass *minicard_clas
GalViewFactoryClass *view_factory_class;
view_factory_class = GAL_VIEW_FACTORY_CLASS (minicard_class);
- view_factory_class->get_title = gal_view_factory_minicard_get_title;
view_factory_class->get_type_code = gal_view_factory_minicard_get_type_code;
view_factory_class->new_view = gal_view_factory_minicard_new_view;
}
diff --git a/calendar/gui/calendar-view-factory.c b/calendar/gui/calendar-view-factory.c
index 0d1908e79b..d84f770141 100644
--- a/calendar/gui/calendar-view-factory.c
+++ b/calendar/gui/calendar-view-factory.c
@@ -40,8 +40,6 @@ struct _CalendarViewFactoryPrivate {
};
static const gchar *
- calendar_view_factory_get_title (GalViewFactory *factory);
-static const gchar *
calendar_view_factory_get_type_code
(GalViewFactory *factory);
static GalView *
@@ -61,7 +59,6 @@ calendar_view_factory_class_init (CalendarViewFactoryClass *class)
g_type_class_add_private (class, sizeof (CalendarViewFactoryPrivate));
gal_view_factory_class = GAL_VIEW_FACTORY_CLASS (class);
- gal_view_factory_class->get_title = calendar_view_factory_get_title;
gal_view_factory_class->get_type_code = calendar_view_factory_get_type_code;
gal_view_factory_class->new_view = calendar_view_factory_new_view;
}
@@ -73,34 +70,6 @@ calendar_view_factory_init (CalendarViewFactory *cal_view_factory)
CALENDAR_VIEW_FACTORY_GET_PRIVATE (cal_view_factory);
}
-/* get_title method for the calendar view factory */
-static const gchar *
-calendar_view_factory_get_title (GalViewFactory *factory)
-{
- CalendarViewFactory *cal_view_factory;
- CalendarViewFactoryPrivate *priv;
-
- cal_view_factory = CALENDAR_VIEW_FACTORY (factory);
- priv = cal_view_factory->priv;
-
- switch (priv->view_type) {
- case GNOME_CAL_DAY_VIEW:
- return _("Day View");
-
- case GNOME_CAL_WORK_WEEK_VIEW:
- return _("Work Week View");
-
- case GNOME_CAL_WEEK_VIEW:
- return _("Week View");
-
- case GNOME_CAL_MONTH_VIEW:
- return _("Month View");
-
- default:
- g_return_val_if_reached (NULL);
- }
-}
-
/* get_type_code method for the calendar view factory */
static const gchar *
calendar_view_factory_get_type_code (GalViewFactory *factory)
diff --git a/doc/reference/evolution-util/evolution-util-sections.txt b/doc/reference/evolution-util/evolution-util-sections.txt
index e7698960a8..7c7534d218 100644
--- a/doc/reference/evolution-util/evolution-util-sections.txt
+++ b/doc/reference/evolution-util/evolution-util-sections.txt
@@ -4645,7 +4645,6 @@ gal_view_etable_get_type
<FILE>gal-view-factory</FILE>
<TITLE>GalViewFactory</TITLE>
GalViewFactory
-gal_view_factory_get_title
gal_view_factory_get_type_code
gal_view_factory_new_view
<SUBSECTION Standard>
diff --git a/e-util/gal-view-factory-etable.c b/e-util/gal-view-factory-etable.c
index cfa7bc2fb5..06082881cb 100644
--- a/e-util/gal-view-factory-etable.c
+++ b/e-util/gal-view-factory-etable.c
@@ -109,12 +109,6 @@ view_factory_etable_dispose (GObject *object)
}
static const gchar *
-view_factory_etable_get_title (GalViewFactory *factory)
-{
- return _("Table");
-}
-
-static const gchar *
view_factory_etable_get_type_code (GalViewFactory *factory)
{
return "etable";
@@ -145,7 +139,6 @@ gal_view_factory_etable_class_init (GalViewFactoryEtableClass *class)
object_class->dispose = view_factory_etable_dispose;
view_factory_class = GAL_VIEW_FACTORY_CLASS (class);
- view_factory_class->get_title = view_factory_etable_get_title;
view_factory_class->get_type_code = view_factory_etable_get_type_code;
view_factory_class->new_view = view_factory_etable_new_view;
diff --git a/e-util/gal-view-factory.c b/e-util/gal-view-factory.c
index 0e0dde05cb..c6de38a110 100644
--- a/e-util/gal-view-factory.c
+++ b/e-util/gal-view-factory.c
@@ -41,25 +41,6 @@ gal_view_factory_init (GalViewFactory *factory)
}
/**
- * gal_view_factory_get_title:
- * @factory: a #GalViewFactory
- *
- * Returns: The title of the factory.
- */
-const gchar *
-gal_view_factory_get_title (GalViewFactory *factory)
-{
- GalViewFactoryClass *class;
-
- g_return_val_if_fail (GAL_IS_VIEW_FACTORY (factory), NULL);
-
- class = GAL_VIEW_FACTORY_GET_CLASS (factory);
- g_return_val_if_fail (class->get_title != NULL, NULL);
-
- return class->get_title (factory);
-}
-
-/**
* gal_view_factory_get_type_code:
* @factory: a #GalViewFactory
*
diff --git a/e-util/gal-view-factory.h b/e-util/gal-view-factory.h
index abdcacd6ac..2a67dbe263 100644
--- a/e-util/gal-view-factory.h
+++ b/e-util/gal-view-factory.h
@@ -62,14 +62,12 @@ struct _GalViewFactoryClass {
GObjectClass parent_class;
/* Methods */
- const gchar * (*get_title) (GalViewFactory *factory);
const gchar * (*get_type_code) (GalViewFactory *factory);
GalView * (*new_view) (GalViewFactory *factory,
const gchar *name);
};
GType gal_view_factory_get_type (void);
-const gchar * gal_view_factory_get_title (GalViewFactory *factory);
/* Returns the code for use in identifying this type of object in the
* view list. This identifier should identify this as being the