aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/itip-formatter/itip-view.c
diff options
context:
space:
mode:
authorChenthill Palanisamy <pchen@src.gnome.org>2005-06-21 01:27:52 +0800
committerChenthill Palanisamy <pchen@src.gnome.org>2005-06-21 01:27:52 +0800
commit989ab1d5c8b4ceb9a9689baadab1a55b067f7d05 (patch)
tree228c681c868917f522d4b02b0d0635ae15f9168f /plugins/itip-formatter/itip-view.c
parent29cefd995861e28b8f77005374efbc2f787ac655 (diff)
downloadgsoc2013-evolution-989ab1d5c8b4ceb9a9689baadab1a55b067f7d05.tar
gsoc2013-evolution-989ab1d5c8b4ceb9a9689baadab1a55b067f7d05.tar.gz
gsoc2013-evolution-989ab1d5c8b4ceb9a9689baadab1a55b067f7d05.tar.bz2
gsoc2013-evolution-989ab1d5c8b4ceb9a9689baadab1a55b067f7d05.tar.lz
gsoc2013-evolution-989ab1d5c8b4ceb9a9689baadab1a55b067f7d05.tar.xz
gsoc2013-evolution-989ab1d5c8b4ceb9a9689baadab1a55b067f7d05.tar.zst
gsoc2013-evolution-989ab1d5c8b4ceb9a9689baadab1a55b067f7d05.zip
Added support for delegation in personal calendar
svn path=/trunk/; revision=29553
Diffstat (limited to 'plugins/itip-formatter/itip-view.c')
-rw-r--r--plugins/itip-formatter/itip-view.c68
1 files changed, 67 insertions, 1 deletions
diff --git a/plugins/itip-formatter/itip-view.c b/plugins/itip-formatter/itip-view.c
index 08256f1f3e..acfcf9527f 100644
--- a/plugins/itip-formatter/itip-view.c
+++ b/plugins/itip-formatter/itip-view.c
@@ -112,6 +112,10 @@ struct _ItipViewPrivate {
GtkWidget *rsvp_comment_entry;
gboolean rsvp_show;
+ GtkWidget *update_box;
+ GtkWidget *update_check;
+ gboolean update_show;
+
GtkWidget *button_box;
gboolean buttons_sensitive;
};
@@ -339,7 +343,7 @@ set_calendar_sender_text (ItipView *view)
case ITIP_VIEW_MODE_REQUEST:
/* FIXME is the delegator stuff handled correctly here? */
if (priv->delegator) {
- sender = g_strdup_printf (_("<b>%s</b> requests the presence of %s at the following meeting:"), organizer, priv->delegator);
+ sender = g_strdup_printf (_("<b>%s</b> has delegated the following meeting to you:"), priv->delegator);
} else {
if (priv->sentby)
sender = g_strdup_printf (_("<b>%s</b> through %s requests your presence at the following meeting:"), organizer, priv->sentby);
@@ -949,6 +953,14 @@ itip_view_init (ItipView *view)
gtk_widget_show (priv->rsvp_comment_entry);
gtk_box_pack_start (GTK_BOX (hbox), priv->rsvp_comment_entry, FALSE, TRUE, 0);
+ /* RSVP area */
+ priv->update_box = gtk_vbox_new (FALSE, 12);
+ gtk_box_pack_start (GTK_BOX (vbox), priv->update_box, FALSE, FALSE, 0);
+
+ priv->update_check = gtk_check_button_new_with_mnemonic (_("Send u_pdates to attendees"));
+ gtk_widget_show (priv->update_check);
+ gtk_box_pack_start (GTK_BOX (priv->update_box), priv->update_check, FALSE, FALSE, 0);
+
/* The buttons for actions */
priv->button_box = gtk_hbutton_box_new ();
gtk_button_box_set_layout (GTK_BUTTON_BOX (priv->button_box), GTK_BUTTONBOX_END);
@@ -1728,6 +1740,60 @@ itip_view_get_show_rsvp (ItipView *view)
}
void
+itip_view_set_update (ItipView *view, gboolean update)
+{
+ ItipViewPrivate *priv;
+
+ g_return_if_fail (view != NULL);
+ g_return_if_fail (ITIP_IS_VIEW (view));
+
+ priv = view->priv;
+
+ gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (priv->update_check), update);
+}
+
+gboolean
+itip_view_get_update (ItipView *view)
+{
+ ItipViewPrivate *priv;
+
+ g_return_val_if_fail (view != NULL, FALSE);
+ g_return_val_if_fail (ITIP_IS_VIEW (view), FALSE);
+
+ priv = view->priv;
+
+ return gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (priv->update_check));
+}
+
+void
+itip_view_set_show_update (ItipView *view, gboolean update)
+{
+ ItipViewPrivate *priv;
+
+ g_return_if_fail (view != NULL);
+ g_return_if_fail (ITIP_IS_VIEW (view));
+
+ priv = view->priv;
+
+ priv->update_show = update;
+
+ priv->update_show ? gtk_widget_show (priv->update_box) : gtk_widget_hide (priv->update_box);
+}
+
+gboolean
+itip_view_get_show_update (ItipView *view)
+{
+ ItipViewPrivate *priv;
+
+ g_return_val_if_fail (view != NULL, FALSE);
+ g_return_val_if_fail (ITIP_IS_VIEW (view), FALSE);
+
+ priv = view->priv;
+
+ return priv->update_show;
+}
+
+void
itip_view_set_rsvp_comment (ItipView *view, const char *comment)
{
ItipViewPrivate *priv;