[Sugar-devel] [PATCH] Package
callkalpa at gmail.com
callkalpa at gmail.com
Fri Mar 16 14:02:11 EDT 2012
From: Aleksey Lim <alsroot at sugarlabs.org>
fixed sl#3352
---
ImageViewerActivity.py | 12 ++++++------
activity/activity.info | 5 ++++-
2 files changed, 10 insertions(+), 7 deletions(-)
diff --git a/ImageViewerActivity.py b/ImageViewerActivity.py
index 9bb06e5..7385d85 100644
--- a/ImageViewerActivity.py
+++ b/ImageViewerActivity.py
@@ -193,6 +193,12 @@ class ImageViewerActivity(activity.Activity):
toolbar_box.toolbar.insert(zoom_original_button, -1)
zoom_original_button.show()
+ fullscreen_button = ToolButton('view-fullscreen')
+ fullscreen_button.set_tooltip(_('Fullscreen'))
+ fullscreen_button.connect('clicked', self.__fullscreen_cb)
+ toolbar_box.toolbar.insert(fullscreen_button, -1)
+ fullscreen_button.show()
+
spacer = gtk.SeparatorToolItem()
spacer.props.draw = False
toolbar_box.toolbar.insert(spacer, -1)
@@ -216,12 +222,6 @@ class ImageViewerActivity(activity.Activity):
toolbar_box.toolbar.insert(spacer, -1)
spacer.show()
- fullscreen_button = ToolButton('view-fullscreen')
- fullscreen_button.set_tooltip(_('Fullscreen'))
- fullscreen_button.connect('clicked', self.__fullscreen_cb)
- toolbar_box.toolbar.insert(fullscreen_button, -1)
- fullscreen_button.show()
-
separator = gtk.SeparatorToolItem()
separator.props.draw = False
separator.set_expand(True)
diff --git a/activity/activity.info b/activity/activity.info
index 6f73e0c..00706af 100644
--- a/activity/activity.info
+++ b/activity/activity.info
@@ -11,9 +11,12 @@ icon = activity-imageviewer
exec = sugar-activity ImageViewerActivity.ImageViewerActivity
mime_types = image/bmp;image/gif;image/jpeg;image/png;image/tiff;image/svg+xml
-version = 19
+version = %(activity_version)s
stability = stable
# support original activity.info fields
activity_version = 19
bundle_id = org.laptop.ImageViewerActivity
+
+[Package]
+project = SweetsDistribution:0.94
--
1.7.7.6
More information about the Sugar-devel
mailing list