Commit Graph

914 Commits

Author SHA1 Message Date
Marco Pesenti Gritti
c4435397fc Remove bundle specific stuff from env.
Move get_bundle_path to activity.
2007-02-22 15:55:07 +01:00
Marco Pesenti Gritti
02f375b710 Add a class attribute as per the updated spec.
Cleanups.
2007-02-22 15:46:13 +01:00
Marco Pesenti Gritti
3742219d6c Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar 2007-02-22 14:12:09 +01:00
Marco Pesenti Gritti
995c59cb3e Make sugar-activity-factory just a wrapper. 2007-02-22 14:11:50 +01:00
Tomeu Vizoso
2f4822f1cd Make OptionMenu use the new Menu and MenuItem classes. 2007-02-22 12:34:38 +01:00
Marco Pesenti Gritti
1b5ac988d7 Put exec back, I forgot it was used by the camera.
Helper method to create an activity with an uri.
2007-02-22 01:23:58 +01:00
Marco Pesenti Gritti
0b6b6cd6ac Cleanup the Activity API, code needs more love. 2007-02-22 00:57:49 +01:00
Marco Pesenti Gritti
0d7bdeb20a Improve handle marshalling. Add an uri to the handle. 2007-02-22 00:41:26 +01:00
Marco Pesenti Gritti
0556d5f51f Fix caps 2007-02-22 00:14:00 +01:00
Marco Pesenti Gritti
5cf2b49cc1 Add an handle argument to the factory and to the activity constructor. 2007-02-22 00:07:08 +01:00
Tomeu Vizoso
d4639a1764 Use hippo.CanvasContext.translate_to_screen() for positioning popups. 2007-02-21 21:29:08 +01:00
Tomeu Vizoso
c9af045e43 Removed MenuIcon. 2007-02-21 21:15:08 +01:00
Tomeu Vizoso
b452b7d718 Make ClipboardIcon use the new Menu. 2007-02-21 21:12:27 +01:00
Marco Pesenti Gritti
9ba487fa1f Generate the id in ActivityFactory. I want it to be easy to
run activities without using the shell. Some regression in
the debug messages, which I'll fix as part of further
refactoring.
2007-02-21 20:56:14 +01:00
Marco Pesenti Gritti
ef3f861954 Fix caps 2007-02-21 20:20:36 +01:00
Marco Pesenti Gritti
70da5fa7bd More cleanups 2007-02-21 20:15:39 +01:00
Marco Pesenti Gritti
3fa653ed63 Split out Activity client/server 2007-02-21 19:39:11 +01:00
Marco Pesenti Gritti
3d3c730f22 Rename the class 2007-02-21 18:09:02 +01:00
Marco Pesenti Gritti
2627f7ff93 Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar 2007-02-21 18:06:52 +01:00
Marco Pesenti Gritti
11264b48b2 Split factory client and server 2007-02-21 18:06:39 +01:00
Tomeu Vizoso
7be3333671 Make BuddyIcon and BuddyMenu use the new Menu. 2007-02-21 17:55:44 +01:00
Marco Pesenti Gritti
3fbc00f74a Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar 2007-02-21 17:54:01 +01:00
Marco Pesenti Gritti
7db372cc1c Make bundle registry a singleton. Get the object path from the registry. 2007-02-21 17:53:44 +01:00
Marco Pesenti Gritti
f5b13b716e Do not expose the service names from Activity.
This create quite a bit of duplication, but I have to start somewhere cleaning this mess :/
2007-02-21 17:28:49 +01:00
Tomeu Vizoso
3ce2a67304 Refactored Menu out of Popup. 2007-02-21 17:05:41 +01:00
Tomeu Vizoso
c05b179675 Fix wrong import. 2007-02-21 15:45:19 +01:00
Tomeu Vizoso
00db5e15a5 Move popup activation logic from IconButton to CanvasIcon. 2007-02-21 14:13:52 +01:00
Tomeu Vizoso
c58b6c5587 Make IconButton inherit from Button instead of containing it. 2007-02-21 13:51:44 +01:00
Tomeu Vizoso
500f979302 Renamed Button to IconButton. 2007-02-21 13:01:20 +01:00
Tomeu Vizoso
abff0a8cec Throw NotImplementedError in abstract method. 2007-02-21 12:02:57 +01:00
Tomeu Vizoso
111da5911a Allow for having the popup positioning logic in PopupContext. 2007-02-21 11:42:47 +01:00
Tomeu Vizoso
bbfe539429 Renamed Rollover to Popup. 2007-02-21 10:16:03 +01:00
Marco Pesenti Gritti
affba784cf Add missing files 2007-02-20 22:34:36 +01:00
Marco Pesenti Gritti
0ccaf0dac8 Remove the style stuff 2007-02-20 22:15:31 +01:00
Tomeu Vizoso
f3cf928f31 Added Rollover control. 2007-02-20 16:38:25 +01:00
Marco Pesenti Gritti
7e96b1afb7 Get rid of the old grid. Never use absolute positioning. 2007-02-20 16:23:49 +01:00
Marco Pesenti Gritti
3de915db96 Completely drop stylesheets. Move some of it inside the nm service, don't want to touch that code because it will be rewritten. 2007-02-20 15:10:18 +01:00
Marco Pesenti Gritti
ee66b2237d More work to get rid of stylesheets, some regressions. 2007-02-20 14:57:50 +01:00
Marco Pesenti Gritti
b44715cf08 Remove deprecated style stuff 2007-02-20 14:28:49 +01:00
Marco Pesenti Gritti
c9b103dfef Refactor button a bit to support different sizes. Use it for the overlaybox. 2007-02-16 15:24:02 +01:00
Tomeu Vizoso
6ee8067b06 Temporary fix until the next hippo-canvas. 2007-02-15 20:32:25 +01:00
Tomeu Vizoso
28f10bf142 OptionMenu fixes and API updates. 2007-02-15 19:18:15 +01:00
Marco Pesenti Gritti
fa4c775bc9 Add icon sizes 2007-02-15 19:03:24 +01:00
Marco Pesenti Gritti
67c9268a75 Take in account screen size 2007-02-15 18:55:32 +01:00
Marco Pesenti Gritti
2e8bd12f8b Rework color and fonts to be more pytonish. Add units conversions. 2007-02-15 18:48:58 +01:00
Tomeu Vizoso
32c89a1fcb New widget OptionMenu. 2007-02-15 18:23:52 +01:00
Marco Pesenti Gritti
e08ad4baf5 Add some infrastructure for font sizes. 2007-02-15 15:09:38 +01:00
Marco Pesenti Gritti
bcdff5ddd3 Move Color inside style 2007-02-14 16:20:00 +01:00
Tomeu Vizoso
b4a461605d Label fixes. 2007-02-13 18:09:45 +01:00
Tomeu Vizoso
b48c5c0beb Fix Entry. 2007-02-13 17:08:27 +01:00
Marco Pesenti Gritti
bf29a98b82 Actually commit the file 2007-02-13 15:54:24 +01:00
Marco Pesenti Gritti
64b92c4398 Simple date object to handle string conversions in a UI friendly way. 2007-02-13 15:51:08 +01:00
Marco Pesenti Gritti
8f3fb612fd Reenable the journal. Add desktop background color. 2007-02-13 15:02:39 +01:00
Tomeu Vizoso
63c5bd5dbd Allow for subclasses of Entry to override the base gtk.Entry. 2007-02-12 23:45:46 +01:00
Tomeu Vizoso
f4a6eb4453 Refactor Frame, create RoundBox, some Entry fixes and new Label control. 2007-02-12 20:37:20 +01:00
Tomeu Vizoso
5aa820d72f And more text entry stuff. 2007-02-10 17:42:11 +01:00
Tomeu Vizoso
105c66f25b More text entry stuff. 2007-02-09 17:34:08 +01:00
Tomeu Vizoso
6115b8af10 Added text entry control. 2007-02-09 14:47:11 +01:00
Marco Pesenti Gritti
39678b8bb8 Patch by Owen Williams to accept custom MANIFEST filename. 2007-02-08 22:27:03 +01:00
Marco Pesenti Gritti
f6e1df09f5 Refactor a bit the color stuff. Python doesn't seem to like initializing class members with an instance of the class itself. Initial frame control implementation. 2007-02-08 16:28:05 +01:00
Tomeu Vizoso
7e324af179 Added toolbar and button controls. 2007-02-07 18:26:39 +01:00
Marco Pesenti Gritti
5d57b261ee Add a color class, not used yet 2007-02-07 17:34:29 +01:00
Marco Pesenti Gritti
c44084df09 Make the icon colors list private 2007-02-07 16:55:22 +01:00
Marco Pesenti Gritti
292c648612 Use MANIFEST instead of MANIFEST-OLPC.
Package activity/ and setup.py stuff by default.
2007-02-07 11:33:24 +01:00
Dan Williams
c07dcbb28b Fix the fix for python 2.5 2007-02-03 14:41:31 -05:00
Dan Williams
63b2c74f90 Fix for python 2.5 2007-02-03 14:40:31 -05:00
Tomeu Vizoso
9b6d7c6292 Simple fix for getting the activities dir. 2007-02-03 11:10:49 +01:00
Tomeu Vizoso
4e267c18bf Improved connection to clipboard service. 2007-02-01 20:21:56 +01:00
Marco Pesenti Gritti
6527077928 Do not look in the icon theme for activity icons 2007-01-31 15:00:13 -05:00
Marco Pesenti Gritti
c1c5a78ca8 Try harder to support wide screen 2007-01-31 11:49:56 -05:00
Marco Pesenti Gritti
fbdc1579f4 Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar 2007-01-27 14:31:38 +01:00
Marco Pesenti Gritti
204aac8658 Drop Xnest support. Start fullscreen if widht <= 900. 2007-01-27 14:31:13 +01:00
Tomeu Vizoso
9d13a9836d Added new tool sugar-install-bundle. 2007-01-27 12:54:56 +01:00
Marco Pesenti Gritti
eeaf517049 We was no more scaling icons depending on screen resolution, fix it 2007-01-27 02:45:09 +01:00
Marco Pesenti Gritti
cdf46c52af Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar
Conflicts:

	sugar/graphics/canvasicon.py
