Commit Graph
11 Commits
Author SHA1 Message Date
Pro-Panda aa8a5e70c4 Port from Python 2 to six
Signed-off-by: James Cameron <[email protected]>
2019-03-13 14:23:06 +11:00
Rahul Bothra 13a2282e5e Port from GObject to GLib 2018-07-26 13:11:27 +10:00
Pro-Panda 06a28fae0e use created to send signal on receiving Created signal
Tested-by: Rahul Bothra <[email protected]> # Ubuntu 16.04
2018-06-29 14:33:14 +10:00
Pro-Panda 5407ae4cdb Remove unused imports 2018-05-21 17:20:29 +10:00
Pro-Panda 7589102e34 Remove example unrelated to Sugar Toolkit 2018-05-21 17:17:58 +10:00
Pro-Panda 8f047b5819 Remove redundant code in get_activity_root
- same condition is being checked in the module function get_activity_root
2018-04-02 08:41:59 +10:00
Pro-Panda a07bef8be5 Change signal name on enter keypress in title entry
- 'enter-key-press' is more intuitive for the reader than 'entered'
2018-03-05 19:51:43 +11:00
Pro-Panda 1bc171d5d6 enter key after editing title will closes the activity toolbar(if present)
- No change for activities having titleEntry without the toolbar (Eg: chat)

Tested on:
Ubuntu 16.04, Sugar 0.112, GTK 3.18.9
2018-03-05 19:51:43 +11:00
Pro-Panda 0bd9e8fabf Update example to explain various response states
- As a part of #379, which fixed the Response sent on Timeout by TimeoutAlert and NotifyAlert

modified:   examples/alert.py
2018-02-09 08:53:08 +11:00
Pro-Panda af31aa8059 Fix: TimeoutAlert response on Timeout
Explanation:
There was inconsistency between docs and the code.
 - Docs said it returns -1 on timeout
 - Code returned Gtk.Response.OK on timeout

Effect of this commit:
 - Code returns -1 on timeout
2018-02-09 08:53:08 +11:00
Pro-Panda f3dd2c2042 TitleEntry - save title on activate (Enter)
Learners have to use tab to finish editing, followed by clicking the
activity icon to dismiss the dialog.  A slow work flow and inconsistent
with journal list view.  The enter key is ignored.

Add an activate signal handler to save the title.  Force the focus to
move by calling hide and show.

Signed-off-by: James Cameron <[email protected]>
2018-01-15 17:03:49 +11:00