Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWalter Bender <walter@sugarlabs.org>2013-12-23 15:57:31 (GMT)
committer Walter Bender <walter@sugarlabs.org>2013-12-23 15:57:31 (GMT)
commit4c4cf68a8d24a7b2ebdff0353958ec40712e65e2 (patch)
tree5cd458c7beac46ca098551d0dc314b14422a26a6
parent01f57375dfebeceff9c1ab49d840068b6774b383 (diff)
add icon dialoggtk3
-rw-r--r--NEWS1
-rw-r--r--pippy_app.py6
2 files changed, 4 insertions, 3 deletions
diff --git a/NEWS b/NEWS
index 78cd96e..113f228 100644
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,7 @@
ENHANCEMENTS:
* Edit on multiple tabs (svineet)
+* Add custom icon selection when saving as Sugar activity (Ignacio Rodriguez)
54
diff --git a/pippy_app.py b/pippy_app.py
index fdbd127..0616cac 100644
--- a/pippy_app.py
+++ b/pippy_app.py
@@ -484,7 +484,7 @@ class PippyActivity(ViewSourceActivity, groupthink.sugar_tools.GroupActivity):
ok_icon = Icon(icon_name='dialog-ok')
alert_icon.add_button(Gtk.ResponseType.OK, _('Ok'), ok_icon)
alert_icon.props.title = _('Activity icon')
- alert_icon.props.msg = _('You need select an activity icon.')
+ alert_icon.props.msg = _('Please select an activity icon.')
def internal_callback(window=None, event=None):
icon = "%s/activity/activity-default.svg" % (get_bundle_path())
@@ -525,11 +525,11 @@ class PippyActivity(ViewSourceActivity, groupthink.sugar_tools.GroupActivity):
def alert_response(alert, response_id):
self.remove_alert(alert)
- def dialog():
+ def _icon_dialog():
dialog = IconDialog()
dialog.connect('destroy', internal_callback)
- GObject.idle_add(dialog)
+ GObject.idle_add(_icon_dialog)
alert_icon.connect('response', alert_response)
self.add_alert(alert_icon)