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> 2001-08-27 Jon Trowbridge <trow@ximian.com>
* gui/component/select-names/e-select-names-completion.c * 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[] = { static const EvolutionShellComponentFolderType folder_types[] = {
{ "contacts", "evolution-contacts.png", N_("Contacts"), N_("Folder containing contact information"), { "contacts", "evolution-contacts.png", N_("Contacts"), N_("Folder containing contact information"),
TRUE, accepted_dnd_types, NULL }, 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")) { if (!strcmp(folder->type, "contacts")) {
ESelectNamesFolder *e_folder = g_new(ESelectNamesFolder, 1); ESelectNamesFolder *e_folder = g_new(ESelectNamesFolder, 1);
e_folder->description = g_strdup(folder->description ); e_folder->description = g_strdup(folder->description );
e_folder->display_name = g_strdup(folder->display_name); e_folder->display_name = g_strdup(folder->displayName);
if (!strncmp (folder->physical_uri, "file:", 5)) if (!strncmp (folder->physicalUri, "file:", 5))
e_folder->uri = g_strdup_printf ("%s/addressbook.db", folder->physical_uri); e_folder->uri = g_strdup_printf ("%s/addressbook.db", folder->physicalUri);
else 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_hash_table_insert(e_select_names->folders,
g_strdup(path), e_folder); g_strdup(path), e_folder);
update_option_menu(e_select_names); 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> 2001-08-27 Jon Trowbridge <trow@ximian.com>
* mail-callbacks.c (mail_generate_reply): Check if we are trying * 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) do_get_info (struct _mail_msg *mm)
{ {
struct _folder_info_msg *m = (struct _folder_info_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; CamelFolder *folder;
CamelException *ex; CamelException *ex;
#if 0 #if 0
char *uri_dup;
char *foldername, *start, *end;
char *storage, *protocol, *uri;
/* Fixme: Do other stuff. Different stuff to the stuff below */ /* Fixme: Do other stuff. Different stuff to the stuff below */
uri_dup = g_strdup (m->foldername); uri_dup = g_strdup (m->foldername);
start = uri_dup + 11; start = uri_dup + 11;

View File

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

View File

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

View File

@ -556,15 +556,15 @@ local_storage_new_folder_cb (EvolutionStorageListener *storage_listener,
int id; int id;
if (strcmp (folder->type, "mail") != 0 || if (strcmp (folder->type, "mail") != 0 ||
strncmp (folder->physical_uri, "file://", 7) != 0 || strncmp (folder->physicalUri, "file://", 7) != 0 ||
strncmp (folder->physical_uri + 7, local_store->local_path, strncmp (folder->physicalUri + 7, local_store->local_path,
local_store->local_pathlen) != 0) local_store->local_pathlen) != 0)
return; return;
local_folder = g_new0 (MailLocalFolder, 1); local_folder = g_new0 (MailLocalFolder, 1);
local_folder->name = g_strdup (strrchr (path, '/') + 1); local_folder->name = g_strdup (strrchr (path, '/') + 1);
local_folder->path = g_strdup (path); 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; local_folder->local_store = local_store;
camel_object_ref ((CamelObject *)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> 2001-08-23 Iain Holmes <iain@ximian.com>
* e-summary-preferences.c (rdfs): Remove the 4 that don't work. * 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.h"
#include "e-summary-mail.h" #include "e-summary-mail.h"
#include "e-util/e-path.h"
#include <libgnome/gnome-defs.h> #include <libgnome/gnome-defs.h>
#include <libgnome/gnome-i18n.h> #include <libgnome/gnome-i18n.h>
#include <libgnome/gnome-util.h> /* gnome_util_prepend_user_home */ #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 */ /* Don't care about non mail */
if (strcmp (folder->type, "mail") != 0 || if (strcmp (folder->type, "mail") != 0 ||
strncmp (folder->physical_uri, "file://", 7) != 0) { strncmp (folder->physicalUri, "file://", 7) != 0) {
return; return;
} }
mail = summary->mail; mail = summary->mail;
mail_folder = g_new (ESummaryMailFolder, 1); 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->name = g_strdup (path);
mail_folder->count = -1; mail_folder->count = -1;
mail_folder->unread = -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) { for (p = pd->summary->preferences->display_folders; p; p = p->next) {
char *text[1]; char *text[1];
char *name, *uri; char *uri;
const char *name;
int row; int row;
uri = g_strconcat ("file://", p->data, NULL); uri = g_strconcat ("file://", p->data, NULL);
@ -627,7 +628,7 @@ fill_mail_shown_clist (GtkCList *clist,
if (name == NULL) { if (name == NULL) {
text[0] = p->data; text[0] = p->data;
} else { } else {
text[0] = name + 1; text[0] = (char *) name + 1; /* GtkCList sucks. */
} }
row = gtk_clist_append (clist, text); row = gtk_clist_append (clist, text);
gtk_clist_set_row_data (clist, row, p); gtk_clist_set_row_data (clist, row, p);

View File

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

View File

@ -105,31 +105,40 @@ struct _ESummaryClass {
GtkVBoxClass parent_class; GtkVBoxClass parent_class;
}; };
GtkType e_summary_get_type (void);
GtkWidget *e_summary_new (const GNOME_Evolution_Shell shell); GtkType e_summary_get_type (void);
void e_summary_print (GtkWidget *widget, GtkWidget *e_summary_new (const GNOME_Evolution_Shell shell);
ESummary *summary);
void e_summary_reload (GtkWidget *widget, void e_summary_print (GtkWidget *widget,
ESummary *summary); ESummary *summary);
void e_summary_draw (ESummary *summary); void e_summary_reload (GtkWidget *widget,
void e_summary_change_current_view (ESummary *summary, ESummary *summary);
const char *uri); void e_summary_draw (ESummary *summary);
void e_summary_set_message (ESummary *summary, void e_summary_change_current_view (ESummary *summary,
const char *message, const char *uri);
gboolean busy);
void e_summary_unset_message (ESummary *summary); void e_summary_set_message (ESummary *summary,
void e_summary_add_protocol_listener (ESummary *summary, const char *message,
const char *protocol, gboolean busy);
ESummaryProtocolListener listener, void e_summary_unset_message (ESummary *summary);
void *closure);
void e_summary_reconfigure (ESummary *summary); void e_summary_add_protocol_listener (ESummary *summary,
int e_summary_count_connections (ESummary *summary); const char *protocol,
GList *e_summary_add_connections (ESummary *summary); ESummaryProtocolListener listener,
void e_summary_set_online (ESummary *summary, void *closure);
GNOME_Evolution_OfflineProgressListener listener,
gboolean online, void e_summary_reconfigure (ESummary *summary);
ESummaryOnlineCallback callback,
void *closure); int e_summary_count_connections (ESummary *summary);
void e_summary_add_online_connection (ESummary *summary, GList *e_summary_add_connections (ESummary *summary);
ESummaryConnection *connection); 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 #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> 2001-08-24 Ettore Perazzoli <ettore@ximian.com>
* e-setup.c (copy_default_stuff): Remove the stupid "do you want * e-setup.c (copy_default_stuff): Remove the stupid "do you want

View File

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

View File

@ -14,16 +14,17 @@ module Evolution {
struct Folder { struct Folder {
string type; string type;
string description; string description;
string display_name; string displayName;
string physical_uri; string physicalUri;
long unread_count; long unreadCount;
}; };
struct Icon { struct Icon {
short width, height; short width, height;
boolean hasAlpha; 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; 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 (i = 0; i < icon->height; i++) {
for (j = 0; j < total_width; j++) for (j = 0; j < total_width; j++)
p[j] = icon->rgba_data._buffer[src_offset ++]; p[j] = icon->rgbaData._buffer[src_offset ++];
p += rowstride; p += rowstride;
} }

View File

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

View File

@ -105,15 +105,15 @@ impl_StorageListener_notifyFolderCreated (PortableServer_Servant servant,
storage_listener_servant = (StorageListenerServant *) servant; storage_listener_servant = (StorageListenerServant *) servant;
storage = storage_listener_servant->storage; storage = storage_listener_servant->storage;
e_folder = e_folder_new (folder->display_name, e_folder = e_folder_new (folder->displayName,
folder->type, folder->type,
folder->description); folder->description);
e_folder_set_physical_uri (e_folder, folder->physical_uri); e_folder_set_physical_uri (e_folder, folder->physicalUri);
e_folder_set_unread_count (e_folder, folder->unread_count); e_folder_set_unread_count (e_folder, folder->unreadCount);
if (! e_storage_new_folder (storage, path, e_folder)) { 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_exception_set (ev,
CORBA_USER_EXCEPTION, CORBA_USER_EXCEPTION,
ex_GNOME_Evolution_StorageListener_Exists, ex_GNOME_Evolution_StorageListener_Exists,
@ -122,7 +122,7 @@ impl_StorageListener_notifyFolderCreated (PortableServer_Servant servant,
return; 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 static void

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -72,6 +72,7 @@ static BonoboWindowClass *parent_class = NULL;
struct _View { struct _View {
char *uri; char *uri;
GtkWidget *control; GtkWidget *control;
EFolder *folder;
}; };
typedef struct _View View; typedef struct _View View;
@ -1446,10 +1447,12 @@ update_for_current_uri (EShellView *shell_view)
EShellViewPrivate *priv; EShellViewPrivate *priv;
EFolder *folder; EFolder *folder;
const char *path; const char *path;
const char *title;
const char *type; const char *type;
const char *folder_name;
char *title;
char *utf8_window_title; char *utf8_window_title;
char *gtk_window_title; char *gtk_window_title;
int unread_count;
priv = shell_view->priv; priv = shell_view->priv;
@ -1462,8 +1465,9 @@ update_for_current_uri (EShellView *shell_view)
path = get_storage_set_path_from_uri (priv->uri); path = get_storage_set_path_from_uri (priv->uri);
title = NULL; folder_name = NULL;
type = NULL; type = NULL;
unread_count = 0;
if (path == NULL) { if (path == NULL) {
folder = 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); folder = e_storage_set_get_folder (e_shell_get_storage_set (priv->shell), path);
if (folder != NULL) { if (folder != NULL) {
title = e_folder_get_name (folder); folder_name = e_folder_get_name (folder);
type = e_folder_get_type_string (folder); type = e_folder_get_type_string (folder);
unread_count = e_folder_get_unread_count (folder);
} else if (path != NULL) { } else if (path != NULL) {
EStorage *storage; EStorage *storage;
storage = e_storage_set_get_storage (e_shell_get_storage_set (priv->shell), path + 1); storage = e_storage_set_get_storage (e_shell_get_storage_set (priv->shell), path + 1);
unread_count = 0;
if (storage != NULL) { 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); 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') if (SUB_VERSION[0] == '\0')
utf8_window_title = g_strdup_printf (_("%s - Evolution %s"), title, VERSION); utf8_window_title = g_strdup_printf (_("%s - Evolution %s"), title, VERSION);
else 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_title = e_utf8_to_gtk_string (GTK_WIDGET (shell_view), utf8_window_title);
gtk_window_set_title (GTK_WINDOW (shell_view), gtk_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_folder_title_bar (shell_view, title, type);
update_window_icon (shell_view, 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_handler_block_by_func (GTK_OBJECT (priv->storage_set_view),
GTK_SIGNAL_FUNC (folder_selected_cb), GTK_SIGNAL_FUNC (folder_selected_cb),
shell_view); shell_view);

View File

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

View File

@ -104,19 +104,19 @@ create_icon_from_pixbuf (GdkPixbuf *pixbuf,
icon_return->height = height; icon_return->height = height;
icon_return->hasAlpha = has_alpha; icon_return->hasAlpha = has_alpha;
icon_return->rgba_data._length = icon_return->height * total_width; icon_return->rgbaData._length = icon_return->height * total_width;
icon_return->rgba_data._maximum = icon_return->rgba_data._length; icon_return->rgbaData._maximum = icon_return->rgbaData._length;
icon_return->rgba_data._buffer = CORBA_sequence_CORBA_octet_allocbuf (icon_return->rgba_data._maximum); icon_return->rgbaData._buffer = CORBA_sequence_CORBA_octet_allocbuf (icon_return->rgbaData._maximum);
sp = gdk_pixbuf_get_pixels (pixbuf); sp = gdk_pixbuf_get_pixels (pixbuf);
dp = icon_return->rgba_data._buffer; dp = icon_return->rgbaData._buffer;
for (i = 0; i < height; i ++) { for (i = 0; i < height; i ++) {
for (j = 0; j < total_width; j++) for (j = 0; j < total_width; j++)
*(dp ++) = sp[j]; *(dp ++) = sp[j];
sp += rowstride; 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. */ /* 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. */ /* CORBA interface implementation. */
static GNOME_Evolution_FolderTypeList * static GNOME_Evolution_FolderTypeList *
impl__get_supported_types (PortableServer_Servant servant, impl__get_supportedTypes (PortableServer_Servant servant,
CORBA_Environment *ev) CORBA_Environment *ev)
{ {
BonoboObject *bonobo_object; BonoboObject *bonobo_object;
EvolutionShellComponent *shell_component; EvolutionShellComponent *shell_component;
@ -196,15 +196,15 @@ impl__get_supported_types (PortableServer_Servant servant,
folder_type = (EvolutionShellComponentFolderType *) p->data; folder_type = (EvolutionShellComponentFolderType *) p->data;
corba_folder_type = folder_type_list->_buffer + i; corba_folder_type = folder_type_list->_buffer + i;
corba_folder_type->name = CORBA_string_dup (folder_type->name); 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->iconName = CORBA_string_dup (folder_type->icon_name);
corba_folder_type->display_name = CORBA_string_dup (folder_type->display_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->description = CORBA_string_dup (folder_type->description);
corba_folder_type->user_creatable = folder_type->user_creatable; 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); 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); folder_type->exported_dnd_types);
} }
@ -214,8 +214,8 @@ impl__get_supported_types (PortableServer_Servant servant,
} }
static GNOME_Evolution_URISchemaList * static GNOME_Evolution_URISchemaList *
impl__get_external_uri_schemas (PortableServer_Servant servant, impl__get_externalUriSchemas (PortableServer_Servant servant,
CORBA_Environment *ev) CORBA_Environment *ev)
{ {
EvolutionShellComponent *shell_component; EvolutionShellComponent *shell_component;
EvolutionShellComponentPrivate *priv; EvolutionShellComponentPrivate *priv;
@ -254,8 +254,8 @@ impl__get_external_uri_schemas (PortableServer_Servant servant,
} }
static GNOME_Evolution_UserCreatableItemTypeList * static GNOME_Evolution_UserCreatableItemTypeList *
impl__get_user_creatable_item_types (PortableServer_Servant servant, impl__get_userCreatableItemTypes (PortableServer_Servant servant,
CORBA_Environment *ev) CORBA_Environment *ev)
{ {
EvolutionShellComponent *shell_component; EvolutionShellComponent *shell_component;
EvolutionShellComponentPrivate *priv; EvolutionShellComponentPrivate *priv;
@ -658,19 +658,19 @@ class_init (EvolutionShellComponentClass *klass)
parent_class = gtk_type_class (PARENT_TYPE); parent_class = gtk_type_class (PARENT_TYPE);
epv->_get_supported_types = impl__get_supported_types; epv->_get_supportedTypes = impl__get_supportedTypes;
epv->_get_external_uri_schemas = impl__get_external_uri_schemas; epv->_get_externalUriSchemas = impl__get_externalUriSchemas;
epv->_get_user_creatable_item_types = impl__get_user_creatable_item_types; epv->_get_userCreatableItemTypes = impl__get_userCreatableItemTypes;
epv->setOwner = impl_setOwner; epv->setOwner = impl_setOwner;
epv->unsetOwner = impl_unsetOwner; epv->unsetOwner = impl_unsetOwner;
epv->debug = impl_debug; epv->debug = impl_debug;
epv->createView = impl_createView; epv->createView = impl_createView;
epv->handleExternalURI = impl_handleExternalURI; epv->handleExternalURI = impl_handleExternalURI;
epv->createFolderAsync = impl_createFolderAsync; epv->createFolderAsync = impl_createFolderAsync;
epv->removeFolderAsync = impl_removeFolderAsync; epv->removeFolderAsync = impl_removeFolderAsync;
epv->xferFolderAsync = impl_xferFolderAsync; epv->xferFolderAsync = impl_xferFolderAsync;
epv->populateFolderContextMenu = impl_populateFolderContextMenu; epv->populateFolderContextMenu = impl_populateFolderContextMenu;
epv->userCreateNewItem = impl_userCreateNewItem; epv->userCreateNewItem = impl_userCreateNewItem;
} }
static void static void

View File

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