17348
|
1 |
--- evolution-2.27.3/calendar/gui/dialogs/comp-editor.c.orig 2009-06-15 12:57:13.000000000 +0800
|
|
2 |
+++ evolution-2.27.3/calendar/gui/dialogs/comp-editor.c 2009-06-18 16:33:25.455462231 +0800
|
|
3 |
@@ -2229,6 +2229,29 @@ comp_editor_set_client (CompEditor *edit
|
|
4 |
if (editor->priv->source_client == NULL && client != NULL)
|
|
5 |
editor->priv->source_client = g_object_ref (client);
|
|
6 |
|
|
7 |
+ /*
|
|
8 |
+ * WCAP backend do not support attachment.
|
|
9 |
+ * So disable attachment support in this case.
|
|
10 |
+ */
|
|
11 |
+ const gchar *uri = e_cal_get_uri (client);
|
|
12 |
+ if (uri) {
|
|
13 |
+ if (g_str_has_prefix (uri, "wcap://")) {
|
|
14 |
+ GtkWidget *widget;
|
|
15 |
+
|
|
16 |
+ widget = e_attachment_paned_get_controls_container (
|
|
17 |
+ editor->priv->attachment_view);
|
|
18 |
+ gtk_widget_hide (widget);
|
|
19 |
+ widget = gtk_ui_manager_get_widget (
|
|
20 |
+ editor->priv->ui_manager,
|
|
21 |
+ "/ui/main-menu/insert-menu");
|
|
22 |
+ gtk_widget_hide (widget);
|
|
23 |
+ widget = gtk_ui_manager_get_widget (
|
|
24 |
+ editor->priv->ui_manager,
|
|
25 |
+ "/ui/main-toolbar/attach");
|
|
26 |
+ gtk_widget_hide (widget);
|
|
27 |
+ }
|
|
28 |
+ }
|
|
29 |
+
|
|
30 |
g_object_notify (G_OBJECT (editor), "client");
|
|
31 |
}
|
|
32 |
|