aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-itip-control.c
diff options
context:
space:
mode:
authorJP Rosevear <jpr@src.gnome.org>2003-03-05 03:52:37 +0800
committerJP Rosevear <jpr@src.gnome.org>2003-03-05 03:52:37 +0800
commit6b4c3984d52cfbf88ae84ee0102f4aa0c17a2a62 (patch)
treebba07b5f28966c10a90de8f550af895014b0b9bb /calendar/gui/e-itip-control.c
parentcd4477930e72b1be069d5c97b90d96e989645bfc (diff)
downloadgsoc2013-evolution-6b4c3984d52cfbf88ae84ee0102f4aa0c17a2a62.tar
gsoc2013-evolution-6b4c3984d52cfbf88ae84ee0102f4aa0c17a2a62.tar.gz
gsoc2013-evolution-6b4c3984d52cfbf88ae84ee0102f4aa0c17a2a62.tar.bz2
gsoc2013-evolution-6b4c3984d52cfbf88ae84ee0102f4aa0c17a2a62.tar.lz
gsoc2013-evolution-6b4c3984d52cfbf88ae84ee0102f4aa0c17a2a62.tar.xz
gsoc2013-evolution-6b4c3984d52cfbf88ae84ee0102f4aa0c17a2a62.tar.zst
gsoc2013-evolution-6b4c3984d52cfbf88ae84ee0102f4aa0c17a2a62.zip
If only the pipe wouldn't break.
svn path=/trunk/; revision=20143
Diffstat (limited to 'calendar/gui/e-itip-control.c')
-rw-r--r--calendar/gui/e-itip-control.c33
1 files changed, 29 insertions, 4 deletions
diff --git a/calendar/gui/e-itip-control.c b/calendar/gui/e-itip-control.c
index 945824797c..e5f3b83c67 100644
--- a/calendar/gui/e-itip-control.c
+++ b/calendar/gui/e-itip-control.c
@@ -82,6 +82,7 @@ struct _EItipControlPrivate {
gchar *delegator_address;
gchar *delegator_name;
gchar *my_address;
+ gboolean view_only;
};
/* HTML Strings */
@@ -302,6 +303,7 @@ init (EItipControl *itip)
priv->delegator_address = NULL;
priv->delegator_name = NULL;
priv->my_address = NULL;
+ priv->view_only = FALSE;
/* Html Widget */
priv->html = gtk_html_new ();
@@ -1040,10 +1042,12 @@ write_html (EItipControl *itip, const gchar *itip_desc, const gchar *itip_title,
gtk_html_write (GTK_HTML (priv->html), html_stream, HTML_SEP, strlen (HTML_SEP));
/* Options */
- if (options != NULL) {
- const_html = "</td></tr><tr><td valign=\"center\">";
- gtk_html_write (GTK_HTML (priv->html), html_stream, const_html, strlen (const_html));
- gtk_html_write (GTK_HTML (priv->html), html_stream, options, strlen (options));
+ if (!e_itip_control_get_view_only (itip)) {
+ if (options != NULL) {
+ const_html = "</td></tr><tr><td valign=\"center\">";
+ gtk_html_write (GTK_HTML (priv->html), html_stream, const_html, strlen (const_html));
+ gtk_html_write (GTK_HTML (priv->html), html_stream, options, strlen (options));
+ }
}
const_html = "</td></tr></table>";
@@ -1647,6 +1651,27 @@ e_itip_control_get_from_address (EItipControl *itip)
}
void
+e_itip_control_set_view_only (EItipControl *itip, gboolean view_only)
+{
+ EItipControlPrivate *priv;
+
+ priv = itip->priv;
+
+ priv->view_only = view_only;
+}
+
+gboolean
+e_itip_control_get_view_only (EItipControl *itip)
+{
+ EItipControlPrivate *priv;
+
+ priv = itip->priv;
+
+ return priv->view_only;
+}
+
+
+void
e_itip_control_set_delegator_address (EItipControl *itip, const gchar *address)
{
EItipControlPrivate *priv;