Studlycapsize all the IDs that are not. Likewise. Updated accordingly.

* Evolution-ShellComponent.idl: Studlycapsize all the IDs that are
not.
* Evolution-common.idl: Likewise.
* evolution-activity-client.c: Updated accordingly.
* evolution-shell-component.c: Likewise.
* evolution-storage.c: Likewise.
* e-activity-handler.c: Likewise.
* e-component-registry.c: Likewise.
* e-corba-storage.c: Likewise.
* e-shell-user-creatable-items-handlers.c: Likewise.

* e-local-storage.c (remove_folder): Remove unused variable.

* e-shell-view.c (update_for_current_uri): Assign zero to
`unread_count', not NULL.

* e-shell-importer.c (import_druid_finish): Remove unused
variable.

* e-shell-user-creatable-items-handler.c: #include
"e-corba-utils.h".

* e-shell-startup-wizard.c: #include "e-shell-startup-wizard.h".

* e-shell-startup-wizard.h: #include <glib.h>

* e-summary-weather.c (weather_make_html): Make local variable
`icon_name' const.  Remove unused variable `uri'.

* e-summary.h: Reformatted in GTK+ style.
(e_summary_remove_online_connection): Added prototype.

* e-summary-preferences.c (fill_mail_shown_clist): Constify local
variable `name'.

* e-summary-mail.c: #include "e-util/e-path.h".  Updated to match
the new studlyCapsification in shell/Evolution*.idl.

* mail-local.c: Match the studlyCapsification of
shell/Evolution*.idl.

* mail-config-druid.h: Change type of `event_source' from
`Bonobo_EventSource *' to `Bonobo_EventSource'.

* mail-accounts.c (mail_delete): Remove unused local variable
`label'.

* folder-info.c (do_get_info): `#if 0' unused variables.

* gui/component/addressbook-component.c: Get rid of a warning by
initializing the closing NULL element in folder_types correctly.

* gui/component/select-names/e-select-names.c: Updated to match
the studlyCapsification of attributes in shell/Evolution*.idl.

svn path=/trunk/; revision=12495
This commit is contained in:
Ettore Perazzoli
2001-08-28 00:18:34 +00:00
parent c612c3240c
commit d671e29102
29 changed files with 228 additions and 123 deletions

View File

@ -1,3 +1,11 @@
2001-08-27 Ettore Perazzoli <ettore@ximian.com>
* gui/component/addressbook-component.c: Get rid of a warning by
initializing the closing NULL element in folder_types correctly.
* gui/component/select-names/e-select-names.c: Updated to match
the studlyCapsification of attributes in shell/Evolution*.idl.
2001-08-27 Jon Trowbridge <trow@ximian.com>
* gui/component/select-names/e-select-names-completion.c

View File