2007-01-27 01:39:22 +01:00
Marco Pesenti Gritti
fd40c138c6 Rework icon sizing (unfinished, but more or less functional) 2007-01-27 01:36:31 +01:00
Dan Williams
6930a8c11a Correctly set height/width the right way 2007-01-26 18:27:59 -05:00
Dan Williams
759c477e1f Revert "Set width/height the right way"
This reverts commit 0eaa29ee9d.
2007-01-26 11:28:45 -05:00
Dan Williams
0eaa29ee9d Set width/height the right way 2007-01-26 09:21:56 -05:00
Dan Williams
9faf8bedd7 Fix GlibXMLRPCServer for Python 2.5 2007-01-24 14:24:55 -05:00
Marco Pesenti Gritti
4cdf88f31d Do not hardcode /usr/bin/python 2007-01-20 13:38:58 +01:00
Marco Pesenti Gritti
6de66d38ae Get rid of obsolete var 2007-01-19 16:04:48 +01:00
Marco Pesenti Gritti
5ca728b1d3 Fix API for hippo-canvas 0.2 2007-01-19 15:47:33 +01:00
Marco Pesenti Gritti
0584ac7529 Use fullscreen if the screen is not big enough to do a 1200x900 window.
The logic might need tweaking.
2007-01-16 01:21:15 +01:00
Marco Pesenti Gritti
8ff9d66f64 Fix wrong method signatures 2007-01-16 00:33:04 +01:00
Dan Williams
9c75c80d7f Don't clear the current buffer on cleanup 2007-01-15 09:53:41 -05:00
Dan Williams
8ca1e36b7f Optionally cache rendered icon surfaces 2007-01-14 18:20:43 -05:00
Dan Williams
ff2776ef25 Use themed stock-missing 2007-01-14 14:08:24 -05:00
Dan Williams
185b14130b Optimize the CanvasIcon cache
- Cache all icons, not just themed ones
- Clear icons from the cache if it gets too big
2007-01-14 13:59:11 -05:00
Marco Pesenti Gritti
4c07e090fa Get the icon from activity not root 2007-01-12 21:48:06 +01:00
Marco Pesenti Gritti
6971ddb9a4 Support for activity icons inside the bundle.
Patch by Gonzalo Odiard <godiard@gmail.com>
Modified by me to allow icon theme to override the bundle one.
2007-01-12 21:35:53 +01:00
Tomeu Vizoso
334be3331b Some more usability fixes for the clipboard. 2007-01-11 23:57:06 +01:00
Marco Pesenti Gritti
297381cad7 Basic implementation of the shutdown graphics 2007-01-11 11:20:08 +01:00
Dan Williams
6b67c410e0 Delete old surfaces when no longer used 2007-01-08 17:12:20 -05:00
Tomeu Vizoso
1ee6b7faf0 Some clipboard fixes. 2007-01-07 23:38:33 +01:00
Dan Williams
fb716ae046 Make activity launching asynchronous
The ActivityFactory create() method now returns a handler GObject,
which callers may attach signals to to receive success and error
signals from the result of the activity launch request.
2007-01-07 00:04:30 -05:00
Dan Williams
b27257fadb Make shell responsible for activity ID generation
Enables tracking of activity launch throughout the whole process, so that
the shell can be aware of the activity ID from the moment the activity
is started by the shell, until the activity becomes active.  Previously,
the activity itself generated its own ID and told the shell what it was.
2007-01-06 16:29:13 -05:00
Tomeu Vizoso
f50d9f5f9a Added icon, title and preview for clipboard objects. Also allow for opening docs and rtfs from the web. 2007-01-05 21:13:46 +01:00
Marco Pesenti Gritti
e8b8e0e367 Do not try to connect to notify::title, for some reason it breaks the browser.
It was only used for the journal anyway.
2007-01-05 11:18:24 +01:00
Marco Pesenti Gritti
53b14ad081 Comment out the journal stuff for now. 2007-01-05 10:58:29 +01:00