diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-07-05 10:19:49 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-07-06 04:40:49 +0800 |
commit | 7193739a13cacee281c66aeed48d36da90ddafcc (patch) | |
tree | 691d688849b4c3ffffc4c14e89151aabde940abc /e-util | |
parent | af39ee96f037574e18295f429f064cb66e051c8f (diff) | |
download | gsoc2013-evolution-7193739a13cacee281c66aeed48d36da90ddafcc.tar gsoc2013-evolution-7193739a13cacee281c66aeed48d36da90ddafcc.tar.gz gsoc2013-evolution-7193739a13cacee281c66aeed48d36da90ddafcc.tar.bz2 gsoc2013-evolution-7193739a13cacee281c66aeed48d36da90ddafcc.tar.lz gsoc2013-evolution-7193739a13cacee281c66aeed48d36da90ddafcc.tar.xz gsoc2013-evolution-7193739a13cacee281c66aeed48d36da90ddafcc.tar.zst gsoc2013-evolution-7193739a13cacee281c66aeed48d36da90ddafcc.zip |
GalView: Remove edit() method.
No longer used.
Removed functions:
gal_view_edit()
Diffstat (limited to 'e-util')
-rw-r--r-- | e-util/gal-view-etable.c | 38 | ||||
-rw-r--r-- | e-util/gal-view.c | 20 | ||||
-rw-r--r-- | e-util/gal-view.h | 4 |
3 files changed, 0 insertions, 62 deletions
diff --git a/e-util/gal-view-etable.c b/e-util/gal-view-etable.c index 1dc8f5d357..0615fe07b5 100644 --- a/e-util/gal-view-etable.c +++ b/e-util/gal-view-etable.c @@ -26,8 +26,6 @@ #include "gal-view-etable.h" -#include "e-table-config.h" - G_DEFINE_TYPE (GalViewEtable, gal_view_etable, GAL_TYPE_VIEW) static void @@ -61,41 +59,6 @@ detach_tree (GalViewEtable *view) } static void -config_changed (ETableConfig *config, - GalViewEtable *view) -{ - ETableState *state; - if (view->state) - g_object_unref (view->state); - g_object_get ( - config, - "state", &state, - NULL); - view->state = e_table_state_duplicate (state); - g_object_unref (state); - - gal_view_changed (GAL_VIEW (view)); -} - -static void -gal_view_etable_edit (GalView *view, - GtkWindow *parent) -{ - GalViewEtable *etable_view = GAL_VIEW_ETABLE (view); - ETableConfig *config; - - config = e_table_config_new ( - etable_view->title, - etable_view->spec, - etable_view->state, - parent); - - g_signal_connect ( - config, "changed", - G_CALLBACK (config_changed), view); -} - -static void gal_view_etable_load (GalView *view, const gchar *filename) { @@ -172,7 +135,6 @@ gal_view_etable_class_init (GalViewEtableClass *class) GalViewClass *gal_view_class = GAL_VIEW_CLASS (class); GObjectClass *object_class = G_OBJECT_CLASS (class); - gal_view_class->edit = gal_view_etable_edit; gal_view_class->load = gal_view_etable_load; gal_view_class->save = gal_view_etable_save; gal_view_class->get_title = gal_view_etable_get_title; diff --git a/e-util/gal-view.c b/e-util/gal-view.c index 4302988a6e..f0e3e66436 100644 --- a/e-util/gal-view.c +++ b/e-util/gal-view.c @@ -129,26 +129,6 @@ gal_view_init (GalView *view) } /** - * gal_view_edit - * @view: The view to edit - * @parent: the parent window. - */ -void -gal_view_edit (GalView *view, - GtkWindow *parent) -{ - GalViewClass *class; - - g_return_if_fail (GAL_IS_VIEW (view)); - g_return_if_fail (GTK_IS_WINDOW (parent)); - - class = GAL_VIEW_GET_CLASS (view); - g_return_if_fail (class->edit != NULL); - - class->edit (view, parent); -} - -/** * gal_view_load * @view: The view to load to * @filename: The file to load from diff --git a/e-util/gal-view.h b/e-util/gal-view.h index d769895d03..1d271356e6 100644 --- a/e-util/gal-view.h +++ b/e-util/gal-view.h @@ -63,8 +63,6 @@ struct _GalViewClass { GObjectClass parent_class; /* Methods */ - void (*edit) (GalView *view, - GtkWindow *parent_window); void (*load) (GalView *view, const gchar *filename); void (*save) (GalView *view, @@ -80,8 +78,6 @@ struct _GalViewClass { }; GType gal_view_get_type (void); -void gal_view_edit (GalView *view, - GtkWindow *parent); void gal_view_load (GalView *view, const gchar *filename); void gal_view_save (GalView *view, |