aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui
diff options
context:
space:
mode:
authorChris Toshok <toshok@ximian.com>2001-04-10 10:40:48 +0800
committerChris Toshok <toshok@src.gnome.org>2001-04-10 10:40:48 +0800
commitbdb627f2439cdff4c1acd0ed05bcd16d3b45c139 (patch)
tree6244c913c951831c29a83e3d33623c930e749102 /addressbook/gui
parentfc3440ee9c435bc2fa30fb695caa853d71c17557 (diff)
downloadgsoc2013-evolution-bdb627f2439cdff4c1acd0ed05bcd16d3b45c139.tar
gsoc2013-evolution-bdb627f2439cdff4c1acd0ed05bcd16d3b45c139.tar.gz
gsoc2013-evolution-bdb627f2439cdff4c1acd0ed05bcd16d3b45c139.tar.bz2
gsoc2013-evolution-bdb627f2439cdff4c1acd0ed05bcd16d3b45c139.tar.lz
gsoc2013-evolution-bdb627f2439cdff4c1acd0ed05bcd16d3b45c139.tar.xz
gsoc2013-evolution-bdb627f2439cdff4c1acd0ed05bcd16d3b45c139.tar.zst
gsoc2013-evolution-bdb627f2439cdff4c1acd0ed05bcd16d3b45c139.zip
stubbed, #if 0'ed (xfer_folder): same. (populate_context_menu): same.
2001-04-09 Chris Toshok <toshok@ximian.com> * gui/component/addressbook-component.c (remove_folder): stubbed, #if 0'ed (xfer_folder): same. (populate_context_menu): same. (get_dnd_selection): same. (factory_fn): add the accepted drag types ("text/x-vard") to folder_types. svn path=/trunk/; revision=9210
Diffstat (limited to 'addressbook/gui')
-rw-r--r--addressbook/gui/component/addressbook-component.c60
1 files changed, 58 insertions, 2 deletions
diff --git a/addressbook/gui/component/addressbook-component.c b/addressbook/gui/component/addressbook-component.c
index 363f39fcdf..69815d9e83 100644
--- a/addressbook/gui/component/addressbook-component.c
+++ b/addressbook/gui/component/addressbook-component.c
@@ -48,8 +48,13 @@ addressbook_component_get_shell_client (void)
static BonoboGenericFactory *factory = NULL;
+static const char *accepted_dnd_types[] = {
+ "text/x-vcard",
+ NULL
+};
+
static const EvolutionShellComponentFolderType folder_types[] = {
- { "contacts", "evolution-contacts.png" },
+ { "contacts", "evolution-contacts.png", accepted_dnd_types },
{ NULL, NULL }
};
@@ -96,6 +101,52 @@ create_folder (EvolutionShellComponent *shell_component,
CORBA_exception_free(&ev);
}
+#if 0
+static void
+remove_folder (EvolutionShellComponent *shell_component,
+ const char *physical_uri,
+ const GNOME_Evolution_ShellComponentListener listener,
+ void *closure)
+{
+ printf ("should remove %s\n", physical_uri);
+}
+
+static void
+xfer_folder (EvolutionShellComponent *shell_component,
+ const char *source_physical_uri,
+ const char *destination_physical_uri,
+ gboolean remove_source,
+ const GNOME_Evolution_ShellComponentListener listener,
+ void *closure)
+{
+ printf ("should transfer %s to %s, %s source\n", source_physical_uri,
+ destination_physical_uri, remove_source ? "removing" : "not removing");
+}
+
+static void
+populate_context_menu (EvolutionShellComponent *shell_component,
+ BonoboUIComponent *uic,
+ const char *physical_uri,
+ const char *type,
+ void *closure)
+{
+ printf ("should populate context menu for %s (%s)\n", physical_uri, type);
+}
+
+static char*
+get_dnd_selection (EvolutionShellComponent *shell_component,
+ const char *physical_uri,
+ int type,
+ int *format_return,
+ const char **selection_return,
+ int *selection_length_return,
+ void *closure)
+{
+ printf ("should get dnd selection for %s\n", physical_uri);
+ return NULL;
+}
+#endif
+
static int owner_count = 0;
static void
@@ -132,7 +183,12 @@ factory_fn (BonoboGenericFactory *factory,
EvolutionShellComponent *shell_component;
shell_component = evolution_shell_component_new (folder_types, create_view, create_folder,
- NULL, NULL, NULL, NULL, NULL);
+ NULL, NULL, NULL, NULL,
+#if 0
+ remove_folder, xfer_folder,
+ populate_context_menu, get_dnd_selection,
+#endif
+ NULL);
gtk_signal_connect (GTK_OBJECT (shell_component), "owner_set",
GTK_SIGNAL_FUNC (owner_set_cb), NULL);