aboutsummaryrefslogtreecommitdiffstats
path: root/shell/evolution-shell-component.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2001-03-19 20:25:35 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2001-03-19 20:25:35 +0800
commit32543a84d58c6e882783b3acb02c7d55d88718b8 (patch)
tree830074460d0ed90d5468272d91335bf0ed6b9c0c /shell/evolution-shell-component.c
parent5a469caab6a79486e7865339b1a23689f9c600a2 (diff)
downloadgsoc2013-evolution-32543a84d58c6e882783b3acb02c7d55d88718b8.tar
gsoc2013-evolution-32543a84d58c6e882783b3acb02c7d55d88718b8.tar.gz
gsoc2013-evolution-32543a84d58c6e882783b3acb02c7d55d88718b8.tar.bz2
gsoc2013-evolution-32543a84d58c6e882783b3acb02c7d55d88718b8.tar.lz
gsoc2013-evolution-32543a84d58c6e882783b3acb02c7d55d88718b8.tar.xz
gsoc2013-evolution-32543a84d58c6e882783b3acb02c7d55d88718b8.tar.zst
gsoc2013-evolution-32543a84d58c6e882783b3acb02c7d55d88718b8.zip
Initial step for refactoring of the DnD API for ShellComponents.
svn path=/trunk/; revision=8820
Diffstat (limited to 'shell/evolution-shell-component.c')
-rw-r--r--shell/evolution-shell-component.c48
1 files changed, 0 insertions, 48 deletions
diff --git a/shell/evolution-shell-component.c b/shell/evolution-shell-component.c
index f076daf431..70b7423ece 100644
--- a/shell/evolution-shell-component.c
+++ b/shell/evolution-shell-component.c
@@ -367,53 +367,6 @@ impl_ShellComponent_populate_folder_context_menu (PortableServer_Servant servant
bonobo_object_unref (BONOBO_OBJECT (uic));
}
-static void
-impl_ShellComponent_getDndSelection (PortableServer_Servant servant,
- const CORBA_char *physical_uri,
- const CORBA_short type,
- CORBA_short *format_return,
- GNOME_Evolution_ShellComponent_Selection **selection_return,
- CORBA_Environment *ev)
-{
- BonoboObject *bonobo_object;
- EvolutionShellComponent *shell_component;
- EvolutionShellComponentPrivate *priv;
- const char *selection;
- int selection_length;
- int format;
-
- bonobo_object = bonobo_object_from_servant (servant);
- shell_component = EVOLUTION_SHELL_COMPONENT (bonobo_object);
- priv = shell_component->priv;
-
- if (priv->get_dnd_selection_fn == NULL) {
- CORBA_exception_set (ev, CORBA_USER_EXCEPTION,
- ex_GNOME_Evolution_ShellComponent_NoSelection, NULL);
- return;
- }
-
- (* priv->get_dnd_selection_fn) (shell_component, physical_uri, type,
- &format, &selection, &selection_length,
- priv->closure);
-
- if (selection == NULL) {
- CORBA_exception_set (ev, CORBA_USER_EXCEPTION,
- ex_GNOME_Evolution_ShellComponent_NoSelection, NULL);
- } else {
- *format_return = format;
-
- *selection_return = GNOME_Evolution_ShellComponent_Selection__alloc ();
-
- (* selection_return)->_buffer = CORBA_octet_allocbuf (selection_length);
- memcpy ((* selection_return)->_buffer, selection, selection_length);
-
- (* selection_return)->_length = selection_length;
- (* selection_return)->_maximum = selection_length;
-
- CORBA_sequence_set_release (*selection_return, TRUE);
- }
-}
-
/* GtkObject methods. */
@@ -495,7 +448,6 @@ class_init (EvolutionShellComponentClass *klass)
epv->createFolderAsync = impl_ShellComponent_async_create_folder;
epv->removeFolderAsync = impl_ShellComponent_async_remove_folder;
epv->populateFolderContextMenu = impl_ShellComponent_populate_folder_context_menu;
- epv->getDndSelection = impl_ShellComponent_getDndSelection;
}
static void