aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-itip-control.c
diff options
context:
space:
mode:
authorDamon Chaplin <damon@ximian.com>2001-12-01 07:23:47 +0800
committerDamon Chaplin <damon@src.gnome.org>2001-12-01 07:23:47 +0800
commitad9d11c750290405cad22ba46b0f26ed3bb73155 (patch)
tree530aa8736391f3fcb6f68641c0e5ead703b0ad1f /calendar/gui/e-itip-control.c
parentaa0a82422beb72bc47b51c8d1e8cc8e95bf8250a (diff)
downloadgsoc2013-evolution-ad9d11c750290405cad22ba46b0f26ed3bb73155.tar.gz
gsoc2013-evolution-ad9d11c750290405cad22ba46b0f26ed3bb73155.tar.zst
gsoc2013-evolution-ad9d11c750290405cad22ba46b0f26ed3bb73155.zip
only show the dialog if we created it. Hopefully fixes bug #15774. Also
2001-11-30 Damon Chaplin <damon@ximian.com> * gui/e-itip-control.c (remove_item): only show the dialog if we created it. Hopefully fixes bug #15774. Also ifdef'ed out a lot of code that isn't currently used, including code to use a label which is never created. The unused code was there to support handling multiple iTIP objects in a message, but was never updated when we switched to use HTML for the control. Fixes bug #16232. svn path=/trunk/; revision=14832
Diffstat (limited to 'calendar/gui/e-itip-control.c')
-rw-r--r--calendar/gui/e-itip-control.c21
1 files changed, 18 insertions, 3 deletions
diff --git a/calendar/gui/e-itip-control.c b/calendar/gui/e-itip-control.c
index 56276fe668..d34f609094 100644
--- a/calendar/gui/e-itip-control.c
+++ b/calendar/gui/e-itip-control.c
@@ -53,9 +53,11 @@
struct _EItipControlPrivate {
GtkWidget *html;
+#if 0
GtkWidget *count;
GtkWidget *next;
GtkWidget *prev;
+#endif
CalClient *event_client;
CalClient *task_client;
@@ -118,8 +120,10 @@ static void class_init (EItipControlClass *klass);
static void init (EItipControl *itip);
static void destroy (GtkObject *obj);
+#if 0
static void prev_clicked_cb (GtkWidget *widget, gpointer data);
static void next_clicked_cb (GtkWidget *widget, gpointer data);
+#endif
static void url_requested_cb (GtkHTML *html, const gchar *url, GtkHTMLStream *handle, gpointer data);
static void ok_clicked_cb (GtkHTML *html, const gchar *method, const gchar *url, const gchar *encoding, gpointer data);
@@ -221,7 +225,7 @@ static void
init (EItipControl *itip)
{
EItipControlPrivate *priv;
- GtkWidget *hbox, *scrolled_window;
+ GtkWidget *scrolled_window;
priv = g_new0 (EItipControlPrivate, 1);
@@ -231,6 +235,7 @@ init (EItipControl *itip)
priv->addresses = itip_addresses_get ();
/* Header */
+#if 0
priv->prev = gnome_stock_button (GNOME_STOCK_BUTTON_PREV);
gtk_widget_show (priv->prev);
priv->next = gnome_stock_button (GNOME_STOCK_BUTTON_NEXT);
@@ -246,6 +251,7 @@ init (EItipControl *itip)
GTK_SIGNAL_FUNC (prev_clicked_cb), itip);
gtk_signal_connect (GTK_OBJECT (priv->next), "clicked",
GTK_SIGNAL_FUNC (next_clicked_cb), itip);
+#endif
/* Get the cal clients */
priv->event_client = start_calendar_server (
@@ -416,6 +422,7 @@ find_attendee_partstat (icalcomponent *ical_comp, const char *address)
return ICAL_PARTSTAT_NONE;
}
+#if 0
static void
set_label (EItipControl *itip)
{
@@ -446,6 +453,7 @@ set_button_status (EItipControl *itip)
else
gtk_widget_set_sensitive (priv->prev, TRUE);
}
+#endif
static void
write_label_piece (EItipControl *itip, CalComponentDateTime *dt,
@@ -1006,6 +1014,7 @@ get_next (icalcompiter *iter)
return ret;
}
+#if 0
static icalcomponent *
get_prev (icalcompiter *iter)
{
@@ -1022,6 +1031,7 @@ get_prev (icalcompiter *iter)
return ret;
}
+#endif
static void
show_current (EItipControl *itip)
@@ -1033,8 +1043,10 @@ show_current (EItipControl *itip)
priv = itip->priv;
+#if 0
set_label (itip);
set_button_status (itip);
+#endif
if (priv->comp)
gtk_object_unref (GTK_OBJECT (priv->comp));
@@ -1312,9 +1324,10 @@ remove_item (EItipControl *itip)
client = priv->event_client;
cal_component_get_uid (priv->comp, &uid);
- if (cal_client_remove_object (client, uid))
+ if (cal_client_remove_object (client, uid)) {
dialog = gnome_ok_dialog (_("Removal Complete"));
- gnome_dialog_run_and_close (GNOME_DIALOG (dialog));
+ gnome_dialog_run_and_close (GNOME_DIALOG (dialog));
+ }
}
static void
@@ -1404,6 +1417,7 @@ send_freebusy (EItipControl *itip)
gnome_dialog_run_and_close (GNOME_DIALOG (dialog));
}
+#if 0
static void
prev_clicked_cb (GtkWidget *widget, gpointer data)
{
@@ -1431,6 +1445,7 @@ next_clicked_cb (GtkWidget *widget, gpointer data)
show_current (itip);
}
+#endif
static void
url_requested_cb (GtkHTML *html, const gchar *url, GtkHTMLStream *handle, gpointer data)