Commit Graph

352 Commits

Author SHA1 Message Date
Aleksey Lim
d4cbd4150e Support legacy stop button in ActivityToolbar 2009-07-13 18:34:02 +00:00
Aleksey Lim
ad1f66f58a Add toolbar.py and radiopalette.py to Makefile.am 2009-07-13 18:14:10 +00:00
Aleksey Lim
b2fa922b01 Do not fail in <0.86 environment 2009-07-13 03:18:24 +00:00
Aleksey Lim
165b9e1e05 Provide fast access to all sub-widgets in Toolbar 2009-07-13 03:11:39 +00:00
Aleksey Lim
5d2c5b98ff Do not hide sub-widget when sub-palette was opened 2009-07-13 02:58:49 +00:00
Aleksey Lim
44a8ecd836 Do not add extra vertical padding to sub-widgets 2009-07-13 01:57:27 +00:00
Aleksey Lim
442034bb8b Support new toolbars widgets in activity.py 2009-07-13 01:40:23 +00:00
Aleksey Lim
55609885de Add radiopalette.py 2009-07-13 00:32:26 +00:00
Tomeu Vizoso
8d21a6d884 Pass the event time in key events 2009-07-12 14:11:41 +02:00
Aleksey Lim
ff87ce76e5 Close palette while removing ToolbarButton 2009-07-12 04:38:13 +00:00
Aleksey Lim
82785558d4 Use padding property for top toolbar and all sub-widgets 2009-07-12 04:32:51 +00:00
Aleksey Lim
e256b96366 Implement palette mode 2009-07-12 01:42:23 +00:00
Aleksey Lim
f9de29f539 Delete sub-widgets clearly 2009-07-11 14:22:05 +00:00
Aleksey Lim
4c8c845e6c Add hpad prop for Toolbar; add expand_bg for ToolbarButton 2009-07-11 13:22:02 +00:00
Aleksey Lim
d22e690822 md5 and sha module will be deprecated in python 2.6 #266 2009-07-11 13:07:22 +00:00
Daniel Drake
5fc5b08599 Fix ContentBundle bundle_id
Most content bundles use global_name as the ID-style thing, as suggested
on the OLPC wiki. bundle_class seems undocumented and hence is not
present in any of the content bundles I have here.

Change get_bundle_id() to fall back on the global_name if no bundle_class
is set. This fixes a complete sugar crash when installing the standard
content bundles (it tried to send a None value over dbus).
2009-07-10 18:55:49 +01:00
Aleksey Lim
2fc1cab92d Add simple toolbars example 2009-07-10 04:07:10 +00:00
Aleksey Lim
71e6228ceb Initial implementation of toolbars mockup 2009-07-10 04:04:03 +00:00
Tomeu Vizoso
3dad7c6fff Make Window.canvas a property 2009-07-08 13:16:22 +02:00
Tomeu Vizoso
afce505143 Rename activate signal in cell renderers to 'clicked' 2009-06-30 10:09:42 +02:00
Tomeu Vizoso
434b1e5899 Handle cell activation by button-release 2009-06-27 18:04:00 +02:00
Tomeu Vizoso
985edb0e4d Reduce motion are for treeview palettes to the bin window 2009-06-27 16:06:13 +02:00
Tomeu Vizoso
ecea76479b Remove transformation into png in CellRendererIcon 2009-06-24 20:25:26 +02:00
Tomeu Vizoso
86fae16aed icon-name is a str 2009-06-22 11:59:10 +02:00
Tomeu Vizoso
cd7debb52a Add support for tags in activity bundles 2009-06-16 16:22:48 +02:00
Tomeu Vizoso
042a09cccd Expose telepathy_room_handle (cassidy) #757 2009-06-15 15:46:08 +02:00
Benjamin Berg
4bb221349c Emit a row_changed signal to redraw the CellRendererIcon on prelight.
This fixes a problem where the wrong part of the treeview was redrawn.
2009-06-14 14:08:52 +02:00
Tomeu Vizoso
13afd91bad Implement prelighting of cell renderer icons 2009-06-13 21:24:48 +02:00
Tomeu Vizoso
32109b8764 Redraw cell renderers on hovering changed 2009-06-13 21:24:48 +02:00
Tomeu Vizoso
94e12f52f2 Silence warning and reduce debug logging a bit 2009-06-13 21:24:48 +02:00
Tomeu Vizoso
07c2b025f1 Add CellRendererInvoker 2009-06-13 21:24:48 +02:00
Tomeu Vizoso
a634ecfe14 Add activate signal to CellRendererIcon 2009-06-13 21:24:48 +02:00
Tomeu Vizoso
765de62ab8 Add CellRendererIcon 2009-06-13 21:24:48 +02:00
Tomeu Vizoso
fbad85cde9 Limit length of labels in palettes to 60 chars by default #610 2009-04-06 19:03:42 +02:00
Simon Schampijer
1d15b7f874 Merge branch 'master' of gitorious@git.sugarlabs.org:sugar-toolkit/mainline 2009-03-30 09:51:21 +02:00
Simon Schampijer
a7daf73fae Bundlebuilder list_files: Better error handling #635
Don't fail on trailing slash of the directory name
2009-03-30 09:49:59 +02:00
Tomeu Vizoso
c5e5d3aeb7 Only call read_file once on activity startup #428 2009-03-27 12:32:04 +01:00
Tomeu Vizoso
9ef619a63a Revert "Listen for map in Window instead of in Canvas (alsroot) #428"
This reverts commit eaf7afcd91.
2009-03-27 12:32:03 +01:00
Sayamindu Dasgupta
366b07e73a Use git ls-files instead of git-ls-files, to work with newer Git. d.sl.o #647 2009-03-26 23:45:39 +05:30
Simon Schampijer
720401606d Bundlebuilder: Don't include whole directory in src tarball
regression introduced by #397
2009-03-24 17:11:56 +01:00
Simon Schampijer
856a83a2da Fix spacing in debug file 2009-03-23 17:38:12 +01:00
Simon Schampijer
d5c5e376d2 Fix palettes scaling when using scaling factor 72 #504 2009-03-13 15:44:57 +01:00
Tomeu Vizoso
c4dce659a4 Use Popen.communicate() to avoid hang (Sascha Silbe) #397 2009-03-12 15:43:04 +01:00
Tomeu Vizoso
9bd24794c0 Change property type to object because int cannot be None #157 2009-03-05 12:29:36 +01:00
Tomeu Vizoso
af4faead14 Catch all exceptions while saving #224 2009-03-03 15:22:54 +01:00
Tomeu Vizoso
eaf7afcd91 Listen for map in Window instead of in Canvas (alsroot) #428 2009-03-03 14:27:01 +01:00
Tomeu Vizoso
7c0efa11c0 Restore minimal .xol support #459 2009-03-03 11:12:05 +01:00
Simon Schampijer
e27be4e416 Merge branch 'master' of gitorious@git.sugarlabs.org:sugar-toolkit/mainline 2009-03-02 15:21:15 +01:00
Simon Schampijer
2b2c2ef308 Use the same font size independent from scaling 2009-03-02 15:20:42 +01:00
Tomeu Vizoso
d22b52434b Don't recursively clean an activity if it's a symbolic link #444 2009-03-01 18:24:12 +01:00
Tomeu Vizoso
50a253b1b9 Add extension to temp icon file names #458 2009-03-01 10:36:42 +01:00
Michael Stone
a65c8d2148 Get activities launching with rainbow-0.8.x.
Future extensions:

