diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-07-03 03:43:03 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-07-06 04:40:49 +0800 |
commit | 57a3b819e1b849db7b2e76bcbad84bd551cdd55e (patch) | |
tree | 4084fff5f45bde552a798f49f4d234f5a0b7dd49 /e-util/gal-view.c | |
parent | 3f5f362e0df717f2aaca8d21c3b3e180904a6897 (diff) | |
download | gsoc2013-evolution-57a3b819e1b849db7b2e76bcbad84bd551cdd55e.tar gsoc2013-evolution-57a3b819e1b849db7b2e76bcbad84bd551cdd55e.tar.gz gsoc2013-evolution-57a3b819e1b849db7b2e76bcbad84bd551cdd55e.tar.bz2 gsoc2013-evolution-57a3b819e1b849db7b2e76bcbad84bd551cdd55e.tar.lz gsoc2013-evolution-57a3b819e1b849db7b2e76bcbad84bd551cdd55e.tar.xz gsoc2013-evolution-57a3b819e1b849db7b2e76bcbad84bd551cdd55e.tar.zst gsoc2013-evolution-57a3b819e1b849db7b2e76bcbad84bd551cdd55e.zip |
GalViewClass: Replace get_type_code() with "type_code" string.
All GalView subclasses return a static string in their get_type_code()
methods, so replace the method with a static string pointer directly in
the class structure, and remove the "type-code" GalView property.
Diffstat (limited to 'e-util/gal-view.c')
-rw-r--r-- | e-util/gal-view.c | 39 |
1 files changed, 1 insertions, 38 deletions
diff --git a/e-util/gal-view.c b/e-util/gal-view.c index 7b3743af72..5e13f4cdc2 100644 --- a/e-util/gal-view.c +++ b/e-util/gal-view.c @@ -28,8 +28,7 @@ struct _GalViewPrivate { enum { PROP_0, - PROP_TITLE, - PROP_TYPE_CODE + PROP_TITLE }; enum { @@ -70,12 +69,6 @@ view_get_property (GObject *object, value, gal_view_get_title ( GAL_VIEW (object))); return; - - case PROP_TYPE_CODE: - g_value_set_string ( - value, gal_view_get_type_code ( - GAL_VIEW (object))); - return; } G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); @@ -145,17 +138,6 @@ gal_view_class_init (GalViewClass *class) G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); - g_object_class_install_property ( - object_class, - PROP_TYPE_CODE, - g_param_spec_string ( - "type-code", - NULL, - NULL, - NULL, - G_PARAM_READABLE | - G_PARAM_STATIC_STRINGS)); - signals[CHANGED] = g_signal_new ( "changed", G_OBJECT_CLASS_TYPE (object_class), @@ -247,25 +229,6 @@ gal_view_set_title (GalView *view, } /** - * gal_view_get_type_code - * @view: The view to get. - * - * Returns: The type of the view. - */ -const gchar * -gal_view_get_type_code (GalView *view) -{ - GalViewClass *class; - - g_return_val_if_fail (GAL_IS_VIEW (view), NULL); - - class = GAL_VIEW_GET_CLASS (view); - g_return_val_if_fail (class->get_type_code != NULL, NULL); - - return class->get_type_code (view); -} - -/** * gal_view_clone * @view: The view to clone. * |