[evolution] GalView: Remove edit() method.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] GalView: Remove edit() method.
- Date: Fri, 5 Jul 2013 20:40:58 +0000 (UTC)
commit 7193739a13cacee281c66aeed48d36da90ddafcc
Author: Matthew Barnes <mbarnes redhat com>
Date: Thu Jul 4 22:19:49 2013 -0400
GalView: Remove edit() method.
No longer used.
Removed functions:
gal_view_edit()
addressbook/gui/widgets/gal-view-minicard.c | 1 -
calendar/gui/calendar-view.c | 1 -
.../evolution-util/evolution-util-sections.txt | 1 -
e-util/gal-view-etable.c | 38 --------------------
e-util/gal-view.c | 20 ----------
e-util/gal-view.h | 4 --
6 files changed, 0 insertions(+), 65 deletions(-)
---
diff --git a/addressbook/gui/widgets/gal-view-minicard.c b/addressbook/gui/widgets/gal-view-minicard.c
index dffe806..fcc99b3 100644
--- a/addressbook/gui/widgets/gal-view-minicard.c
+++ b/addressbook/gui/widgets/gal-view-minicard.c
@@ -162,7 +162,6 @@ gal_view_minicard_class_init (GalViewMinicardClass *class)
object_class->dispose = view_minicard_finalize;
gal_view_class = GAL_VIEW_CLASS (class);
- gal_view_class->edit = NULL;
gal_view_class->load = view_minicard_load;
gal_view_class->save = view_minicard_save;
gal_view_class->get_title = view_minicard_get_title;
diff --git a/calendar/gui/calendar-view.c b/calendar/gui/calendar-view.c
index 344f4c3..8ef24ef 100644
--- a/calendar/gui/calendar-view.c
+++ b/calendar/gui/calendar-view.c
@@ -63,7 +63,6 @@ calendar_view_class_init (CalendarViewClass *class)
gal_view_class = (GalViewClass *) class;
object_class = (GObjectClass *) class;
- gal_view_class->edit = NULL;
gal_view_class->load = calendar_view_load;
gal_view_class->save = calendar_view_save;
gal_view_class->get_title = calendar_view_get_title;
diff --git a/doc/reference/evolution-util/evolution-util-sections.txt
b/doc/reference/evolution-util/evolution-util-sections.txt
index d3f789f..e769896 100644
--- a/doc/reference/evolution-util/evolution-util-sections.txt
+++ b/doc/reference/evolution-util/evolution-util-sections.txt
@@ -4565,7 +4565,6 @@ e_xml_get_translated_string_prop_by_name
<FILE>gal-view</FILE>
<TITLE>GalView</TITLE>
GalView
-gal_view_edit
gal_view_load
gal_view_save
gal_view_get_title
diff --git a/e-util/gal-view-etable.c b/e-util/gal-view-etable.c
index 1dc8f5d..0615fe0 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 4302988..f0e3e66 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 d769895..1d27135 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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]