[evolution] Bug #602165 - Meeting window doesn't show status, role fields
- From: Milan Crha <mcrha src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [evolution] Bug #602165 - Meeting window doesn't show status, role fields
- Date: Wed, 18 Nov 2009 14:21:56 +0000 (UTC)
commit 9727444b39f180f91bd756bb9a7ff1daf721dc41
Author: Milan Crha <mcrha redhat com>
Date: Wed Nov 18 15:21:07 2009 +0100
Bug #602165 - Meeting window doesn't show status, role fields
calendar/gui/dialogs/comp-editor.c | 15 +++++----------
calendar/gui/dialogs/event-page.c | 1 -
2 files changed, 5 insertions(+), 11 deletions(-)
---
diff --git a/calendar/gui/dialogs/comp-editor.c b/calendar/gui/dialogs/comp-editor.c
index 9de8839..8fdb7d9 100644
--- a/calendar/gui/dialogs/comp-editor.c
+++ b/calendar/gui/dialogs/comp-editor.c
@@ -1391,18 +1391,15 @@ comp_editor_finalize (GObject *object)
}
static void
-comp_editor_map (GtkWidget *widget)
+comp_editor_bind_gconf (CompEditor *editor)
{
- CompEditor *editor = COMP_EDITOR (widget);
GConfBridge *bridge;
GtkAction *action;
const gchar *key;
- bridge = gconf_bridge_get ();
+ g_return_if_fail (editor != NULL);
- /* Give subclasses a chance to construct their pages before
- * we fiddle with their widgets. That's why we don't do this
- * until after object construction. */
+ bridge = gconf_bridge_get ();
key = "/apps/evolution/calendar/display/show_categories";
action = comp_editor_get_action (editor, "view-categories");
@@ -1427,9 +1424,6 @@ comp_editor_map (GtkWidget *widget)
key = "/apps/evolution/calendar/display/show_type";
action = comp_editor_get_action (editor, "view-type");
gconf_bridge_bind_property (bridge, key, G_OBJECT (action), "active");
-
- /* Chain up to parent's map() method. */
- GTK_WIDGET_CLASS (comp_editor_parent_class)->map (widget);
}
static gboolean
@@ -1525,7 +1519,6 @@ comp_editor_class_init (CompEditorClass *class)
object_class->finalize = comp_editor_finalize;
widget_class = GTK_WIDGET_CLASS (class);
- widget_class->map = comp_editor_map;
widget_class->delete_event = comp_editor_delete_event;
widget_class->key_press_event = comp_editor_key_press_event;
widget_class->drag_motion = comp_editor_drag_motion;
@@ -1817,6 +1810,8 @@ comp_editor_init (CompEditor *editor)
store, "row-inserted",
G_CALLBACK (attachment_store_changed_cb), editor);
+ comp_editor_bind_gconf (editor);
+
/* FIXME Shell should be passed in. */
shell = e_shell_get_default ();
e_shell_watch_window (shell, GTK_WINDOW (editor));
diff --git a/calendar/gui/dialogs/event-page.c b/calendar/gui/dialogs/event-page.c
index 4af9bec..f47ce3a 100644
--- a/calendar/gui/dialogs/event-page.c
+++ b/calendar/gui/dialogs/event-page.c
@@ -47,7 +47,6 @@
#include "e-util/e-categories-config.h"
#include "e-util/e-dialog-utils.h"
#include "e-util/e-dialog-widgets.h"
-#include "e-util/e-dialog-widgets.h"
#include "e-util/e-util-private.h"
#include "../e-meeting-attendee.h"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]