Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/rpms
diff options
context:
space:
mode:
authorBernie Innocenti <bernie@codewiz.org>2010-08-13 18:16:04 (GMT)
committer Bernie Innocenti <bernie@codewiz.org>2010-08-13 18:16:04 (GMT)
commit19fcc64af29de52d42b23a1e948cab63b4502946 (patch)
tree241aa5f23131553db3f8547ce2f981423f57acf9 /rpms
parent025b65b64d489b418a2e11e8db7a69df035fb28a (diff)
parent542e756b7983f65725fdd2b1b5c39cf4a344fa6e (diff)
Merge branch 'master' of gitorious@git.sugarlabs.org:dextrose/mainline
Diffstat (limited to 'rpms')
-rw-r--r--rpms/sugar/prevent-multiple-XS-icons-when-re-register.patch54
-rw-r--r--rpms/sugar/sugar.spec4
2 files changed, 57 insertions, 1 deletions
diff --git a/rpms/sugar/prevent-multiple-XS-icons-when-re-register.patch b/rpms/sugar/prevent-multiple-XS-icons-when-re-register.patch
new file mode 100644
index 0000000..5a0cffd
--- /dev/null
+++ b/rpms/sugar/prevent-multiple-XS-icons-when-re-register.patch
@@ -0,0 +1,54 @@
+From: Martin Abente <mabente@paraguayeduca.org>
+To: dextrose@lists.sugarlabs.org
+Date: Fri, 6 Aug 2010 14:59:42 -0400
+Organization: Paraguay Educa
+Subject: [Dextrose] [PATCH] Prevent multiple XS icon when re register
+
+Re register patch did not consider the XS button option logic.
+This patch makes sure previous icon will be removed before adding
+the new one.
+
+Signed-off-by: Martin Abente <mabente@paraguayeduca.org>
+---
+ src/jarabe/journal/volumestoolbar.py | 9 +++++++--
+ 1 files changed, 7 insertions(+), 2 deletions(-)
+
+diff --git a/src/jarabe/journal/volumestoolbar.py b/src/jarabe/journal/volumestoolbar.py
+index e1f9ce0..5fadfac 100644
+--- a/src/jarabe/journal/volumestoolbar.py
++++ b/src/jarabe/journal/volumestoolbar.py
+@@ -66,10 +66,15 @@ class VolumesToolbar(gtk.Toolbar):
+ client = gconf.client_get_default()
+ backup_url = client.get_string('/desktop/sugar/backup_url')
+
++ for button in self._volume_buttons:
++ if button.__class__ == XSButton:
++ self._volume_buttons.remove(button)
++ self.remove(button)
++ break
++
+ if backup_url:
+ xs_button = XSButton()
+ xs_button.set_palette(JournalXSPalette(backup_url))
+- #xs_button.props.group = self._volume_buttons[0]
+ xs_button.show()
+
+ self._volume_buttons.append(xs_button)
+@@ -122,7 +127,7 @@ class VolumesToolbar(gtk.Toolbar):
+ def _get_button_for_mount(self, mount):
+ mount_point = mount.get_root().get_path()
+ for button in self.get_children():
+- if type(button) == VolumeButton and \
++ if button.__class__ == VolumeButton and \
+ button.mount_point == mount_point:
+ return button
+ logging.error('Couldnt find button with mount_point %r', mount_point)
+--
+1.6.0.4
+
+_______________________________________________
+Dextrose mailing list
+Dextrose@lists.sugarlabs.org
+http://lists.sugarlabs.org/listinfo/dextrose
+
+
diff --git a/rpms/sugar/sugar.spec b/rpms/sugar/sugar.spec
index f607e35..2ac186c 100644
--- a/rpms/sugar/sugar.spec
+++ b/rpms/sugar/sugar.spec
@@ -59,7 +59,8 @@ Patch500: sl2006-touchpad-device-on-frame.patch
Patch503: cpu-and-memory-resource-indicator.patch
Patch504: sl2064-always-listen-for-NameOwnerChanged-DBus-message.patch
Patch506: jasg-register-rename.patch
-Patch507: microformat-updater.patch
+Patch507: prevent-multiple-XS-icons-when-re-register.patch
+Patch508: microformat-updater.patch
# tch experimental patches
patch601: bundle-Delete-profile-data-only-when-erased.patch
@@ -196,6 +197,7 @@ multiple instances of sugar.
%patch504 -p1
%patch506 -p1
%patch507 -p1
+%patch508 -p1
%patch601 -p1
%patch602 -p1