Commit Graph

357 Commits

Author SHA1 Message Date
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
Daniel Drake 3f1509cd22 Simplify activity bundle installation
sugar-install-bundle is broken because ActivityBundle.install() gained a
required parameter. Please can we make it optional? This also fixes one
of the problems with the activity updater.
2008-12-05 21:55:34 +00:00
Tomeu Vizoso e0c2017c50 Add colors to icons in menu items 2008-12-05 18:02:13 +01:00
Tomeu Vizoso 33e94723da Add accelerator support to menu items 2008-12-05 11:51:40 +01:00
Marco Pesenti Gritti 5a0f575718 Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar-toolkit 2008-11-29 13:57:57 +01:00
Marco Pesenti Gritti 10fa6ae4c5 Emit the completed signal on shutdown completion, not on client
disconnection. When shutting down with no activity running we
was not hitting completion. Fix #11
2008-11-29 13:56:13 +01:00
Tomeu Vizoso feeeff34a1 Remove bundle stuff 2008-11-28 19:38:32 +01:00
Tomeu Vizoso 6dfff85f9f Add view-source-related methods HandleViewSource and GetDocumentPath 2008-11-07 16:23:54 +01:00
Morgan Collett e9ebfdea3a #8420: Fix traceback on 404 in ChunkedGlibHTTPRequestHandler
self._cleanup does the self._file.close() anyway if the file exists.
The self._file.close() removed here is redundant, and will always
fail on file not found, which is handled in send_head by returning
None for self._file.
2008-10-29 14:30:37 +02:00
Marco Pesenti Gritti b58182a970 Mark modules as STABLE/UNSTABLE/DEPRECATED. 2008-10-28 14:19:01 +01:00
Marco Pesenti Gritti 9c74f4eec7 Drop broken release command. A more generic release tools
is being developed in sugar-tools now.
2008-10-26 01:15:20 +02:00
Guillaume Desmottes 9ab32f3b77 Add a get_shared_activity() method to sugar.activity.activity.Activity . Patch from Andrés Ambrois. #7649 2008-10-22 13:00:15 +01:00
Tomeu Vizoso 611bd9ccda Only absolutize the command when it doesnt contain already a slash 2008-10-21 17:07:03 +02:00
Tomeu Vizoso 0b7def1788 If the binary to launch is inside the bundle dir, use an absolute path. 2008-10-21 16:12:22 +02:00
Simon Schampijer e69aa53db1 Don't import jabber_registered from the old profile
It is not used anymore by the PS
2008-10-21 12:47:11 +02:00
Eben Eliason dce326c466 Fix up/down arrows in VTrays (#8617) 2008-10-18 17:11:11 -04:00
Eben Eliason 5cc6b27ae7 Add drag-active property to tray control (#8604)
The drag-active property can be set to provide a highlight
when the tray control is accepting target of an ongoing drag.

We can't use the drag_highlight method because we desire to
adjust the background of the widget, rather than drawing on
top of it.  Overriding these methods would work in most cases,
but in cases where GTK+ calls drag_unhighlight itself things
could break, so we use a property instead.
2008-10-18 17:08:13 -04:00
Marco Pesenti Gritti e2439a7e44 Turn bundle into a new style class 2008-10-20 17:31:58 +02:00
Marco Pesenti Gritti 794281073b Make sure the mouse motion is stopped before starting it. 2008-10-18 16:39:12 +02:00
Tomeu Vizoso f5d45d6acd Make sure that manifests in bundles are only called at install and deployment time, so it doesnt impact shell startup performance 2008-10-17 15:29:35 +02:00
Tomeu Vizoso a13ca6d664 #8840 Add missing byte_arrays=True 2008-10-16 20:41:45 +02:00
Simon Schampijer 6013b8a20a Fix for old profile conversion 2008-10-13 16:53:30 +02:00
Simon Schampijer 354dec9f0c Use gconf for the profile 2008-10-11 18:28:40 +02:00
Tomeu Vizoso bcc24a43e7 Move to cjson and drop pyjson and simplejson 2008-10-08 17:30:08 +02:00
Marco Pesenti Gritti f5f26d59c4 Remove unused imports. 2008-10-06 16:38:25 +02:00
Marco Pesenti Gritti 5c6c7ab1d1 The activity registry is now private to the shell.
Changed the activityfactory to take a bundle instead of a bundle_id
so that it doesn't depend on the registry.
2008-10-06 15:54:46 +02:00
Marco Pesenti Gritti 0f33a634c0 Fix up scaling calculations, had some regressions in the previous commits. 2008-10-03 10:30:50 +02:00
Marco Pesenti Gritti 5a51661edf Respect SUGAR_SCALING 2008-10-03 02:15:48 +02:00
Marco Pesenti Gritti 3f08644b32 Remove workaround for old dbus-python. 2008-10-01 00:24:37 +02:00
C. Scott Ananian 897428c794 Trac #8674: sanity-check bundle root; don't delete install_root on failure.
The software updater was deleting ~/Activities when it encountered a bad
bundle.  Two separate issues:  we didn't sanity check the bundle root to
ensure it wasn't '.' or '..' or something crazy like that, and our "clean
up on failure" code was deleting the install_root instead of the activity
root (!).  This was a regression introduced by the fix for #7733 in
commit db2d1c42e2481d6dbc15405840ac23e46eab7318 (0.82.2).
2008-09-28 14:24:46 -04:00
Tomeu Vizoso 404a7b546a request byte_arrays from the DS 2008-09-26 18:36:49 +02:00
Tomeu Vizoso afb63981fa Set the correct locale path for system activities 2008-09-25 20:19:05 +02:00
Marco Pesenti Gritti 89300c9173 Fix obvious error in the grid math #8626 2008-09-24 12:40:57 +02:00
Tomeu Vizoso 8c2bc01b6b Move DSObject.resume() from sugar-toolkit to the shell 2008-09-22 12:27:02 +02:00
Marco Pesenti Gritti 9e6ef4d2a9 Line too long fixes. 2008-09-22 10:55:05 +02:00
David Farning 88295072bd API docstrings from pydocweb 2008-09-21 09:01:48 -05:00
David Farning 3a69d3e777 API docstrings from pydocweb 2008-09-20 21:22:56 -05:00
David Farning 62128530c3 API docstrings from pydocweb 2008-09-19 19:32:55 -05:00
David Farning dd7442a0fa API docstring update from pydocweb 2008-09-19 19:00:00 -05:00
C. Scott Ananian d16334a042 Trac #8563: sugar palette doesn't handle 'table menus'.
The gtk Menu class supports 'table menus', where the menu entries can
be laid out in a grid. This is useful for horizontal menus, and for
dense menus of icons, and for wrapping the menu when it gets too long,
etc.

The Menu.attach() method is used to add entries to a menu by row and
column:
 http://www.pygtk.org/docs/pygtk/class-gtkmenu.html#method-gtkmenu--attach

However, the callback in _Menu, defined in palette.py, only triggers
on do_insert(), and so the signal emission (and subsequent
palette._update_separators() call, which places the line underneath
the menu title text at top) never occurs when you add entries using
attach(). _Menu now overrides attach() and emits the proper signal.
2008-09-19 11:18:36 -04:00
Marco Pesenti Gritti 7eafbe9ce9 Failure to close descriptor is actually expected. Don't bloat the logs. 2008-09-19 11:38:23 +02:00
Marco Pesenti Gritti 6a5d0c837b Another pylint fix. 2008-09-19 00:32:46 +02:00