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
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
Marco Pesenti Gritti
a151135e2e
Fix a few pylint warnings.
2008-09-19 00:18:31 +02:00
Simon Schampijer
e429c258ca
Allow setting empty jabber server (2)
...
fix #8354 completely
2008-09-18 23:19:55 +02:00
C. Scott Ananian
28586edb2f
Trac #8532 : remove SIGCHLD handler, which interacts poorly with threads.
...
Threads and signals don't get along too well together. Instead, use
gobject's spawn_async functionality which already has the necessary zombie-
reaping integrated into the gobject event loop.
2008-09-18 11:14:41 -04:00
Tomeu Vizoso
f2a8948bf1
#8485 Detach from palette when a widget is destroyed
2008-09-18 14:50:58 +02:00
Guillaume Desmottes
1ab0c67830
fix weird change in _share_activity_cb causing all activity sharing fails
2008-09-18 11:46:40 +01:00
Erik Garrison
a6ef6742f5
Removed unused TakeScreenshot from the dbus interface provided by
...
activityservice.py as suggested by Marco @ trac #8432 .
2008-09-17 14:48:14 -04:00
Erik Garrison
c1f6d9843d
Cleanup screenshot acquisition behavior in activity.py, so that we acquire
...
screenshots on user-initiated activity save and close. Check before saving
that the window is not fully obscured, as it might be if the user initiates the
close from the frame--- this would produce incorrect screenshots. The check
for visibility is done by attaching a handler to the Activity class which
handles visibility-notify-events from X. In the sugar repository equivalent
changes remove automated screenshot acquisition from window manager navigation
events (e.g. tabbing).
2008-09-17 14:25:38 -04:00
Marco Pesenti Gritti
c613b9cf5e
Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar-toolkit
2008-09-16 17:03:32 +02:00
David Farning
4a73c86dbb
add parameters to docs
2008-09-16 17:03:12 +02:00
Tomeu Vizoso
a93992eedc
Revert "Move DSObject.resume() from sugar-toolkit to the shell"
...
This reverts commit 13682dd1b4
.
2008-09-16 16:03:49 +02:00
Tomeu Vizoso
be32d3fb67
Remove the clipboard service wrapper
2008-09-16 15:34:26 +02:00
Tomeu Vizoso
13682dd1b4
Move DSObject.resume() from sugar-toolkit to the shell
2008-09-16 11:13:36 +02:00
Tomeu Vizoso
6c1eed78d8
s/print/logging.debug
2008-09-15 15:45:35 +02:00
Marco Pesenti Gritti
5ecfcba365
No need to test alsa open at object creationg, since
...
we don't have a fallback.
2008-09-14 12:55:16 +02:00
Marco Pesenti Gritti
be7b97dde7
Fix weird handling of error condition when opening alsa.
2008-09-13 22:52:20 +02:00
Marco Pesenti Gritti
be014cc270
Alsa based volume control API, stealed from gnome-settings-daemon. #8375
2008-09-13 13:48:25 +02:00
Marco Pesenti Gritti
388f74a56d
Add a SugarGrid object to replace the numpy implementation. Part of the fix for #8394
2008-09-13 13:30:10 +02:00
Marco Pesenti Gritti
1ac335f271
Break the reference cycle between menu and palette. #8469
2008-09-13 13:25:40 +02:00
Simon Schampijer
1af96495d2
bundlebuilder: remove an existing locale dir before building
2008-09-13 12:02:22 +02:00
Simon Schampijer
199a91ff87
don't build the locale for the pseudo.po
2008-09-12 13:15:49 +02:00
Marco Pesenti Gritti
9eb7e3a7df
Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar-toolkit
2008-09-11 10:52:35 +02:00
Marco Pesenti Gritti
171e76cfb8
Default to empty jabber server. Patch by gdesmott with minor change by me.
...
Fix #8354
2008-09-11 10:51:59 +02:00
Simon Schampijer
e721f74f63
Ignore pseudo.po for the manifest
2008-09-11 10:49:54 +02:00
Tomeu Vizoso
0490247fcb
Hopefully really avoid access to private member
2008-09-11 09:03:05 +02:00
Tomeu Vizoso
5c1f3b7daa
Revert "Avoid access to private member"
...
This reverts commit 0cf0cacbd0
.
2008-09-11 09:00:44 +02:00
Tomeu Vizoso
c79bc15f5f
#8394 Destroy the palette when the invoker is dettached
2008-09-10 18:05:53 +02:00
Tomeu Vizoso
0cf0cacbd0
Avoid access to private member
2008-09-10 18:04:15 +02:00
Tomeu Vizoso
865c234a1e
Revert "Avoid access to private member."
...
This reverts commit 8301b9269a
.
2008-09-10 17:54:45 +02:00
Simon Schampijer
2e41124c87
Remove "dynamic" font height computation #8392 (marco)
2008-09-10 12:36:27 +02:00
Simon Schampijer
1d29440bfd
bundlebuilder: fix the release command
2008-09-09 17:41:42 +02:00
Marco Pesenti Gritti
866f26aced
Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar-toolkit
2008-09-08 09:13:33 +02:00
Marco Pesenti Gritti
3f78abb8c2
Keep compatibility with the private shared_activity
2008-09-08 01:30:20 +02:00
Marco Pesenti Gritti
3d9f3eca67
Disable the few remaining pylint messages
2008-09-07 23:57:27 +02:00
Marco Pesenti Gritti
b307237dbf
Make shared_activity public.
2008-09-07 22:07:49 +02:00
Marco Pesenti Gritti
8301b9269a
Avoid access to private member.
2008-09-07 22:01:27 +02:00
Marco Pesenti Gritti
549ace8c11
More cleanups to make pylint happy.
2008-09-07 21:51:10 +02:00
Marco Pesenti Gritti
ebcf1f6988
Get rid of the custom _hide/_show and just use the widget
...
methods. Related cleanups.
2008-09-07 21:18:27 +02:00
Simon Schampijer
9041e4db0e
Fix pylint for bundlebuilder
2008-08-31 21:35:37 +02:00
Simon Schampijer
783ec6734c
Merge branch 'master' of ssh+git://dev.laptop.org/git/sugar-toolkit
2008-08-31 21:33:55 +02:00
Simon Schampijer
e7a10be1d4
Do a more "standard" system installation for bundlebuilder
...
- setup.py install takes a --prefix option and no arguments.
- mo files are installed in /usr/share/locale.
- po files are not installed
- 8136 (marco)
2008-08-31 21:33:39 +02:00
Marco Pesenti Gritti
6e503b0a24
Ensure that the widget is fully onscreen before taking a screenshot.
...
Otherwise X emits a BadMatch and gtk kills the process (!).
Fix #8220
2008-08-31 14:40:03 +02:00
Marco Pesenti Gritti
938e2e9648
Do not try to list the mimetypes directory if it does not exist.
...
Fix #7837
2008-08-31 14:36:13 +02:00
Marco Pesenti Gritti
9f88241ff5
Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar-toolkit
2008-08-27 14:54:10 +02:00
Marco Pesenti Gritti
98460fb2e2
Fix pylint complain
2008-08-27 14:53:59 +02:00
Simon Schampijer
dd031b4d83
Set the env var SUGAR_BUNDLE_VERSION #5428 (marco)
2008-08-27 12:00:50 +02:00