aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/gal-view.h
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-07-03 03:43:03 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-07-06 04:40:49 +0800
commit57a3b819e1b849db7b2e76bcbad84bd551cdd55e (patch)
tree4084fff5f45bde552a798f49f4d234f5a0b7dd49 /e-util/gal-view.h
parent3f5f362e0df717f2aaca8d21c3b3e180904a6897 (diff)
downloadgsoc2013-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.h')
-rw-r--r--e-util/gal-view.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/e-util/gal-view.h b/e-util/gal-view.h
index 94f89b989e..d07d8cae79 100644
--- a/e-util/gal-view.h
+++ b/e-util/gal-view.h
@@ -58,12 +58,13 @@ struct _GalView {
struct _GalViewClass {
GObjectClass parent_class;
+ const gchar *type_code;
+
/* Methods */
void (*load) (GalView *view,
const gchar *filename);
void (*save) (GalView *view,
const gchar *filename);
- const gchar * (*get_type_code) (GalView *view);
GalView * (*clone) (GalView *view);
/* Signals */
@@ -78,7 +79,6 @@ void gal_view_save (GalView *view,
const gchar * gal_view_get_title (GalView *view);
void gal_view_set_title (GalView *view,
const gchar *title);
-const gchar * gal_view_get_type_code (GalView *view);
GalView * gal_view_clone (GalView *view);
void gal_view_changed (GalView *view);