diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-07-03 00:09:28 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-07-06 04:40:49 +0800 |
commit | 6db972ab0fd2f223aea07c6a413d39a01c41152b (patch) | |
tree | a2901db1062e6c72c82aeacec802faeed40206ae /e-util/gal-view.c | |
parent | c361af739614d5a4bdc90741128bb25c0907e015 (diff) | |
download | gsoc2013-evolution-6db972ab0fd2f223aea07c6a413d39a01c41152b.tar gsoc2013-evolution-6db972ab0fd2f223aea07c6a413d39a01c41152b.tar.gz gsoc2013-evolution-6db972ab0fd2f223aea07c6a413d39a01c41152b.tar.bz2 gsoc2013-evolution-6db972ab0fd2f223aea07c6a413d39a01c41152b.tar.lz gsoc2013-evolution-6db972ab0fd2f223aea07c6a413d39a01c41152b.tar.xz gsoc2013-evolution-6db972ab0fd2f223aea07c6a413d39a01c41152b.tar.zst gsoc2013-evolution-6db972ab0fd2f223aea07c6a413d39a01c41152b.zip |
GalView-related cleanups.
Diffstat (limited to 'e-util/gal-view.c')
-rw-r--r-- | e-util/gal-view.c | 47 |
1 files changed, 30 insertions, 17 deletions
diff --git a/e-util/gal-view.c b/e-util/gal-view.c index f0e3e66436..9bf2e16320 100644 --- a/e-util/gal-view.c +++ b/e-util/gal-view.c @@ -1,4 +1,5 @@ /* + * gal-view.c * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -13,22 +14,10 @@ * You should have received a copy of the GNU Lesser General Public * License along with the program; if not, see <http://www.gnu.org/licenses/> * - * - * Authors: - * Chris Lahey <clahey@ximian.com> - * - * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com) - * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include "gal-view.h" -#define d(x) - enum { PROP_0, PROP_TITLE, @@ -85,23 +74,46 @@ view_get_property (GObject *object, } static void +view_load (GalView *view, + const gchar *filename) +{ +} + +static void +view_save (GalView *view, + const gchar *filename) +{ +} + +static GalView * +view_clone (GalView *view) +{ + return g_object_new (G_OBJECT_TYPE (view), NULL); +} + +static void gal_view_class_init (GalViewClass *class) { - GObjectClass *object_class = G_OBJECT_CLASS (class); + GObjectClass *object_class; object_class = G_OBJECT_CLASS (class); object_class->set_property = view_set_property; object_class->get_property = view_get_property; + class->load = view_load; + class->save = view_save; + class->clone = view_clone; + g_object_class_install_property ( object_class, PROP_TITLE, g_param_spec_string ( "title", + "Title", + "View Title", NULL, - NULL, - NULL, - G_PARAM_READWRITE)); + G_PARAM_READWRITE | + G_PARAM_STATIC_STRINGS)); g_object_class_install_property ( object_class, @@ -111,7 +123,8 @@ gal_view_class_init (GalViewClass *class) NULL, NULL, NULL, - G_PARAM_READABLE)); + G_PARAM_READABLE | + G_PARAM_STATIC_STRINGS)); signals[CHANGED] = g_signal_new ( "changed", |