Commit Graph

30 Commits

Author SHA1 Message Date
e7c18148d0 dont call bonobo_main_quit anymore now we're shlib'ised.
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
2003-03-05 02:08:38 +00:00
13dd7b2350 clean up, update, etc
* 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
2003-02-06 15:35:20 +00:00
4b1cfd51be Change description passed to
BONOBO_ACTIVATION_SHLIB_FACTORY to correctly say we are a factroy.

svn path=/trunk/; revision=19042
2002-12-06 17:31:42 +00:00
e53eacd2d9 Updated to be a shared library.
* 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
2002-12-04 19:52:45 +00:00
e937e8ddfe (component_destroy): Removed.
(create_component): Do not connect.

svn path=/trunk/; revision=18913
2002-11-25 19:39:19 +00:00
d28115c200 (owner_unset_cb): bonobo_main_quit() instead
of gtk_main_quit().
(component_destroy): Likewise.

svn path=/trunk/; revision=18868
2002-11-20 22:52:35 +00:00
6a9d2e6b0d Removed unused #define COMPONENT_FACTORY_ID. (component_factory_init):
* 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
2002-11-20 22:46:40 +00:00
ba846b6b54 Use GConf.
* 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
2002-11-20 21:57:43 +00:00
8f7b3fabe5 gtk_widget_destroy() instead of gtk_object_destroy().
* 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
2002-11-11 21:19:24 +00:00
f36f2d1fcf #include <string.h>.
* 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
2002-11-06 00:42:52 +00:00
ddaa0af2ce Pass NULL as @unpopulate_folder_context_menu_fn to
* 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
2002-09-04 16:05:35 +00:00
9a210db24f Fix bugs, make the folder list be a storage set view and add a delete url button
svn path=/trunk/; revision=17290
2002-06-26 15:42:01 +00:00
3d386b57d1 Check with e_shell_prepare_for_quit() before quitting.
* 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
2002-05-15 21:41:51 +00:00
d6fa844c53 Add view_info arg but don't do anything with it.
* component-factory.c (create_view): Add view_info arg but don't
	do anything with it.

svn path=/trunk/; revision=16401
2002-04-09 15:06:10 +00:00
91b1b55714 Make the preferences seperate from the views
svn path=/trunk/; revision=16338
2002-04-04 12:10:37 +00:00
3b9ea2d060 [Some initial broken support for building components as shlib. Mostly
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
2002-03-31 01:17:33 +00:00
84e13e5584 Move the preferences from a per-view setting to a global setting
svn path=/trunk/; revision=16205
2002-03-19 13:25:33 +00:00
08fb7329cb Fixing the license text.
svn path=/trunk/; revision=14212
2001-10-27 16:59:46 +00:00
02dcd0aadf Update the licensing information to require version 2 of the GPL
(instead of version 2 or any later version).

svn path=/trunk/; revision=14190
2001-10-27 00:25:49 +00:00
af4cb39650 Fix some strings
svn path=/trunk/; revision=13630
2001-10-12 21:41:59 +00:00
56b24983e2 Add copyright notices
svn path=/trunk/; revision=13157
2001-09-26 19:37:32 +00:00
00e47f55dd Spewage removal Only open folders when they are needed.
Spewage removal
Only open folders when they are needed.

svn path=/trunk/; revision=12990
2001-09-19 21:48:50 +00:00
43d9fc0199 [Fix #958, ShellComponents should not be created by factories, for
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
2001-09-05 23:47:46 +00:00
d9ed7a6a63 Added display_name and description to the type.
* 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
2001-08-20 04:42:04 +00:00
213f236ff5 Change the type from "Summary" to "summary" for consistency with the other
* component-factory.c: Change the type from "Summary" to "summary"
for consistency with the other folder types.

svn path=/trunk/; revision=12239
2001-08-20 03:11:27 +00:00
df89536d52 s/My Evolution/Summary/
svn path=/trunk/; revision=12058
2001-08-15 18:10:02 +00:00
ced2af3321 Add a `user_creatable' property to folder types and make components
use it, so that e.g. you cannot create a folder of type "mailstorage"
or "vtrash".

svn path=/trunk/; revision=11298
2001-07-22 03:50:07 +00:00
730ceece38 Handle the online/offline stuff
svn path=/trunk/; revision=10639
2001-06-30 22:59:34 +00:00
d82d5a7997 Add method `ShellComponent::handleExternalURI' and an
`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
2001-06-27 23:17:41 +00:00
d09d496299 Committing the new My Evolution.
svn path=/trunk/; revision=10163
2001-06-08 20:47:52 +00:00