diff options
author | Ettore Perazzoli <ettore@src.gnome.org> | 2002-05-08 00:57:45 +0800 |
---|---|---|
committer | Ettore Perazzoli <ettore@src.gnome.org> | 2002-05-08 00:57:45 +0800 |
commit | ee4d8e5cb0d4b235ab9b813836a4024047ee1fb1 (patch) | |
tree | aa9d1c5fdd071d32c0038ec97a5ec6abee23e205 /shell/e-folder.c | |
parent | 76dfe7c6a96a444df6759be50be1f7c59b934a88 (diff) | |
download | gsoc2013-evolution-ee4d8e5cb0d4b235ab9b813836a4024047ee1fb1.tar.gz gsoc2013-evolution-ee4d8e5cb0d4b235ab9b813836a4024047ee1fb1.tar.zst gsoc2013-evolution-ee4d8e5cb0d4b235ab9b813836a4024047ee1fb1.zip |
Put the EStorageSetView in an EScrollFrame.
* evolution-storage-set-view-factory.c
(evolution_storage_set_view_factory_new_view): Put the
EStorageSetView in an EScrollFrame.
* e-shell.c (impl_Shell_createStorageSetView):
CORBA_Object_duplicate the object before returning.
* evolution-test-component.c
(create_new_folder_selector): New function to create a simple test
environment for the new checkbox-enabled StorageSetView.
(register_component): Add user-creatable type FolderSelector.
(user_create_new_item_callback): Handle FolderSelector.
(dialog_clicked_callback): Print out the checked items in the
folder selector.
(main): Print out a message before going into bonobo_main().
* evolution-storage-set-view.c
(impl_StorageSetView__get_showFolders): Renamed from
impl_StorageSetView__get_show_folders.
(impl_StorageSetView__set_showFolders): Renamed from
impl_StorageSetView__set_show_folders.
(impl_StorageSetView__set_showCheckboxes): New, write the
showCheckboxes CORBA attribute.
(impl_StorageSetView__get_showCheckboxes): New, read the
showCheckboxes CORBA attribute.
(impl_StorageSetView__get_checkedFolders): New, read the
checkedFolders CORBA attribute.
(corba_class_init): Install the new CORBA methods methods.
* e-storage-set-view.c (essv_add_to_list): strdup() the path.
(e_storage_set_view_get_storage_set): New.
* e-folder.c (e_folder_to_corba): New.
* Evolution-StorageSetView.idl: Add showCheckboxes and
checkedFolders attributes.
* Evolution-common.idl: Add typedef for FolderList.
svn path=/trunk/; revision=16704
Diffstat (limited to 'shell/e-folder.c')
-rw-r--r-- | shell/e-folder.c | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/shell/e-folder.c b/shell/e-folder.c index 01177f3cc7..0de3160a74 100644 --- a/shell/e-folder.c +++ b/shell/e-folder.c @@ -1,7 +1,7 @@ /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ /* e-folder.c * - * Copyright (C) 2000 Ximian, Inc. + * Copyright (C) 2000, 2001, 2002 Ximian, Inc. * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public @@ -26,6 +26,8 @@ #include "e-folder.h" +#include "e-util/e-corba-utils.h" + #include <glib.h> #include <gtk/gtksignal.h> @@ -360,4 +362,23 @@ e_folder_set_is_stock (EFolder *folder, } +/* Gotta love CORBA. */ + +void +e_folder_to_corba (EFolder *folder, + const char *evolution_uri, + GNOME_Evolution_Folder *folder_return) +{ + g_return_if_fail (E_IS_FOLDER (folder)); + g_return_if_fail (folder_return != NULL); + + folder_return->type = e_safe_corba_string_dup (e_folder_get_type_string (folder)); + folder_return->description = e_safe_corba_string_dup (e_folder_get_description (folder)); + folder_return->displayName = e_safe_corba_string_dup (e_folder_get_name (folder)); + folder_return->physicalUri = e_safe_corba_string_dup (e_folder_get_physical_uri (folder)); + folder_return->evolutionUri = e_safe_corba_string_dup (evolution_uri); + folder_return->unreadCount = e_folder_get_unread_count (folder); +} + + E_MAKE_TYPE (e_folder, "EFolder", EFolder, class_init, init, PARENT_TYPE) |