aboutsummaryrefslogtreecommitdiffstats
path: root/my-evolution/component-factory.c
Commit message (Collapse)AuthorAgeFilesLines
* dont call bonobo_main_quit anymore now we're shlib'ised.Not Zed2003-03-051-1/+1
| | | | | | | | | 2003-03-05 Not Zed <NotZed@Ximian.com> * component-factory.c (owner_unset_cb): dont call bonobo_main_quit anymore now we're shlib'ised. svn path=/trunk/; revision=20165
* clean up, update, etcDan Winship2003-02-061-0/+2
| | | | | | | | | | | | * Makefile.am: clean up, update, etc * component-factory.c: #include string.h * e-summary.c (e_pixmap_file): s/IMAGEDIR/IMAGESDIR/ * e-summary-rdf.c: Fix some warnings svn path=/trunk/; revision=19802
* Change description passed toEttore Perazzoli2002-12-071-1/+1
| | | | | | BONOBO_ACTIVATION_SHLIB_FACTORY to correctly say we are a factroy. svn path=/trunk/; revision=19042
* Updated to be a shared library.Ettore Perazzoli2002-12-051-17/+17
| | | | | | | | | | | | | | | | | | | | * GNOME_Evolution_Summary.server.in.in: Updated to be a shared library. * main.c: Removed. * Makefile.am: Update to compile as a shared library. * component-factory.c: Changed to be a shared library factory, for both the ShellComponent and the ConfigControl objects. * e-summary-preferences.c (e_summary_preferences_init_config_control): Renamed from e_summary_preferences_register_config_control_factory. (e_summary_preferences_create_control): Renamed from factory_fn and removed all args. svn path=/trunk/; revision=19007
* (component_destroy): Removed.Ettore Perazzoli2002-11-261-11/+0
| | | | | | (create_component): Do not connect. svn path=/trunk/; revision=18913
* (owner_unset_cb): bonobo_main_quit() insteadEttore Perazzoli2002-11-211-8/+4
| | | | | | | of gtk_main_quit(). (component_destroy): Likewise. svn path=/trunk/; revision=18868
* Removed unused #define COMPONENT_FACTORY_ID. (component_factory_init):Ettore Perazzoli2002-11-211-3/+1
| | | | | | | | | | | * component-factory.c: Removed unused #define COMPONENT_FACTORY_ID. (component_factory_init): Removed unused variable. * GNOME_Evolution_Summary.server.in.in: Updated to not use a factory, which is what the code actually expects. svn path=/trunk/; revision=18867
* Use GConf.Ettore Perazzoli2002-11-211-7/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * e-summary.c (e_summary_init): Use GConf. * e-summary-tasks.c: Replaced member config_listener in ESummaryTasks with a gconf_client. (setup_gconf_client): Renamed from setup_config_listener(). Set up the GConf client and invoke gconf_client_add_dir() on the interesting namespaces. (gconf_client_value_changed_cb): Renamed from config_listener_value_changed_cb and changed prototype to match that of the "value_changed" signal in GConfClient. (setup_task_folder): Updated to use GConf. * e-summary-calendar.c: Replaced member config_listener with a gconf_listener. (setup_calendar): Use GConf. (setup_gconf_client): Renamed from setup_config_listener. Set up a GConf client and invoke gconf_client_add_dir() on the interesting namespaces. (gconf_client_value_changed_cb): Renamed from config_listener_key_changed_cb() and changed prototype to match that of the "value_changed" signal in GConfClient. (locale_uses_24h_time_format): Removed. (e_summary_calendar_free): g_object_unref() the gconf_client. * Makefile.am: Add rules to install the schemas. * apps_evolution_summary.schemas: New. * e-summary-preferences.c: Did a global GList -> GSList switch. (e_summary_preferences_restore): Use GConfClient instead of EConfigListener. (vector_from_folder_list): Removed since GConf makes this useless. (folder_list_from_vector): Likewise. (str_list_from_vector): Likewise. (vector_from_str_list): Likewise. (make_initial_weather_list): Likewise. (make_initial_rdf_list): Likewise. (make_initial_mail_list): Likewise. (e_summary_preferences_save): Use GConf. (e_summary_preferences_init): No need to set up defaults here. * e-summary.h: Changed members display_folders, rdf_urls, stations in ESummaryPrefs to be GSLists instead of GLists; updated all the functions that use them accordingly. svn path=/trunk/; revision=18863
* gtk_widget_destroy() instead of gtk_object_destroy().Ettore Perazzoli2002-11-121-6/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * e-summary-factory.c (control_destroy_cb): gtk_widget_destroy() instead of gtk_object_destroy(). (e_summary_factory_new_control): Likewise. * e-summary-calendar.c: Use g_object_ref()/g_object_unref() instead of gtk_object_ref()/gtk_object_unref(). * e-summary-preferences.c: Likewise. * e-summary-shown.c: Likewise. * e-summary-table.c: Likewise. * e-summary-tasks.c: Likewise. * e-summary.c: Likewise. * e-summary-preferences.c (e_summary_preferences_make_mail_table): g_object_set_data() instead of gtk_object_set_data(). (make_property_dialog): g_object_get_data() instead of gtk_object_get_data(). (get_folders_from_view): Likewise. * component-factory.c (create_view): Use evolution_shell_client_corba_objref() instead of bonobo_object_corba_objref() on the EvolutionShellClient object. Also, use g_object_get_data() instead of gtk_object_get_data(). (owner_set_cb): Likewise. (create_component): Use g_object_set_data() instead of gtk_object_set_data(). svn path=/trunk/; revision=18710
* #include <string.h>.Ettore Perazzoli2002-11-061-6/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * metar.c: #include <string.h>. * main.c (main): Use gnome_program_init(). * e-summary-tasks.c (e_summary_tasks_protocol): Use bonobo-activation. * e-summary-table.c (set_value_at): Use g_signal_emit() instead of gtk_signal_emit(). * e-summary-shown.c (e_summary_shown_class_init): GObjectified. (construct_pixmap_button): Use gtk_image_new_from_stock() instead of gnome_stock_pixmap_new(). * e-summary-preferences.c (e_summary_preferences_restore): Use EConfigListener. (add_dialog_clicked_cb): Add some missing consts. (factory_fn): Pass NULL as the domain arg to glade_xml_new(). (factory_fn): Add id arg. (e_summary_preferences_register_config_control_factory): * e-summary-mail.c (e_summary_folder_init_folder_store): Use bonobo-activation. * e-summary-factory.c (control_activate): Pass NULL ev arg to bonobo functions that now need it. (control_deactivate): Likewise. (control_activate_cb): Likewise. (e_summary_factory_new_control): Use g_signal_connect() instead of gtk_signal_connect(). * e-summary-calendar.c (e_summary_calendar_protocol): Use bonobo_activation. * e-summary.c: Update gnome-print #includes. Added some missing #includes. (e_summary_url_clicked): Pass NULL as the error arg to gnome_url_show(). (do_summary_print): Use GnomePrintConfig instead of GnomePrinter et al. * e-cell-tri.h: Removed BEGIN_GNOME_DECLS/END_GNOME_DECLS. * e-summary.c: Removed #include <libgnome/gnome-defs.h>. Ported to e-config-listener.c. * e-cell-tri.h: Removed #include <libgnome/gnome-defs.h>. * component-factory.c: #include <gtk/gtkmain.h>. (create_component): Use g_signal_connect. Match prototype with the one required by bonobo_generic_factory(). * Makefile.am: Add @INTLTOOL_SERVER_RULE@. ($(MAIL_GENERATED)): Update with new ORBit rules. svn path=/trunk/; revision=18574
* Pass NULL as @unpopulate_folder_context_menu_fn toEttore Perazzoli2002-09-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gui/component/addressbook-component.c (create_component): Pass NULL as @unpopulate_folder_context_menu_fn to evolution_shell_component_new(). * gui/component-factory.c (create_object): Pass NULL as @unpopulate_folder_context_menu_fn to evolution_shell_component_new(). * mail-account-gui.c (mail_account_gui_save): Remove unused variable. * component-factory.c (unpopulate_folder_context_menu): New. (create_component): Pass it to evolution_shell_component_new(). * component-factory.c (create_component): Pass NULL as @unpopulate_folder_context_menu_fn to evolution_shell_component_new(). * e-storage-set-view.c (popup_folder_menu): Remove the context menu items using evolution_shell_component_client_unpopulate_folder_context_menu() instead of doing it ourself, since BonoboUI sucks. * evolution-shell-component-client.c (evolution_shell_component_client_unpopulate_folder_context_menu): New. * evolution-test-component.c (register_component): Pass NULL as @unpopulate_folder_context_menu_fn to evolution_shell_component_new(). * evolution-shell-component.c: New member unpopulate_folder_context_menu_fn in EvolutionShellComponentPrivate. New member uic in EvolutionShellComponentPrivate. (init): Init new members to NULL. (destroy): bonobo_object_unref() priv->uic if not NULL. (evolution_shell_component_new): New arg @unpopulate_folder_context_menu_fn. (evolution_shell_component_construct): Likewise. (impl_populateFolderContextMenu): Set priv->uic to the newly created UIComponent. (impl_unpopulateFolderContextMenu): New, implementation for the ::unpopulateFolderContextMenu CORBA method. (class_init): Install. * Evolution-ShellComponent.idl (unpopulateFolderContextMenu): New method. (AlreadyPopulated): New exception. (populateFolderContextMenu): Can raise it. (NotPopulated): New exception. svn path=/trunk/; revision=17963
* Fix bugs, make the folder list be a storage set view and add a delete url buttonIain Holmes2002-06-261-1/+1
| | | | svn path=/trunk/; revision=17290
* Check with e_shell_prepare_for_quit() before quitting.Ettore Perazzoli2002-05-161-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * e-shell-view-menu.c (command_quit): Check with e_shell_prepare_for_quit() before quitting. * e-shell.c (e_shell_prepare_for_quit): New. * evolution-test-component.c (request_quit_fn): New function asking for confirmation to quit. * evolution-shell-component.c (evolution_shell_component_new): New arg @request_quit_fn. (impl_requestQuit): New, implementation for EvolutionShellComponent::requestQuit. (evolution_shell_component_result_to_string): Handle EVOLUTION_SHELL_COMPONENT_CANCEL. (evolution_shell_component_client_request_quit): New. * Evolution-ShellComponent.idl (requestQuit): New. * component-factory.c (create_component): Pass NULL as @request_quit_fn. * component-factory.c (create_component): Pass NULL as @request_quit_fn. * gui/component-factory.c (create_object): Pass NULL as @request_quit_fn. * gui/component/addressbook-component.c (create_component): Pass NULL as @request_quit_fn. svn path=/trunk/; revision=16925
* Add view_info arg but don't do anything with it.Dan Winship2002-04-091-0/+1
| | | | | | | * component-factory.c (create_view): Add view_info arg but don't do anything with it. svn path=/trunk/; revision=16401
* Make the preferences seperate from the viewsIain Holmes2002-04-041-1/+11
| | | | svn path=/trunk/; revision=16338
* [Some initial broken support for building components as shlib. MostlyEttore Perazzoli2002-03-311-11/+15
| | | | | | | | | | | | | | | | | | | | | | | just a playground for testing the idea.] * Makefile.am: Added support for the ENABLE_SHLIB_COMPONENTS conditional. * GNOME_Evolution_Summary.oaf.in.in: New. * e-summary-mail.c (update_folder_cb): Protect against summary->mail being NULL. * component-factory.c: Add a shlib factory. (create_component): Get a @factory and @data. (component_factory_init): Actually make it use a BonoboGenericFactory again. * configure.in: Add argument `--enable-shlib-components'. New substitutions OAF_SHLIB_LOCATION, OAF_SHLIB_PREFIX, OAF_SHLIB_SUFFIX. svn path=/trunk/; revision=16299
* Move the preferences from a per-view setting to a global settingIain Holmes2002-03-191-1/+7
| | | | svn path=/trunk/; revision=16205
* Fixing the license text.Ettore Perazzoli2001-10-281-1/+0
| | | | svn path=/trunk/; revision=14212
* Update the licensing information to require version 2 of the GPLEttore Perazzoli2001-10-271-2/+2
| | | | | | (instead of version 2 or any later version). svn path=/trunk/; revision=14190
* Fix some stringsIain Holmes2001-10-131-1/+1
| | | | svn path=/trunk/; revision=13630
* Add copyright noticesIain Holmes2001-09-271-3/+18
| | | | svn path=/trunk/; revision=13157
* Spewage removal Only open folders when they are needed.Iain Holmes2001-09-201-2/+0
| | | | | | | Spewage removal Only open folders when they are needed. svn path=/trunk/; revision=12990
* [Fix #958, ShellComponents should not be created by factories, forEttore Perazzoli2001-09-061-9/+7
| | | | | | | | | | | | | | | the Summary.] * component-factory.c (COMPONENT_FACTORY_IID): Removed. (COMPONENT_ID): New. (create_component): Renamed from `factory_fn'. No args. (component_factory_init): Create the BonoboObject with `create_component' and register it on OAF. * GNOME_Evolution_Summary.oaf.in: Remove the ShellComponentFactory. svn path=/trunk/; revision=12646
* Added display_name and description to the type.Ettore Perazzoli2001-08-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * evolution-test-component.c: Added display_name and description to the type. * evolution-shell-component.c (impl__get_supported_types): Pass `display_name' and `description' here. (evolution_shell_component_construct): Likewise. * evolution-shell-component.h: New members `display_name', `description' in `EvolutionShellComponentFolderType'. * e-component-registry.c (register_type): New args @description and @display_name. Pass to `e_folder_type_registry_register_type()'. (register_component): Pass the values returned in the sequence from __get_supported_types. * e-folder-type-registry.c: New members `display_name' and `description' in `struct _FolderType'. (folder_type_new): New args @description and @display_name. Initialize the respective fields in the `FolderType' accordingly. (folder_type_free): Free `display_name' and `description'. (register_folder_type): New args @display_name, @description. (e_folder_type_registry_register_type): New args @display_name, @description. (e_folder_type_registry_get_description_for_type): New. (e_folder_type_registry_get_display_name_for_type): New. * Evolution-ShellComponent.idl: Added `display_name' and `description' fields to the `FolderType' struct. svn path=/trunk/; revision=12245
* Change the type from "Summary" to "summary" for consistency with the otherEttore Perazzoli2001-08-201-1/+1
| | | | | | | * component-factory.c: Change the type from "Summary" to "summary" for consistency with the other folder types. svn path=/trunk/; revision=12239
* s/My Evolution/Summary/Iain Holmes2001-08-161-2/+3
| | | | svn path=/trunk/; revision=12058
* Add a `user_creatable' property to folder types and make componentsEttore Perazzoli2001-07-221-1/+1
| | | | | | | use it, so that e.g. you cannot create a folder of type "mailstorage" or "vtrash". svn path=/trunk/; revision=11298
* Handle the online/offline stuffIain Holmes2001-07-011-1/+13
| | | | svn path=/trunk/; revision=10639
* Add method `ShellComponent::handleExternalURI' and anEttore Perazzoli2001-06-281-0/+1
| | | | | | | | | `external_uri_schemas' attribute. Update the EvolutionShellComponent GTK+ wrapper accordingly. Update all the components to pass a NULL `external_uri_schemas' list when initializing themselves as EvolutionShellComponents. svn path=/trunk/; revision=10548
* Committing the new My Evolution.Iain Holmes2001-06-091-0/+132
svn path=/trunk/; revision=10163