[gnome-panel] Change references from bonobo-applet to external-applet in gconf
- From: Germán Poó Caamaño <gpoo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel] Change references from bonobo-applet to external-applet in gconf
- Date: Sat, 8 Jan 2011 01:43:19 +0000 (UTC)
commit 76989dba36efdb55ba6b8c86d7f852f7e87766d2
Author: Vincent Untz <vuntz gnome org>
Date: Fri Jan 7 17:42:43 2011 -0800
Change references from bonobo-applet to external-applet in gconf
Signed-off-by: Germán Póo-Caamaño <gpoo gnome org>
gnome-panel/gnome-panel-add.in | 2 +-
gnome-panel/panel-default-setup.entries | 12 ++++++------
gnome-panel/panel-object.schemas.in | 6 ++++--
gnome-panel/panel-profile.c | 4 +++-
4 files changed, 14 insertions(+), 10 deletions(-)
---
diff --git a/gnome-panel/gnome-panel-add.in b/gnome-panel/gnome-panel-add.in
index b93a027..3bcc533 100644
--- a/gnome-panel/gnome-panel-add.in
+++ b/gnome-panel/gnome-panel-add.in
@@ -261,7 +261,7 @@ class PanelAdder:
self.client.set_bool(os.path.join(dir, 'panel_right_stick'), self.right_stick)
if self.type == PANEL_TYPE_APPLET:
- self.client.set_string(os.path.join(dir, 'object_type'), 'bonobo-applet')
+ self.client.set_string(os.path.join(dir, 'object_type'), 'external-applet')
self.client.set_string(os.path.join(dir, 'applet_iid'), self.applet_iid)
id_list = self._panel_get_list(PANEL_APPLETS_KEY)
id_list.append(id)
diff --git a/gnome-panel/panel-default-setup.entries b/gnome-panel/panel-default-setup.entries
index 3604957..182ba20 100644
--- a/gnome-panel/panel-default-setup.entries
+++ b/gnome-panel/panel-default-setup.entries
@@ -334,7 +334,7 @@
<key>applets/window_menu/object_type</key>
<schema_key>/schemas/apps/panel/objects/object_type</schema_key>
<value>
- <string>bonobo-applet</string>
+ <string>external-applet</string>
</value>
</entry>
<entry>
@@ -388,7 +388,7 @@
<key>applets/clock/object_type</key>
<schema_key>/schemas/apps/panel/objects/object_type</schema_key>
<value>
- <string>bonobo-applet</string>
+ <string>external-applet</string>
</value>
</entry>
<entry>
@@ -442,7 +442,7 @@
<key>applets/notification_area/object_type</key>
<schema_key>/schemas/apps/panel/objects/object_type</schema_key>
<value>
- <string>bonobo-applet</string>
+ <string>external-applet</string>
</value>
</entry>
<entry>
@@ -496,7 +496,7 @@
<key>applets/show_desktop_button/object_type</key>
<schema_key>/schemas/apps/panel/objects/object_type</schema_key>
<value>
- <string>bonobo-applet</string>
+ <string>external-applet</string>
</value>
</entry>
<entry>
@@ -550,7 +550,7 @@
<key>applets/window_list/object_type</key>
<schema_key>/schemas/apps/panel/objects/object_type</schema_key>
<value>
- <string>bonobo-applet</string>
+ <string>external-applet</string>
</value>
</entry>
<entry>
@@ -604,7 +604,7 @@
<key>applets/workspace_switcher/object_type</key>
<schema_key>/schemas/apps/panel/objects/object_type</schema_key>
<value>
- <string>bonobo-applet</string>
+ <string>external-applet</string>
</value>
</entry>
<entry>
diff --git a/gnome-panel/panel-object.schemas.in b/gnome-panel/panel-object.schemas.in
index 00d718a..5a0943d 100644
--- a/gnome-panel/panel-object.schemas.in
+++ b/gnome-panel/panel-object.schemas.in
@@ -15,7 +15,8 @@
<long>
The type of this panel object. Possible values are
"drawer-object", "menu-object", "launcher-object",
- "bonobo-applet", "action-applet" and "menu-bar".
+ "external-applet", "action-applet", "menu-bar" and
+ "separator".
</long>
</locale>
</schema>
@@ -105,7 +106,8 @@
<long>
The implementation ID of the applet - e.g.
"ClockAppletFactory::ClockApplet". This key is only
- relevant if the object_type key is "bonobo-applet".
+ relevant if the object_type key is "external-applet"
+ (or the deprecated "bonobo-applet").
</long>
</locale>
</schema>
diff --git a/gnome-panel/panel-profile.c b/gnome-panel/panel-profile.c
index c3de4f1..27ce137 100644
--- a/gnome-panel/panel-profile.c
+++ b/gnome-panel/panel-profile.c
@@ -99,10 +99,12 @@ static GConfEnumStringPair panel_object_type_map [] = {
{ PANEL_OBJECT_DRAWER, "drawer-object" },
{ PANEL_OBJECT_MENU, "menu-object" },
{ PANEL_OBJECT_LAUNCHER, "launcher-object" },
- { PANEL_OBJECT_APPLET, "bonobo-applet" },
+ { PANEL_OBJECT_APPLET, "external-applet" },
{ PANEL_OBJECT_ACTION, "action-applet" },
{ PANEL_OBJECT_MENU_BAR, "menu-bar" },
{ PANEL_OBJECT_SEPARATOR, "separator" },
+ /* The following is for backwards compatibility with 2.30.x and earlier */
+ { PANEL_OBJECT_APPLET, "bonobo-applet" },
/* The following two are for backwards compatibility with 2.0.x */
{ PANEL_OBJECT_LOCK, "lock-object" },
{ PANEL_OBJECT_LOGOUT, "logout-object" },
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]