aboutsummaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2001-02-27 11:58:25 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2001-02-27 11:58:25 +0800
commita75e12466d16f6c17d558de205bd0991485101cc (patch)
tree5b26cdf613586f1e1f6892955264864ebef52c2e /shell
parent6d372364756b98ec1bd22810c3b9bf7a9a514c71 (diff)
downloadgsoc2013-evolution-a75e12466d16f6c17d558de205bd0991485101cc.tar
gsoc2013-evolution-a75e12466d16f6c17d558de205bd0991485101cc.tar.gz
gsoc2013-evolution-a75e12466d16f6c17d558de205bd0991485101cc.tar.bz2
gsoc2013-evolution-a75e12466d16f6c17d558de205bd0991485101cc.tar.lz
gsoc2013-evolution-a75e12466d16f6c17d558de205bd0991485101cc.tar.xz
gsoc2013-evolution-a75e12466d16f6c17d558de205bd0991485101cc.tar.zst
gsoc2013-evolution-a75e12466d16f6c17d558de205bd0991485101cc.zip
Added `accepted_dnd_mime_types' and `exported_dnd_mime_types' members
to the `FolderType' struct and renamed `Evolution::Shell::FolderTypeList' to `Evolution::Shell::FolderTypeNameList' to avoid confusion. svn path=/trunk/; revision=8400
Diffstat (limited to 'shell')
-rw-r--r--shell/ChangeLog9
-rw-r--r--shell/Evolution-Shell.idl4
-rw-r--r--shell/Evolution-ShellComponent.idl3
-rw-r--r--shell/e-shell.c14
-rw-r--r--shell/evolution-shell-client.c10
5 files changed, 26 insertions, 14 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog
index 4821c10976..ac9b8f87ce 100644
--- a/shell/ChangeLog
+++ b/shell/ChangeLog
@@ -1,3 +1,12 @@
+2001-02-26 Ettore Perazzoli <ettore@ximian.com>
+
+ * Evolution-Shell.idl: Rename `FolderTypeList' to
+ `FolderTypeNameList' as it was confusing.
+
+ * Evolution-ShellComponent.idl: New members
+ `accepted_dnd_mime_types' and `exported_dnd_mime_types' in `struct
+ FolderType'.
+
2001-02-24 Jeffrey Stedfast <fejj@ximian.com>
* e-storage.c (folder_changed_cb): Don't free a const pointer.
diff --git a/shell/Evolution-Shell.idl b/shell/Evolution-Shell.idl
index f2124c40c8..6519de6f19 100644
--- a/shell/Evolution-Shell.idl
+++ b/shell/Evolution-Shell.idl
@@ -32,7 +32,7 @@ module Evolution {
ShellComponent getComponentByType (in string type)
raises (NotFound);
- typedef sequence<string> FolderTypeList;
+ typedef sequence<string> FolderTypeNameList;
/**
* createNewView:
@@ -58,7 +58,7 @@ module Evolution {
void selectUserFolder (in FolderSelectionListener listener,
in string title,
in string default_folder,
- in FolderTypeList possible_types)
+ in FolderTypeNameList possible_types)
raises (Busy);
/**
diff --git a/shell/Evolution-ShellComponent.idl b/shell/Evolution-ShellComponent.idl
index 4c9624e815..989aa06827 100644
--- a/shell/Evolution-ShellComponent.idl
+++ b/shell/Evolution-ShellComponent.idl
@@ -17,6 +17,9 @@ module Evolution {
struct FolderType {
string name;
string icon_name;
+
+ sequence<string> accepted_dnd_mime_types;
+ sequence<string> exported_dnd_mime_types;
};
typedef sequence<FolderType> FolderTypeList;
diff --git a/shell/e-shell.c b/shell/e-shell.c
index 3067a8cd9a..6656e2f79b 100644
--- a/shell/e-shell.c
+++ b/shell/e-shell.c
@@ -238,28 +238,28 @@ impl_Shell_selectUserFolder (PortableServer_Servant servant,
const GNOME_Evolution_FolderSelectionListener listener,
const CORBA_char *title,
const CORBA_char *default_folder,
- const GNOME_Evolution_Shell_FolderTypeList *corba_allowed_types,
+ const GNOME_Evolution_Shell_FolderTypeNameList *corba_allowed_type_names,
CORBA_Environment *ev)
{
GtkWidget *folder_selection_dialog;
BonoboObject *bonobo_object;
GNOME_Evolution_FolderSelectionListener listener_duplicate;
EShell *shell;
- const char **allowed_types;
+ const char **allowed_type_names;
int i;
bonobo_object = bonobo_object_from_servant (servant);
shell = E_SHELL (bonobo_object);
- allowed_types = alloca (sizeof (allowed_types[0]) * (corba_allowed_types->_length + 1));
- for (i = 0; i < corba_allowed_types->_length; i++)
- allowed_types[i] = corba_allowed_types->_buffer[i];
- allowed_types[corba_allowed_types->_length] = NULL;
+ allowed_type_names = alloca (sizeof (allowed_type_names[0]) * (corba_allowed_type_names->_length + 1));
+ for (i = 0; i < corba_allowed_type_names->_length; i++)
+ allowed_type_names[i] = corba_allowed_type_names->_buffer[i];
+ allowed_type_names[corba_allowed_type_names->_length] = NULL;
/* CORBA doesn't allow you to pass a NULL pointer. */
if (!*default_folder)
default_folder = NULL;
- folder_selection_dialog = e_shell_folder_selection_dialog_new (shell, title, default_folder, allowed_types);
+ folder_selection_dialog = e_shell_folder_selection_dialog_new (shell, title, default_folder, allowed_type_names);
listener_duplicate = CORBA_Object_duplicate (listener, ev);
gtk_object_set_data_full (GTK_OBJECT (folder_selection_dialog), "corba_listener",
diff --git a/shell/evolution-shell-client.c b/shell/evolution-shell-client.c
index 377f2c21d0..fb919b0a3f 100644
--- a/shell/evolution-shell-client.c
+++ b/shell/evolution-shell-client.c
@@ -170,7 +170,7 @@ user_select_folder (EvolutionShellClient *shell_client,
GNOME_Evolution_FolderSelectionListener listener_interface;
GNOME_Evolution_Shell corba_shell;
CORBA_Environment ev;
- GNOME_Evolution_Shell_FolderTypeList corba_type_list;
+ GNOME_Evolution_Shell_FolderTypeNameList corba_type_name_list;
int num_possible_types;
char *result;
@@ -192,12 +192,12 @@ user_select_folder (EvolutionShellClient *shell_client,
num_possible_types = count_string_items (possible_types);
- corba_type_list._length = num_possible_types;
- corba_type_list._maximum = num_possible_types;
- corba_type_list._buffer = (CORBA_char **) possible_types;
+ corba_type_name_list._length = num_possible_types;
+ corba_type_name_list._maximum = num_possible_types;
+ corba_type_name_list._buffer = (CORBA_char **) possible_types;
GNOME_Evolution_Shell_selectUserFolder (corba_shell, listener_interface,
- title, default_folder, &corba_type_list,
+ title, default_folder, &corba_type_name_list,
&ev);
if (ev._major != CORBA_NO_EXCEPTION) {