From 7af66de0238f45979c19eaa3cc9a2e2ba1d9dea0 Mon Sep 17 00:00:00 2001 From: Rodney Dawes Date: Mon, 1 Dec 2003 22:14:43 +0000 Subject: Use BASE_VERSION for repo_ids and OAFIIDs Update killev to kill the 2003-12-01 Rodney Dawes * Use BASE_VERSION for repo_ids and OAFIIDs * Update killev to kill the correct versions of gnome-spell and the GtkHTML Editor svn path=/trunk/; revision=23543 --- shell/ChangeLog | 12 ++++++++++++ shell/GNOME_Evolution_Shell.server.in.in | 14 +++++++------- shell/e-component-registry.c | 5 ++++- shell/e-shell-config.c | 4 ++-- shell/e-shell-shared-folder-picker-dialog.c | 2 +- shell/e-shell-startup-wizard.c | 11 +++++++++-- shell/e-shell.h | 2 +- shell/e-user-creatable-items-handler.c | 2 +- shell/evolution-activity-client.c | 2 +- shell/evolution-storage.c | 4 ++-- 10 files changed, 40 insertions(+), 18 deletions(-) (limited to 'shell') diff --git a/shell/ChangeLog b/shell/ChangeLog index 0ab18beb32..b71cc589b7 100644 --- a/shell/ChangeLog +++ b/shell/ChangeLog @@ -1,3 +1,15 @@ +2003-12-01 Rodney Dawes + + * GNOME_Evolution_Shell.server.in.in: + * e-component-registry.c: + * e-shell-config.c: + * e-shell-shared-folder-picker-dialog.c: + * e-shell-startup-wizard.c: + * e-shell.h: + * e-user-creatable-items-handler.c: + * evolution-activity-client.c: + * evolution-storage.c: Use BASE_VERSION for repo_ids and OAFIIDs + 2003-11-30 Ettore Perazzoli * e-shell.c (struct _EShellPrivate): New member offline_handler. diff --git a/shell/GNOME_Evolution_Shell.server.in.in b/shell/GNOME_Evolution_Shell.server.in.in index 73de19f1b3..6462c92a96 100644 --- a/shell/GNOME_Evolution_Shell.server.in.in +++ b/shell/GNOME_Evolution_Shell.server.in.in @@ -1,32 +1,32 @@ - - + - + location="@BINDIR@/evolution-@VERSION@"> - + location="OAFIID:GNOME_Evolution_Shell_Config_Factory:@VERSION@"> - + -#define E_SHELL_CONFIG_FACTORY_OAFIID "OAFIID:GNOME_Evolution_Shell_Config_Factory" +#define E_SHELL_CONFIG_FACTORY_OAFIID "OAFIID:GNOME_Evolution_Shell_Config_Factory:" BASE_VERSION -#define E_SHELL_CONFIG_FOLDER_SETTINGS_OAFIID "OAFIID:GNOME_Evolution_Shell_Config_FolderSettings_Control" +#define E_SHELL_CONFIG_FOLDER_SETTINGS_OAFIID "OAFIID:GNOME_Evolution_Shell_Config_FolderSettings_Control:" BASE_VERSION static BonoboObject * diff --git a/shell/e-shell-shared-folder-picker-dialog.c b/shell/e-shell-shared-folder-picker-dialog.c index e8444e81d6..1bf651f25f 100644 --- a/shell/e-shell-shared-folder-picker-dialog.c +++ b/shell/e-shell-shared-folder-picker-dialog.c @@ -111,7 +111,7 @@ setup_name_selector (GladeXML *glade_xml, CORBA_exception_init (&ev); - corba_iface = bonobo_activation_activate_from_id ("OAFIID:GNOME_Evolution_Addressbook_SelectNames_2", + corba_iface = bonobo_activation_activate_from_id ("OAFIID:GNOME_Evolution_Addressbook_SelectNames:" BASE_VERSION, 0, NULL, &ev); if (corba_iface == CORBA_OBJECT_NIL || BONOBO_EX (&ev)) { g_warning ("Cannot activate SelectNames -- %s", BONOBO_EX_REPOID (&ev)); diff --git a/shell/e-shell-startup-wizard.c b/shell/e-shell-startup-wizard.c index 63460cc68b..ac6d6a4770 100644 --- a/shell/e-shell-startup-wizard.c +++ b/shell/e-shell-startup-wizard.c @@ -142,10 +142,14 @@ start_wizard (void) Bonobo_ServerInfoList *info; CORBA_Environment ev; GNOME_Evolution_Wizard wizard; + char *query; int i; CORBA_exception_init (&ev); - info = bonobo_activation_query ("repo_ids.has ('IDL:GNOME/Evolution/StartupWizard:1.0')", selection_order, &ev); + query = g_strdup_printf ("repo_ids.has ('IDL:GNOME/Evolution/StartupWizard:%s')", BASE_VERSION); + info = bonobo_activation_query (query, selection_order, &ev); + g_free (query); + if (BONOBO_EX (&ev) || info == CORBA_OBJECT_NIL) { g_warning ("Cannot find startup wizard -- %s", BONOBO_EX_REPOID (&ev)); CORBA_exception_free (&ev); @@ -513,10 +517,13 @@ get_intelligent_importers (void) Bonobo_ServerInfoList *info_list; GList *iids_ret = NULL; CORBA_Environment ev; + char *query; int i; CORBA_exception_init (&ev); - info_list = bonobo_activation_query ("repo_ids.has ('IDL:GNOME/Evolution/IntelligentImporter:1.0')", NULL, &ev); + query = g_strdup_printf ("repo_ids.has ('IDL:GNOME/Evolution/IntelligentImporter:%s'", BASE_VERSION); + info_list = bonobo_activation_query (query, NULL, &ev); + g_free (query); CORBA_exception_free (&ev); for (i = 0; i < info_list->_length; i++) { diff --git a/shell/e-shell.h b/shell/e-shell.h index 499b31728e..b8922de39d 100644 --- a/shell/e-shell.h +++ b/shell/e-shell.h @@ -81,7 +81,7 @@ struct _EShellClass { /* ID for registering the shell in the OAF name service. */ -#define E_SHELL_OAFIID "OAFIID:GNOME_Evolution_Shell_2" +#define E_SHELL_OAFIID "OAFIID:GNOME_Evolution_Shell:" BASE_VERSION enum _EShellConstructResult { E_SHELL_CONSTRUCT_RESULT_OK, diff --git a/shell/e-user-creatable-items-handler.c b/shell/e-user-creatable-items-handler.c index 91ab84647c..f45bb5183d 100644 --- a/shell/e-user-creatable-items-handler.c +++ b/shell/e-user-creatable-items-handler.c @@ -54,7 +54,7 @@ static GObjectClass *parent_class = NULL; #define VERB_PREFIX "ShellUserCreatableItemVerb" -#define EVOLUTION_MAIL_OAFIID "OAFIID:GNOME_Evolution_Mail_ShellComponent" +#define EVOLUTION_MAIL_OAFIID "OAFIID:GNOME_Evolution_Mail_ShellComponent:" BASE_VERSION #define SHELL_WINDOW_KEY "EUserCreatableItemsHandler:shell_window" #define COMBO_BUTTON_WIDGET_KEY "EUserCreatableItemsHandler:combo_button" diff --git a/shell/evolution-activity-client.c b/shell/evolution-activity-client.c index 584ad6e15a..9b2fc8da70 100644 --- a/shell/evolution-activity-client.c +++ b/shell/evolution-activity-client.c @@ -142,7 +142,7 @@ static CORBA_Object get_shell_activity_iface (GNOME_Evolution_Shell shell_iface) { CORBA_Object iface_object; - const char *iface_name = "IDL:GNOME/Evolution/Activity:1.0"; + const char *iface_name = "IDL:GNOME/Evolution/Activity:" BASE_VERSION; iface_object = bonobo_object_query_remote (shell_iface, iface_name, NULL); if (iface_object == CORBA_OBJECT_NIL) diff --git a/shell/evolution-storage.c b/shell/evolution-storage.c index b083e5d794..6ea4fddead 100644 --- a/shell/evolution-storage.c +++ b/shell/evolution-storage.c @@ -937,7 +937,7 @@ evolution_storage_register_on_shell (EvolutionStorage *evolution_storage, CORBA_exception_init (&ev); corba_storage_registry = Bonobo_Unknown_queryInterface (corba_shell, - "IDL:GNOME/Evolution/StorageRegistry:1.0", + "IDL:GNOME/Evolution/StorageRegistry:" BASE_VERSION, &ev); if (corba_storage_registry == CORBA_OBJECT_NIL || ev._major != CORBA_NO_EXCEPTION) { CORBA_exception_free (&ev); @@ -975,7 +975,7 @@ evolution_storage_deregister_on_shell (EvolutionStorage *evolution_storage, CORBA_exception_init (&ev); corba_storage_registry = Bonobo_Unknown_queryInterface (corba_shell, - "IDL:GNOME/Evolution/StorageRegistry:1.0", + "IDL:GNOME/Evolution/StorageRegistry:" BASE_VERSION, &ev); if (corba_storage_registry == CORBA_OBJECT_NIL || ev._major != CORBA_NO_EXCEPTION) { CORBA_exception_free (&ev); -- cgit