@ -67,7 +67,7 @@ static char *accepted_dnd_types[] = {
static const EvolutionShellComponentFolderType folder_types[] = {
{ "contacts", "evolution-contacts.png", N_("Contacts"), N_("Folder containing contact information"),
TRUE, accepted_dnd_types, NULL },
{ NULL, NULL, FALSE, NULL, NULL }
{ NULL }
};

View File

@ -361,11 +361,11 @@ new_folder (EvolutionStorageListener *storage_listener,
if (!strcmp(folder->type, "contacts")) {
ESelectNamesFolder *e_folder = g_new(ESelectNamesFolder, 1);
e_folder->description = g_strdup(folder->description );
e_folder->display_name = g_strdup(folder->display_name);
if (!strncmp (folder->physical_uri, "file:", 5))
e_folder->uri = g_strdup_printf ("%s/addressbook.db", folder->physical_uri);
e_folder->display_name = g_strdup(folder->displayName);
if (!strncmp (folder->physicalUri, "file:", 5))
e_folder->uri = g_strdup_printf ("%s/addressbook.db", folder->physicalUri);
else
e_folder->uri = g_strdup(folder->physical_uri);
e_folder->uri = g_strdup(folder->physicalUri);
g_hash_table_insert(e_select_names->folders,
g_strdup(path), e_folder);
update_option_menu(e_select_names);

View File

@ -1,3 +1,16 @@
2001-08-27 Ettore Perazzoli <ettore@ximian.com>
* mail-local.c: Match the studlyCapsification of
shell/Evolution*.idl.
* mail-config-druid.h: Change type of `event_source' from
`Bonobo_EventSource *' to `Bonobo_EventSource'.
* mail-accounts.c (mail_delete): Remove unused local variable
`label'.
* folder-info.c (do_get_info): `#if 0' unused variables.
2001-08-27 Jon Trowbridge <trow@ximian.com>
* mail-callbacks.c (mail_generate_reply): Check if we are trying

View File

@ -68,12 +68,12 @@ static void
do_get_info (struct _mail_msg *mm)
{
struct _folder_info_msg *m = (struct _folder_info_msg *) mm;
char *uri_dup;
char *foldername, *start, *end;
char *storage, *protocol, *uri;
CamelFolder *folder;
CamelException *ex;
#if 0
char *uri_dup;
char *foldername, *start, *end;
char *storage, *protocol, *uri;
/* Fixme: Do other stuff. Different stuff to the stuff below */
uri_dup = g_strdup (m->foldername);
start = uri_dup + 11;

View File

@ -271,7 +271,6 @@ mail_delete (GtkButton *button, gpointer data)
MailAccountsDialog *dialog = data;
MailConfigAccount *account;
GnomeDialog *confirm;
GtkWidget *label;
int ans;
if (dialog->accounts_row < 0)

View File

@ -55,7 +55,7 @@ typedef struct {
int id;
BonoboListener *listener;
Bonobo_EventSource *event_source;
Bonobo_EventSource event_source;
} MailConfigDruid;
typedef struct {

View File

@ -556,15 +556,15 @@ local_storage_new_folder_cb (EvolutionStorageListener *storage_listener,
int id;
if (strcmp (folder->type, "mail") != 0 ||
strncmp (folder->physical_uri, "file://", 7) != 0 ||
strncmp (folder->physical_uri + 7, local_store->local_path,
strncmp (folder->physicalUri, "file://", 7) != 0 ||
strncmp (folder->physicalUri + 7, local_store->local_path,
local_store->local_pathlen) != 0)
return;
local_folder = g_new0 (MailLocalFolder, 1);
local_folder->name = g_strdup (strrchr (path, '/') + 1);
local_folder->path = g_strdup (path);
local_folder->uri = g_strdup (folder->physical_uri);
local_folder->uri = g_strdup (folder->physicalUri);
local_folder->local_store = local_store;
camel_object_ref ((CamelObject *)local_store);

View File

@ -1,3 +1,17 @@
2001-08-27 Ettore Perazzoli <ettore@ximian.com>
* e-summary-weather.c (weather_make_html): Make local variable
`icon_name' const. Remove unused variable `uri'.
* e-summary.h: Reformatted in GTK+ style.
(e_summary_remove_online_connection): Added prototype.
* e-summary-preferences.c (fill_mail_shown_clist): Constify local
variable `name'.
* e-summary-mail.c: #include "e-util/e-path.h". Updated to match
the new studlyCapsification in shell/Evolution*.idl.
2001-08-23 Iain Holmes <iain@ximian.com>
* e-summary-preferences.c (rdfs): Remove the 4 that don't work.

View File

@ -16,6 +16,8 @@
#include "e-summary.h"
#include "e-summary-mail.h"
#include "e-util/e-path.h"
#include <libgnome/gnome-defs.h>
#include <libgnome/gnome-i18n.h>
#include <libgnome/gnome-util.h> /* gnome_util_prepend_user_home */
@ -160,14 +162,14 @@ new_folder_cb (EvolutionStorageListener *listener,
/* Don't care about non mail */
if (strcmp (folder->type, "mail") != 0 ||
strncmp (folder->physical_uri, "file://", 7) != 0) {
strncmp (folder->physicalUri, "file://", 7) != 0) {
return;
}
mail = summary->mail;
mail_folder = g_new (ESummaryMailFolder, 1);
mail_folder->path = g_strdup (folder->physical_uri);
mail_folder->path = g_strdup (folder->physicalUri);
mail_folder->name = g_strdup (path);
mail_folder->count = -1;
mail_folder->unread = -1;

View File

@ -618,7 +618,8 @@ fill_mail_shown_clist (GtkCList *clist,
for (p = pd->summary->preferences->display_folders; p; p = p->next) {
char *text[1];
char *name, *uri;
char *uri;
const char *name;
int row;
uri = g_strconcat ("file://", p->data, NULL);
@ -627,7 +628,7 @@ fill_mail_shown_clist (GtkCList *clist,
if (name == NULL) {
text[0] = p->data;
} else {
text[0] = name + 1;
text[0] = (char *) name + 1; /* GtkCList sucks. */
}
row = gtk_clist_append (clist, text);
gtk_clist_set_row_data (clist, row, p);

View File

@ -97,8 +97,8 @@ weather_make_html (Weather *w)
{
GString *string;
ESummaryWeatherLocation *location;
char *sky, *temp, *cond, *uri, *url, *s;
char *icon_name;
char *sky, *temp, *cond, *url, *s;
const char *icon_name;
icon_name = icon_from_weather (w);
string = g_string_new ("");

View File

@ -105,31 +105,40 @@ struct _ESummaryClass {
GtkVBoxClass parent_class;
};
GtkType e_summary_get_type (void);
GtkWidget *e_summary_new (const GNOME_Evolution_Shell shell);
void e_summary_print (GtkWidget *widget,
ESummary *summary);
void e_summary_reload (GtkWidget *widget,
ESummary *summary);
void e_summary_draw (ESummary *summary);
void e_summary_change_current_view (ESummary *summary,
const char *uri);
void e_summary_set_message (ESummary *summary,
const char *message,
gboolean busy);
void e_summary_unset_message (ESummary *summary);
void e_summary_add_protocol_listener (ESummary *summary,
const char *protocol,
ESummaryProtocolListener listener,
void *closure);
void e_summary_reconfigure (ESummary *summary);
int e_summary_count_connections (ESummary *summary);
GList *e_summary_add_connections (ESummary *summary);
void e_summary_set_online (ESummary *summary,
GNOME_Evolution_OfflineProgressListener listener,
gboolean online,
ESummaryOnlineCallback callback,
void *closure);
void e_summary_add_online_connection (ESummary *summary,
ESummaryConnection *connection);
GtkType e_summary_get_type (void);
GtkWidget *e_summary_new (const GNOME_Evolution_Shell shell);
void e_summary_print (GtkWidget *widget,
ESummary *summary);
void e_summary_reload (GtkWidget *widget,
ESummary *summary);
void e_summary_draw (ESummary *summary);
void e_summary_change_current_view (ESummary *summary,
const char *uri);
void e_summary_set_message (ESummary *summary,
const char *message,
gboolean busy);
void e_summary_unset_message (ESummary *summary);
void e_summary_add_protocol_listener (ESummary *summary,
const char *protocol,
ESummaryProtocolListener listener,
void *closure);
void e_summary_reconfigure (ESummary *summary);
int e_summary_count_connections (ESummary *summary);
GList *e_summary_add_connections (ESummary *summary);
void e_summary_set_online (ESummary *summary,
GNOME_Evolution_OfflineProgressListener listener,
gboolean online,
ESummaryOnlineCallback callback,
void *closure);
void e_summary_add_online_connection (ESummary *summary,
ESummaryConnection *connection);
void e_summary_remove_online_connection (ESummary *summary,
ESummaryConnection *connection);
#endif

View File

@ -1,3 +1,36 @@
2001-08-27 Ettore Perazzoli <ettore@ximian.com>
* Evolution-ShellComponent.idl: Studlycapsize all the IDs that are
not.
* Evolution-common.idl: Likewise.
* evolution-activity-client.c: Updated accordingly.
* evolution-shell-component.c: Likewise.
* evolution-storage.c: Likewise.
* e-activity-handler.c: Likewise.
* e-component-registry.c: Likewise.
* e-corba-storage.c: Likewise.
* e-shell-user-creatable-items-handlers.c: Likewise.
* e-local-storage.c (remove_folder): Remove unused variable.
* e-shell-view.c (update_for_current_uri): Assign zero to
`unread_count', not NULL.
* e-shell-importer.c (import_druid_finish): Remove unused
variable.
* e-shell-user-creatable-items-handler.c: #include
"e-corba-utils.h".
* e-shell-startup-wizard.c: #include "e-shell-startup-wizard.h".
* e-shell-startup-wizard.h: #include <glib.h>
2001-08-24 Ettore Perazzoli <ettore@ximian.com>
* e-shell-view.c (update_for_current_uri): Also display the unread
count in the title bar.
2001-08-24 Ettore Perazzoli <ettore@ximian.com>
* e-setup.c (copy_default_stuff): Remove the stupid "do you want

View File

@ -16,15 +16,15 @@ module Evolution {
struct FolderType {
string name;
string icon_name;
string iconName;
string display_name;
string displayName;
string description;
boolean user_creatable;
boolean userCreatable;
sequence<string> accepted_dnd_types;
sequence<string> exported_dnd_types;
sequence<string> acceptedDndTypes;
sequence<string> exportedDndTypes;
};
typedef sequence<FolderType> FolderTypeList;
@ -42,9 +42,9 @@ module Evolution {
interface ShellComponentListener;
interface ShellComponent : Bonobo::Unknown {
readonly attribute FolderTypeList supported_types;
readonly attribute URISchemaList external_uri_schemas;
readonly attribute UserCreatableItemTypeList user_creatable_item_types;
readonly attribute FolderTypeList supportedTypes;
readonly attribute URISchemaList externalUriSchemas ;
readonly attribute UserCreatableItemTypeList userCreatableItemTypes;
/* FIXME: Can we use an attribute here? */
exception AlreadyOwned {};

View File

@ -14,16 +14,17 @@ module Evolution {
struct Folder {
string type;
string description;
string display_name;
string physical_uri;
long unread_count;
string displayName;
string physicalUri;
long unreadCount;
};
struct Icon {
short width, height;
boolean hasAlpha;
sequence <octet> rgba_data; // Row-by-row, left-to-right, top-to-bottom RGBA bytes
sequence <octet> rgbaData; // Row-by-row, left-to-right, top-to-bottom RGBA bytes
};
typedef sequence <Icon> AnimatedIcon;
};

View File

@ -87,7 +87,7 @@ create_gdk_pixbuf_from_corba_icon (const GNOME_Evolution_Icon *icon)
for (i = 0; i < icon->height; i++) {
for (j = 0; j < total_width; j++)
p[j] = icon->rgba_data._buffer[src_offset ++];
p[j] = icon->rgbaData._buffer[src_offset ++];
p += rowstride;
}

View File

@ -174,7 +174,7 @@ register_component (EComponentRegistry *component_registry,
/* Register the supported folder types. */
supported_types = GNOME_Evolution_ShellComponent__get_supported_types (component_corba_interface, &ev);
supported_types = GNOME_Evolution_ShellComponent__get_supportedTypes (component_corba_interface, &ev);
if (ev._major != CORBA_NO_EXCEPTION || supported_types->_length == 0) {
bonobo_object_unref (BONOBO_OBJECT (client));
CORBA_exception_free (&ev);
@ -193,13 +193,13 @@ register_component (EComponentRegistry *component_registry,
type = supported_types->_buffer + i;
if (! register_type (component_registry,
type->name, type->icon_name,
type->display_name, type->description,
type->user_creatable,
type->exported_dnd_types._length,
(const char **) type->exported_dnd_types._buffer,
type->accepted_dnd_types._length,
(const char **) type->accepted_dnd_types._buffer,
type->name, type->iconName,
type->displayName, type->description,
type->userCreatable,
type->exportedDndTypes._length,
(const char **) type->exportedDndTypes._buffer,
type->acceptedDndTypes._length,
(const char **) type->acceptedDndTypes._buffer,
component)) {
g_warning ("Cannot register type `%s' for component %s",
type->name, component->id);
@ -213,7 +213,7 @@ register_component (EComponentRegistry *component_registry,
/* Register the supported external URI schemas. */
supported_schemas = GNOME_Evolution_ShellComponent__get_external_uri_schemas (component_corba_interface, &ev);
supported_schemas = GNOME_Evolution_ShellComponent__get_externalUriSchemas (component_corba_interface, &ev);
if (ev._major == CORBA_NO_EXCEPTION) {
EUriSchemaRegistry *uri_schema_registry;

View File

@ -105,15 +105,15 @@ impl_StorageListener_notifyFolderCreated (PortableServer_Servant servant,
storage_listener_servant = (StorageListenerServant *) servant;
storage = storage_listener_servant->storage;
e_folder = e_folder_new (folder->display_name,
e_folder = e_folder_new (folder->displayName,
folder->type,
folder->description);
e_folder_set_physical_uri (e_folder, folder->physical_uri);
e_folder_set_unread_count (e_folder, folder->unread_count);
e_folder_set_physical_uri (e_folder, folder->physicalUri);
e_folder_set_unread_count (e_folder, folder->unreadCount);
if (! e_storage_new_folder (storage, path, e_folder)) {
g_print ("Cannot register folder -- %s %s\n", path, folder->display_name);
g_print ("Cannot register folder -- %s %s\n", path, folder->displayName);
CORBA_exception_set (ev,
CORBA_USER_EXCEPTION,
ex_GNOME_Evolution_StorageListener_Exists,
@ -122,7 +122,7 @@ impl_StorageListener_notifyFolderCreated (PortableServer_Servant servant,
return;
}
g_print ("Folder registered successfully -- %s %s\n", path, folder->display_name);
g_print ("Folder registered successfully -- %s %s\n", path, folder->displayName);
}
static void

View File

@ -502,7 +502,6 @@ remove_folder (ELocalStorage *local_storage,
EStorage *storage;
AsyncRemoveFolderCallbackData *callback_data;
EvolutionShellComponentClient *component_client;
EStorageResult result;
EFolder *folder;
char *physical_path;
GList *subfolder_paths;

View File

@ -612,7 +612,6 @@ import_druid_finish (GnomeDruidPage *page,
ImportData *data)
{
GtkWidget *folder;
const char *foldername;
char *filename;
char *iid;

View File

@ -25,6 +25,8 @@
#include <config.h>
#endif
#include "e-shell-startup-wizard.h"
#include <errno.h>
#include <glib.h>
@ -39,9 +41,14 @@
#include <bonobo/bonobo-moniker-util.h>
#include <bonobo-conf/bonobo-config-database.h>
#include <gal/widgets/e-gui-utils.h>
#include <widgets/e-timezone-dialog/e-timezone-dialog.h>
#include "importer/GNOME_Evolution_Importer.h"
#include "e-timezone-dialog/e-timezone-dialog.h"
#include <evolution-wizard.h>
#include "Evolution.h"

View File

@ -24,6 +24,8 @@
#ifndef E_SHELL_STARTUP_WIZARD_H
#define E_SHELL_STARTUP_WIZARD_H
#include <glib.h>
gboolean e_shell_startup_wizard_create (void);
#endif

View File

@ -27,6 +27,8 @@
#include "e-shell-user-creatable-items-handler.h"
#include "e-util/e-corba-utils.h"
#include <gal/util/e-util.h>
#include <bonobo/bonobo-ui-util.h>
@ -73,7 +75,7 @@ component_new_from_client (EvolutionShellComponentClient *client)
CORBA_exception_init (&ev);
objref = bonobo_object_corba_objref (BONOBO_OBJECT (client));
new->type_list = GNOME_Evolution_ShellComponent__get_user_creatable_item_types (objref, &ev);
new->type_list = GNOME_Evolution_ShellComponent__get_userCreatableItemTypes (objref, &ev);
if (ev._major != CORBA_NO_EXCEPTION)
new->type_list = NULL;

View File

@ -72,6 +72,7 @@ static BonoboWindowClass *parent_class = NULL;
struct _View {
char *uri;
GtkWidget *control;
EFolder *folder;
};
typedef struct _View View;
@ -1446,10 +1447,12 @@ update_for_current_uri (EShellView *shell_view)
EShellViewPrivate *priv;
EFolder *folder;
const char *path;
const char *title;
const char *type;
const char *folder_name;
char *title;
char *utf8_window_title;
char *gtk_window_title;
int unread_count;
priv = shell_view->priv;
@ -1462,8 +1465,9 @@ update_for_current_uri (EShellView *shell_view)
path = get_storage_set_path_from_uri (priv->uri);
title = NULL;
folder_name = NULL;
type = NULL;
unread_count = 0;
if (path == NULL) {
folder = NULL;
@ -1471,19 +1475,29 @@ update_for_current_uri (EShellView *shell_view)
folder = e_storage_set_get_folder (e_shell_get_storage_set (priv->shell), path);
if (folder != NULL) {
title = e_folder_get_name (folder);
folder_name = e_folder_get_name (folder);
type = e_folder_get_type_string (folder);
unread_count = e_folder_get_unread_count (folder);
} else if (path != NULL) {
EStorage *storage;
storage = e_storage_set_get_storage (e_shell_get_storage_set (priv->shell), path + 1);
unread_count = 0;
if (storage != NULL) {
title = e_storage_get_display_name (storage);
folder_name = e_storage_get_display_name (storage);
type = e_storage_get_toplevel_node_type (storage);
}
}
}
if (unread_count > 0)
title = g_strdup_printf (_("%s (%d)"), folder_name, unread_count);
else if (folder_name == NULL)
title = g_strdup (_("(None)"));
else
title = g_strdup (folder_name);
if (SUB_VERSION[0] == '\0')
utf8_window_title = g_strdup_printf (_("%s - Evolution %s"), title, VERSION);
else
@ -1491,12 +1505,14 @@ update_for_current_uri (EShellView *shell_view)
gtk_window_title = e_utf8_to_gtk_string (GTK_WIDGET (shell_view), utf8_window_title);
gtk_window_set_title (GTK_WINDOW (shell_view), gtk_window_title);
g_free (gtk_window_title);
g_free (utf8_window_title);
update_folder_title_bar (shell_view, title, type);
update_window_icon (shell_view, type);
g_free (gtk_window_title);
g_free (utf8_window_title);
g_free (title);
gtk_signal_handler_block_by_func (GTK_OBJECT (priv->storage_set_view),
GTK_SIGNAL_FUNC (folder_selected_cb),
shell_view);

View File

@ -289,7 +289,7 @@ init (EShortcutsViewModel *shortcuts_view_model)
EShortcutsViewModelPrivate *priv;
priv = g_new (EShortcutsViewModelPrivate, 1);
priv->shortcuts = NULL;
priv->shortcuts = NULL;
shortcuts_view_model->priv = priv;
}

View File

@ -104,19 +104,19 @@ create_icon_from_pixbuf (GdkPixbuf *pixbuf,
icon_return->height = height;
icon_return->hasAlpha = has_alpha;
icon_return->rgba_data._length = icon_return->height * total_width;
icon_return->rgba_data._maximum = icon_return->rgba_data._length;
icon_return->rgba_data._buffer = CORBA_sequence_CORBA_octet_allocbuf (icon_return->rgba_data._maximum);
icon_return->rgbaData._length = icon_return->height * total_width;
icon_return->rgbaData._maximum = icon_return->rgbaData._length;
icon_return->rgbaData._buffer = CORBA_sequence_CORBA_octet_allocbuf (icon_return->rgbaData._maximum);
sp = gdk_pixbuf_get_pixels (pixbuf);
dp = icon_return->rgba_data._buffer;
dp = icon_return->rgbaData._buffer;
for (i = 0; i < height; i ++) {
for (j = 0; j < total_width; j++)
*(dp ++) = sp[j];
sp += rowstride;
}
CORBA_sequence_set_release (& icon_return->rgba_data, TRUE);
CORBA_sequence_set_release (& icon_return->rgbaData, TRUE);
}
/* Generate an AnimatedIcon from a NULL-terminated @pixbuf_array. */

View File

@ -169,8 +169,8 @@ fill_corba_sequence_from_null_terminated_string_array (CORBA_sequence_CORBA_stri
/* CORBA interface implementation. */
static GNOME_Evolution_FolderTypeList *
impl__get_supported_types (PortableServer_Servant servant,
CORBA_Environment *ev)
impl__get_supportedTypes (PortableServer_Servant servant,
CORBA_Environment *ev)
{
BonoboObject *bonobo_object;
EvolutionShellComponent *shell_component;
@ -196,15 +196,15 @@ impl__get_supported_types (PortableServer_Servant servant,
folder_type = (EvolutionShellComponentFolderType *) p->data;
corba_folder_type = folder_type_list->_buffer + i;
corba_folder_type->name = CORBA_string_dup (folder_type->name);
corba_folder_type->icon_name = CORBA_string_dup (folder_type->icon_name);
corba_folder_type->display_name = CORBA_string_dup (folder_type->display_name);
corba_folder_type->description = CORBA_string_dup (folder_type->description);
corba_folder_type->user_creatable = folder_type->user_creatable;
corba_folder_type->name = CORBA_string_dup (folder_type->name);
corba_folder_type->iconName = CORBA_string_dup (folder_type->icon_name);
corba_folder_type->displayName = CORBA_string_dup (folder_type->display_name);
corba_folder_type->description = CORBA_string_dup (folder_type->description);
corba_folder_type->userCreatable = folder_type->user_creatable;
fill_corba_sequence_from_null_terminated_string_array (& corba_folder_type->accepted_dnd_types,
fill_corba_sequence_from_null_terminated_string_array (& corba_folder_type->acceptedDndTypes,
folder_type->accepted_dnd_types);
fill_corba_sequence_from_null_terminated_string_array (& corba_folder_type->exported_dnd_types,
fill_corba_sequence_from_null_terminated_string_array (& corba_folder_type->exportedDndTypes,
folder_type->exported_dnd_types);
}
@ -214,8 +214,8 @@ impl__get_supported_types (PortableServer_Servant servant,
}
static GNOME_Evolution_URISchemaList *
impl__get_external_uri_schemas (PortableServer_Servant servant,
CORBA_Environment *ev)
impl__get_externalUriSchemas (PortableServer_Servant servant,
CORBA_Environment *ev)
{
EvolutionShellComponent *shell_component;
EvolutionShellComponentPrivate *priv;
@ -254,8 +254,8 @@ impl__get_external_uri_schemas (PortableServer_Servant servant,
}
static GNOME_Evolution_UserCreatableItemTypeList *
impl__get_user_creatable_item_types (PortableServer_Servant servant,
CORBA_Environment *ev)
impl__get_userCreatableItemTypes (PortableServer_Servant servant,
CORBA_Environment *ev)
{
EvolutionShellComponent *shell_component;
EvolutionShellComponentPrivate *priv;
@ -658,19 +658,19 @@ class_init (EvolutionShellComponentClass *klass)
parent_class = gtk_type_class (PARENT_TYPE);
epv->_get_supported_types = impl__get_supported_types;
epv->_get_external_uri_schemas = impl__get_external_uri_schemas;
epv->_get_user_creatable_item_types = impl__get_user_creatable_item_types;
epv->setOwner = impl_setOwner;
epv->unsetOwner = impl_unsetOwner;
epv->debug = impl_debug;
epv->createView = impl_createView;
epv->handleExternalURI = impl_handleExternalURI;
epv->createFolderAsync = impl_createFolderAsync;
epv->removeFolderAsync = impl_removeFolderAsync;
epv->xferFolderAsync = impl_xferFolderAsync;
epv->populateFolderContextMenu = impl_populateFolderContextMenu;
epv->userCreateNewItem = impl_userCreateNewItem;
epv->_get_supportedTypes = impl__get_supportedTypes;
epv->_get_externalUriSchemas = impl__get_externalUriSchemas;
epv->_get_userCreatableItemTypes = impl__get_userCreatableItemTypes;
epv->setOwner = impl_setOwner;
epv->unsetOwner = impl_unsetOwner;
epv->debug = impl_debug;
epv->createView = impl_createView;
epv->handleExternalURI = impl_handleExternalURI;
epv->createFolderAsync = impl_createFolderAsync;
epv->removeFolderAsync = impl_removeFolderAsync;
epv->xferFolderAsync = impl_xferFolderAsync;
epv->populateFolderContextMenu = impl_populateFolderContextMenu;
epv->userCreateNewItem = impl_userCreateNewItem;
}
static void

View File

@ -822,11 +822,11 @@ evolution_storage_new_folder (EvolutionStorage *evolution_storage,
CORBA_exception_init (&ev);
corba_folder = GNOME_Evolution_Folder__alloc ();
corba_folder->display_name = CORBA_string_dup (display_name);
corba_folder->description = CORBA_string_dup (description);
corba_folder->type = CORBA_string_dup (type);
corba_folder->physical_uri = CORBA_string_dup (physical_uri);
corba_folder->unread_count = unread_count;
corba_folder->displayName = CORBA_string_dup (display_name);
corba_folder->description = CORBA_string_dup (description);
corba_folder->type = CORBA_string_dup (type);
corba_folder->physicalUri = CORBA_string_dup (physical_uri);
corba_folder->unreadCount = unread_count;
if (! e_folder_tree_add (priv->folder_tree, path, corba_folder)) {
CORBA_free (corba_folder);
@ -915,9 +915,9 @@ evolution_storage_update_folder (EvolutionStorage *evolution_storage,
if (result == EVOLUTION_STORAGE_OK) {
corba_folder = e_folder_tree_get_folder (priv->folder_tree, path);
if (corba_folder != NULL) {
CORBA_free (corba_folder->display_name);
corba_folder->display_name = CORBA_string_dup (display_name);
corba_folder->unread_count = unread_count;
CORBA_free (corba_folder->displayName);
corba_folder->displayName = CORBA_string_dup (display_name);
corba_folder->unreadCount = unread_count;
} else
result = EVOLUTION_STORAGE_ERROR_NOTFOUND;
}
@ -972,7 +972,7 @@ evolution_storage_removed_folder (EvolutionStorage *evolution_storage,
corba_folder = e_folder_tree_get_folder (priv->folder_tree, path);
if (corba_folder == NULL)
return EVOLUTION_STORAGE_ERROR_NOTFOUND;
if (g_hash_table_lookup_extended (priv->uri_to_path, corba_folder->physical_uri, &key, &value)) {
if (g_hash_table_lookup_extended (priv->uri_to_path, corba_folder->physicalUri, &key, &value)) {
g_hash_table_remove (priv->uri_to_path, key);
g_free (key);
g_free (value);