From 4c4cf68a8d24a7b2ebdff0353958ec40712e65e2 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Mon, 23 Dec 2013 15:57:31 +0000 Subject: add icon dialog --- 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) -- cgit v0.9.1