aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--addressbook/ChangeLog10
-rw-r--r--addressbook/gui/component/addressbook-component.c60
2 files changed, 68 insertions, 2 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index 7d37f1ed39..39afc758c0 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,5 +1,15 @@
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.
+
+2001-04-09 Chris Toshok <toshok@ximian.com>
+
* gui/widgets/e-minicard.c (e_minicard_event): on BUTTON_PRESS: if
it's button 1, store the button x, y, and set drag_button_down to
TRUE. on BUTTON_RELEASE: always set drag_button_down to FALSE.
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);