aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/dialogs/event-editor.c
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@src.gnome.org>2006-01-28 03:39:45 +0800
committerSrinivasa Ragavan <sragavan@src.gnome.org>2006-01-28 03:39:45 +0800
commita9ee877c3368d9db97498d23e9cd15337d06e974 (patch)
tree5bc3e76b65eefcbab95c3eac5d5b3e4c916f6f2b /calendar/gui/dialogs/event-editor.c
parent824714d55eda1314ca5e7933084b21a58244e87f (diff)
downloadgsoc2013-evolution-a9ee877c3368d9db97498d23e9cd15337d06e974.tar
gsoc2013-evolution-a9ee877c3368d9db97498d23e9cd15337d06e974.tar.gz
gsoc2013-evolution-a9ee877c3368d9db97498d23e9cd15337d06e974.tar.bz2
gsoc2013-evolution-a9ee877c3368d9db97498d23e9cd15337d06e974.tar.lz
gsoc2013-evolution-a9ee877c3368d9db97498d23e9cd15337d06e974.tar.xz
gsoc2013-evolution-a9ee877c3368d9db97498d23e9cd15337d06e974.tar.zst
gsoc2013-evolution-a9ee877c3368d9db97498d23e9cd15337d06e974.zip
Committing Rajeev's patch.
svn path=/trunk/; revision=31332
Diffstat (limited to 'calendar/gui/dialogs/event-editor.c')
-rw-r--r--calendar/gui/dialogs/event-editor.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/calendar/gui/dialogs/event-editor.c b/calendar/gui/dialogs/event-editor.c
index 5d574ef801..0d160d5c3a 100644
--- a/calendar/gui/dialogs/event-editor.c
+++ b/calendar/gui/dialogs/event-editor.c
@@ -240,35 +240,39 @@ menu_show_categories_cb (BonoboUIComponent *component,
}
static void
-menu_class_public_cb (BonoboUIComponent *ui_component,
+menu_class_public_cb (BonoboUIComponent *ui_component,
const char *path,
Bonobo_UIComponent_EventType type,
const char *state,
gpointer user_data)
{
EventEditor *ee = (EventEditor *) user_data;
-
if (state[0] == '0')
return;
+
+ comp_editor_page_notify_changed (COMP_EDITOR_PAGE (ee->priv->event_page));
+
event_page_set_classification (ee->priv->event_page, E_CAL_COMPONENT_CLASS_PUBLIC);
}
static void
-menu_class_private_cb (BonoboUIComponent *ui_component,
+menu_class_private_cb (BonoboUIComponent *ui_component,
const char *path,
Bonobo_UIComponent_EventType type,
const char *state,
- gpointer user_data)
+ gpointer user_data)
{
EventEditor *ee = (EventEditor *) user_data;
if (state[0] == '0')
return;
+ comp_editor_page_notify_changed (COMP_EDITOR_PAGE (ee->priv->event_page));
+
event_page_set_classification (ee->priv->event_page, E_CAL_COMPONENT_CLASS_PRIVATE);
}
static void
-menu_class_confidential_cb (BonoboUIComponent *ui_component,
+menu_class_confidential_cb (BonoboUIComponent *ui_component,
const char *path,
Bonobo_UIComponent_EventType type,
const char *state,
@@ -277,7 +281,9 @@ menu_class_confidential_cb (BonoboUIComponent *ui_component,
EventEditor *ee = (EventEditor *) user_data;
if (state[0] == '0')
return;
-
+
+ comp_editor_page_notify_changed (COMP_EDITOR_PAGE (ee->priv->event_page));
+
event_page_set_classification (ee->priv->event_page, E_CAL_COMPONENT_CLASS_CONFIDENTIAL);
}