a) we are now able to reliably detect when an activity's main process has
exited. We should take advantage of this to give better feedback on activity
crashes; e.g. by turning the frame's activity-icon into an error icon and by
inserting the activity's log into the datastore so that it appears in the
Journal.

b) in the future, I'd like rainbow to provide more narrow interfaces for
manipulating jails; e.g. for garbage-collecting them, nuking their contents, or
for reusing them. Please consider this an invitation to show me which interfaces
would work best for Sugar.

P.S. - Thanks to Sascha Silbe for testing and for improvements to this patch.
2009-02-27 16:42:47 -05:00
Simon Schampijer
6f210f0e33 Process .py files in subdirectories './setup genplot' #391 (alsroot) 2009-02-27 12:46:45 +01:00
Tomeu Vizoso
7d69328162 Improve error handling of calls to XGrabKey #431 2009-02-26 13:01:58 +01:00
Tomeu Vizoso
6508128adc Cleanup temp files at exit #435 2009-02-25 19:28:21 +01:00
Tomeu Vizoso
29cc73ae18 Let activities provide their own implementation of get_preview() #152 2009-02-25 16:09:06 +01:00
Benjamin Berg
607c2a9610 Show/Hide the color palette correctly (#374) 2009-02-24 14:29:01 +01:00
Tomeu Vizoso
a4e9c9c78e Support setting None as the secondary text #384 2009-02-24 10:56:09 +01:00
Tomeu Vizoso
77433af5ff Only display one line in the secondary text of a clipping palette #384 2009-02-24 10:37:30 +01:00
Tomeu Vizoso
e2696086e6 Switch to existing instance of an activity if it's already running #410 2009-02-24 10:34:22 +01:00
Tomeu Vizoso
30e67cc226 Reveal the palette on right click on an activity icon #409 2009-02-23 18:11:51 +01:00
Tomeu Vizoso
ede6db947e Don't try to hide the tray if the activity has none (alsroot) #395 2009-02-20 16:38:41 +01:00
Simon Schampijer
780efa55b0 NamingAlert: Icon dependent on the entry type #353 2009-02-16 16:06:38 +01:00
Tomeu Vizoso
997c384405 Add activate signal to Palette 2009-02-10 18:57:02 +01:00
Benjamin Berg
b39ed70b11 Added an option to set the background color of CanvasIcon. Then a RGB cache can be used. 2009-02-10 17:58:02 +01:00
Tomeu Vizoso
474b2c3476 Set the locale path for sugar-toolkit #55 2009-02-05 18:47:08 +01:00
Tomeu Vizoso
ace5e73d3d Don't push to the DS a file path pointing to nowhere #258 2009-02-05 12:43:50 +01:00
Tomeu Vizoso
6084eb9fea Start adapting to Python 4.0 2009-02-04 11:49:48 +01:00
Tomeu Vizoso
e8c36247a5 Palette positioning fixes #298
Don't try to align the palette to the edges if the invoker is AT_CURSOR,
and always try to move the palette completely into the screen if at all
possible.
2009-02-03 15:03:36 +01:00
Simon Schampijer
d0d4f55121 'Resume' activity window when NamingAlert is displayed #293 2009-02-02 17:45:22 +01:00
Simon Schampijer
38f0ac83d2 Naming alert prevents activity close on keep error #224
When the Naming alert is shown and a keep error occurs,
the activity can not be closed.
2009-01-28 20:30:19 +01:00
Simon Schampijer
9e3a8ab007 enhancements to the naming alert
- focus the title entry
- add accelerator for the 'Keep' button which is enter/return
2009-01-19 16:57:59 +01:00
Simon Schampijer
817a981288 Enhanced the 'Name this entry dialog'
- created the canvastextview in sugar/graphics
2009-01-18 16:30:53 +01:00
Simon Schampijer
5250117b81 Fix color button pylint 2009-01-16 23:46:20 +01:00
Tomeu Vizoso
64d24f3ac5 Fix the keep button in the title activity 2009-01-16 14:59:12 +01:00
Simon Schampijer
72fca76d01 separate debug settings from xsession #163 2009-01-16 13:49:56 +01:00
Tomeu Vizoso
67d1d3bcad Make the title alert look a bit nicer 2009-01-13 19:54:02 +01:00
Tomeu Vizoso
ada64e85ab Show an alert on activity close for suggesting the user to set a title 2009-01-13 19:34:26 +01:00
Benjamin Berg
b669d70758 Add a colorpicker to Sugar. Only the ColorToolButton is public for now. 2009-01-13 16:48:06 +01:00
Benjamin Berg
a496b1dbf3 Merge branch 'master' of git://git.sugarlabs.org/sugar-toolkit/mainline 2009-01-12 15:38:49 +01:00
Benjamin Berg
3cde35ef31 Move the palette to new style gobject properties. 2009-01-12 15:38:08 +01:00
Tomeu Vizoso
bbd8c14cf1 pylint nitpick 2009-01-12 13:47:34 +01:00
Tomeu Vizoso
e56b381bd3 Add the file_name property to MenuItem and reduce a bit the size of its icons 2009-01-12 13:46:17 +01:00
Tomeu Vizoso
9a3cbbfe33 Rename parameter to what_filter 2009-01-06 19:17:48 +01:00
Tomeu Vizoso
9b61b1ff7b #3060 Add the possibility of filtering the object chooser by data type 2009-01-06 13:30:20 +01:00
Simon Schampijer
97e6480be1 Fix uninstallling of activities that use symlinks #171 2009-01-05 11:58:45 +01:00
Tomeu Vizoso
488b9ecbb2 Set the uid property after a new object is created 2009-01-04 16:13:59 +01:00
Tomeu Vizoso
53533be524 Set property types as object so strings are not copied 2009-01-04 12:05:27 +01:00
Tomeu Vizoso
fd078d2f66 Support nested requests for the same temp file path 2009-01-04 11:39:14 +01:00
Tomeu Vizoso
de2aa036df Fix typo 2009-01-03 19:26:33 +01:00
Tomeu Vizoso
26e5fc5ca9 Use util.TempFilePath for icons extracted from zipped bundles 2009-01-03 19:11:36 +01:00
Tomeu Vizoso
faeee47f53 Add util.TempFilePath to track the creation and release of temporal files 2009-01-03 16:47:06 +01:00
Tomeu Vizoso
44cabc891b Remove the hacks for asking the X server for screenshots and use gtk.Widget.get_snapshot() instead. 2008-12-20 16:51:29 +01:00
Marco Pesenti Gritti
4b38ff298b Fix palette highlighting on tray icons. Patch by benzea, style tweaks by me. 2008-12-18 23:53:44 +01:00
Marco Pesenti Gritti
347cc9413b Merge branch 'master' of git://git.sugarlabs.org/sugar-toolkit/mainline 2008-12-18 21:01:54 +01:00
Marco Pesenti Gritti
5b57e1a6cd Rework palette state logic. Fix #42 2008-12-18 21:00:19 +01:00
Daniel Drake
2937a09ead Use g_timeout_add_seconds() for power efficiency
This attempts to align second-granularity wakeups across the system,
reducing CPU wakeups a little.

I considered all timeouts of duration 1 second or greater, and moved
the non-timing-critical ones to g_timeout_add_seconds(). (Actually,
I didn't find any that I felt were timing-critical)
2008-12-18 19:56:08 +00:00
Tomeu Vizoso
dddcc14ac7 Remove old cruft 2008-12-15 17:48:41 +01:00
Tomeu Vizoso
43d923b4d5 Log an error message when GetPreferredConnection fails 2008-12-09 13:07:25 +01:00
Tomeu Vizoso
054aaf8590 Dont pop down the palette when a submenu opens 2008-12-07 16:50:25 +01:00