Commit Graph

1645 Commits

Author SHA1 Message Date
Dan Williams
2751714ca7 Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar 2007-08-31 14:32:37 -04:00
Dan Williams
8c411ceb70 Return 404 error when path can't be translated 2007-08-31 14:32:33 -04:00
Tomeu Vizoso
0e60f07dd2 Save the temp file for the icon with the svg suffix so Icon will recognize it as a svg. 2007-08-31 19:57:45 +02:00
Tomeu Vizoso
ad1818f985 #3063: Make the 'Keep' button in the activity toolbar create a copy of the activity in the journal. Add a copy() method for activities to use. 2007-08-31 15:43:38 +02:00
Marco Pesenti Gritti
9e5d3c1117 Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar 2007-08-31 11:38:09 +02:00
Marco Pesenti Gritti
560a914997 Make Activity update the presence service activity
name and listen to the name changes in the mesh view.
2007-08-31 11:37:42 +02:00
Tomeu Vizoso
01f774edbc Allow setting xo-color to None. 2007-08-31 11:26:28 +02:00
Simon McVittie
93dd18ff0a Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar 2007-08-30 15:38:05 +01:00
Simon McVittie
f1024c3b0a Support the newly extended ActivityInvitation signal 2007-08-30 15:00:12 +01:00
Simon Schampijer
142ce1cb11 Display the rollover at 0,0 when context is empty 2007-08-30 15:10:50 +02:00
Marco Pesenti Gritti
e455611525 with the native factory which doesn't have introspection. 2007-08-30 14:42:12 +02:00
Marco Pesenti Gritti
c082757de6 Revert "Make sure the handle dict values are string. Looks"
This reverts commit 0e45b8fcf1.
2007-08-30 14:36:20 +02:00
Marco Pesenti Gritti
01d368a7a4 Implement VTray. A bit of refactoring to share more code. 2007-08-30 14:29:52 +02:00
Simon McVittie
5bfd70baca sugar.presence.presenceservice: Don't call now-nonexistent method InviteActivity - instead, use the new property-setting API to set the 'private' property suitably 2007-08-30 12:17:33 +01:00
Simon McVittie
55759d5608 Add support for mutable activity properties and the beginnings of support for invitations 2007-08-30 12:14:35 +01:00
Simon McVittie
02a727198f sugar.activity.activity.Activity.share: Add comment indicating how to change activity privacy after creation 2007-08-30 12:13:31 +01:00
Simon McVittie
05d33d278d sugar.presence.buddy: Remove various hacks regarding byte arrays; use dbus-python's much simpler API instead 2007-08-30 12:00:56 +01:00
Marco Pesenti Gritti
23ad88db0c Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar 2007-08-29 20:35:30 +02:00
Marco Pesenti Gritti
7fefc55133 Cleanup and fix bugs in palette positioning (again) 2007-08-29 20:09:19 +02:00
Tomeu Vizoso
95c5b283c7 Add datastore.complete_indexing() func. 2007-08-29 19:56:43 +02:00
Marco Pesenti Gritti
72b3a3e2e2 Cleanup a bit the positioning logic. Drop specific
positioning, we can readd it later if it proves to
be necessary.
2007-08-29 18:26:58 +02:00
Marco Pesenti Gritti
46b3b96e96 Make remove_item take an item instead of an index. 2007-08-29 14:08:12 +02:00
Marco Pesenti Gritti
710f3eba00 Tray size allocation fixes. 2007-08-29 14:04:46 +02:00
Marco Pesenti Gritti
0512ae5853 Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar 2007-08-29 12:47:27 +02:00
Marco Pesenti Gritti
e700ed1e2d Expose and size allocation fixes. 2007-08-29 11:34:56 +02:00
Marco Pesenti Gritti
e25847c375 Sync gtk theme values and style.py. Add a comment at the top
of style.py about the reference zoom value.
2007-08-29 10:36:31 +02:00
Simon Schampijer
55d1acde0e get_sensitive() does not exist for a toolbar. 2007-08-29 00:40:05 +02:00
Dan Williams
8b326fda61 Re-share an activity when it gets launched from the journal if it was shared before 2007-08-28 17:07:57 -04:00
Dan Williams
f0e773db38 Don't traceback when writing zero-length message 2007-08-28 14:54:54 -04:00
Guillaume Desmottes
232ae8d082 Update to new tubes API 2007-08-28 20:39:10 +02:00
Simon Schampijer
c30bb01b0e Usage of the tray widget to display activity icons
ActivitiesBox patch for ticket #2713.
2007-08-28 14:15:51 +02:00
John (J5) Palmieri
2296fa4a6e Fix typo s/get_buddies_async/get_activities_async 2007-08-27 16:46:38 -04:00
Marco Pesenti Gritti
3d02690e23 Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar 2007-08-27 22:12:31 +02:00
Marco Pesenti Gritti
c742cff64d Show arrows only when the icons does not fit. 2007-08-27 22:10:18 +02:00
John (J5) Palmieri
f5f95f4d7b Merge branch 'master' of git+ssh://j5@dev.laptop.org/git/sugar 2007-08-27 15:51:55 -04:00
John (J5) Palmieri
c06d639487 Make D-Bus calls async on startup 2007-08-27 15:47:58 -04:00
Marco Pesenti Gritti
7fcc23b4c8 Very first go at the tray widget, based on Eduardo and Simon work. 2007-08-27 21:28:20 +02:00
Tomeu Vizoso
1430fdc24f Add a copy method to the datastore wrapper. 2007-08-27 19:44:49 +02:00
Marco Pesenti Gritti
294a5231b9 2647, if security is enabled let rainbow launch activities.
Also notify rainbow when active activity changes.
Patch by Ashsong, had to merge it manually.
2007-08-27 18:25:45 +02:00
Tomeu Vizoso
7d0aedeb36 Fix typo. 2007-08-27 14:31:38 +02:00
Tomeu Vizoso
59ee222f96 Fix comboboxes 2007-08-27 13:17:50 +02:00
Tomeu Vizoso
b70182bbde Fix typo. 2007-08-27 11:07:46 +02:00
Marco Pesenti Gritti
823918a69b Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar 2007-08-27 00:55:56 +02:00
Marco Pesenti Gritti
60c5e564cc Fix getting pixbuf size, patch by jennjacobsen 2007-08-27 00:43:56 +02:00
Eduardo Silva
8c288d7dee Adapt Button() to new icon API 2007-08-26 16:49:55 -04:00
Tomeu Vizoso
405dafc908 Adapt to changes in the icon API. 2007-08-26 20:44:51 +02:00
Tomeu Vizoso
cf7ff39c5a Allow for None values in fill-color and stroke-color. 2007-08-26 20:21:49 +02:00
Tomeu Vizoso
db02d6b54c Correct latest commit. 2007-08-26 19:23:14 +02:00
Tomeu Vizoso
5b1db87cec Add some warnings to the new icon stuff. 2007-08-26 19:00:08 +02:00
Marco Pesenti Gritti
8ff7bdebb7 Typo 2007-08-26 15:10:43 +02:00
Marco Pesenti Gritti
f1fc80b4a8 Fix icon padding. 2007-08-26 15:01:16 +02:00
Marco Pesenti Gritti
ba4f68ef58 Cache the donut animation. 2007-08-26 14:45:59 +02:00
Marco Pesenti Gritti
7042b4392e Fix CanvasIcon badges 2007-08-26 14:33:16 +02:00
Marco Pesenti Gritti
5f773b21af Remove invalidation logic which is not necessary with the new cache. 2007-08-26 14:30:02 +02:00
Marco Pesenti Gritti
98157bbccb Make CanvasIcon use IconBuffer. Change the API to use
a separate property for icon_name and file_name.
2007-08-26 14:16:09 +02:00
Marco Pesenti Gritti
f44c340b3a Smarter/configurable surface cache in IconBuffer 2007-08-26 12:36:34 +02:00
Marco Pesenti Gritti
a8938ab8ba Add an svg cache for SVGLoader 2007-08-26 12:08:50 +02:00
Marco Pesenti Gritti
65871156f5 Cleanups 2007-08-26 02:59:05 +02:00
Marco Pesenti Gritti
05f2722d90 Get badges positioning right. 2007-08-26 02:24:45 +02:00
Marco Pesenti Gritti
6432dcfb0e More work on IconBuffer badges. 2007-08-26 01:57:48 +02:00
Marco Pesenti Gritti
ae54542524 Add badge support to IconBuffer 2007-08-26 00:26:11 +02:00
Marco Pesenti Gritti
d32dd05569 Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar 2007-08-25 18:27:15 +02:00
Marco Pesenti Gritti
1938fb13f0 Rework the Icon implementation by splitting out
the icon rendering part. The plan is to share this code
with CanvasIcon once it has all the necessary features.

Also cleanup the API by just reusing gtk.Image icon_name
and file properties.
2007-08-25 18:26:59 +02:00
Morgan Collett
fc4e4692d7 Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar 2007-08-25 14:58:09 +01:00
Marco Pesenti Gritti
1cb214bc96 Remove canvasicon module. 2007-08-25 13:18:30 +02:00
Marco Pesenti Gritti
f1d588452e Reorganize canvas items. 2007-08-25 13:15:28 +02:00
John (J5) Palmieri
2cae66b0ea More follow_name_owner_changed optimiztion
* reasoning changed from a FIXME to a NOTE to explain why we need
     to follow_name_owner_changed
2007-08-24 18:25:56 -04:00
Tomeu Vizoso
628fe7b5da Restore Icon's ability to load absolute file paths. 2007-08-24 20:15:30 +02:00
Dan Winship
c25861bd1d remove debugging 2007-08-24 10:26:10 -04:00
Morgan Collett
4cfc941e49 Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar 2007-08-24 15:14:48 +01:00
Dan Winship
1f129e6136 Use icon theme AttachPoints to position badges 2007-08-24 09:06:21 -04:00
Marco Pesenti Gritti
466bc7b300 Remember state when scrubbing 2007-08-24 14:21:07 +02:00
Tomeu Vizoso
d195fccbde Add COLOR_TEXT_FIELD_GREY color. 2007-08-24 11:44:44 +02:00
Marco Pesenti Gritti
6b30262cf7 Redraw the window only if allocation changed. Patch
by benzea, with a little cleanup and comments by me.
2007-08-23 21:17:43 +02:00
Morgan Collett
d2261e4051 Fix sharing publicly 2007-08-23 13:48:16 +01:00
Dan Winship
da6a31aa80 Revert "Notice when (non-sugar) activity factories fail to launch. #1975"
This reverts commit d2aba901c3.

The change made etoys *always* apparently fail to launch; the problem
is with sugar-native-factory, not activityfactory.py
2007-08-22 18:23:20 -04:00
John (J5) Palmieri
0a18473ca7 Speed up startup by another 2 seconds by using follow_name_owner_changes
* this is a side effect of follow_name_owner_changes which removes some
      blocking calls in the __init__ of proxies.  It introduces some semantics
      we might not want (such as following name owner changes) but which
      are fairly beinign
2007-08-22 17:37:33 -04:00
Morgan Collett
d52860a764 Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar 2007-08-22 20:49:52 +01:00
Benjamin Berg
3c99f9f1ea Draw a prelight for toolbuttons from the toolbutton instead of relying on the button. 2007-08-22 20:38:48 +02:00
Morgan Collett
63f987594b Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar 2007-08-22 15:55:16 +01:00
Morgan Collett
52f2bea3ed Use new PresenceService API for sharing by invitation only 2007-08-22 15:54:12 +01:00
Simon Schampijer
eb328e605c removed print in palette.py 2007-08-22 15:03:16 +02:00
Tomeu Vizoso
3084176057 One less _set_palette(). 2007-08-21 20:47:16 +02:00
Eduardo Silva
e04c0af114 Fix #2935: bad method name 2007-08-21 12:35:20 -04:00
Tomeu Vizoso
544a400afc Updated to use application/vnd.olpc-sugar instead of application/vnd.olpc-x-sugar. 2007-08-21 16:59:32 +02:00
Morgan Collett
d09b8d3ea4 Document _share_activity_cb 2007-08-21 12:08:33 +01:00
Morgan Collett
cfb0541249 Clean up leave() and callbacks 2007-08-21 11:39:05 +01:00
Tomeu Vizoso
254433a393 Save the sharing info about the activity to the datastore. 2007-08-21 12:12:13 +02:00
Dan Williams
e83b98a8f6 #2912: Improvements to GlibURLDownloader API 2007-08-20 16:48:28 -04:00
Tomeu Vizoso
8c113d5561 Add xo_color constructor param to RadioToolButton. 2007-08-20 22:48:38 +02:00
Dan Williams
03faa64f82 Add menuitem.py to makefile 2007-08-20 16:41:09 -04:00
Dan Williams
d0caf99277 #2299: Really fix buddy properties coming through as arrays of bytes 2007-08-20 15:56:49 -04:00
John (J5) Palmieri
655d7f4174 Merge branch 'master' of git+ssh://j5@dev.laptop.org/git/sugar 2007-08-20 14:41:03 -04:00
Marco Pesenti Gritti
1a65f81d10 Set the initial palette group to "default" 2007-08-20 20:01:27 +02:00
Marco Pesenti Gritti
3b8f25b7b9 Implement "scrubbing" of palettes based on groups. 2007-08-20 20:01:27 +02:00
Marco Pesenti Gritti
1c06a44a7d Use CamelCase for the activity service methods. 2007-08-20 15:18:46 +02:00
Tomeu Vizoso
00b7013de1 Added an entry that can have icons inside: IconEntry. From libsexy. 2007-08-20 13:03:17 +02:00
Tomeu Vizoso
fff0daf8c4 Improvements in mime handling and added some tests. 2007-08-20 10:50:20 +02:00
Marco Pesenti Gritti
7a64119843 Start playing with unit tests. 2007-08-19 00:24:51 +02:00
Marco Pesenti Gritti
5741d21be9 Rename genmo to genl10n 2007-08-18 12:48:40 +02:00
Marco Pesenti Gritti
db57fc38be Make activity names translatable. 2007-08-18 12:48:40 +02:00
Marco Pesenti Gritti
6a5f389436 Set the icon-set property to avoid resetting the icon_size 2007-08-18 01:04:10 +02:00
John (J5) Palmieri
735b0cf2c8 use numpy to shave 4 seconds off of sugar startup 2007-08-17 17:57:05 -04:00
Marco Pesenti Gritti
07905f0c40 Style nitpick 2007-08-17 19:55:17 +02:00
Marco Pesenti Gritti
34a1c81aa5 Add a scale property to CanvasIcon.
Make Icon use gtk.Image icon-size.
Patch by tannewt with some little tweaks.
2007-08-17 19:53:41 +02:00
Tomeu Vizoso
dfe8ff6806 #2695: Recognize text files as such. 2007-08-16 21:41:42 +02:00
Marco Pesenti Gritti
cace8c0a47 Hide the combo when max_participants == 1 2007-08-16 20:43:05 +02:00
Marco Pesenti Gritti
d33b74469d Add max_participants property. 2007-08-16 17:55:52 +02:00
Marco Pesenti Gritti
f056056691 Patch by Simon to make sugar start when not connected to wireless. 2007-08-16 17:32:29 +02:00
Marco Pesenti Gritti
d0a564e035 Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar 2007-08-16 16:47:15 +02:00
Morgan Collett
1db4cd77d3 Merge branch 'master' of git://dev.laptop.org/sugar 2007-08-16 16:17:23 +01:00
Morgan Collett
dab82f6183 Push tubeconn into sugar.presence 2007-08-16 16:11:42 +01:00
Marco Pesenti Gritti
ba8a731aa1 Add a border to the frame. 2007-08-16 16:46:21 +02:00
Marco Pesenti Gritti
e95e786432 Adapt to icon name changes 2007-08-16 12:51:33 +02:00
Marco Pesenti Gritti
8d9383c48e Move most of the drawing logic inside Palette/Invoker. 2007-08-15 21:53:31 +02:00
Marco Pesenti Gritti
d7d1e172a3 Let the button/theme deal with prelight. I don't think
it fits inside palette drawing.
2007-08-15 21:32:10 +02:00
Marco Pesenti Gritti
3bb86e0cbb Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar 2007-08-15 21:18:58 +02:00
Marco Pesenti Gritti
4f1986e8a4 Let the invoker deal with popup/popdown redraw. 2007-08-15 21:18:58 +02:00
Dan Winship
26c5ad6ad0 Rewrite dbus_helpers to not make a dbus connection on import. #2773 2007-08-15 09:19:40 -04:00
Marco Pesenti Gritti
43fb1627a7 Cleanup 2007-08-15 12:23:57 +02:00
Tomeu Vizoso
c54fb84b28 #2543: Offer multiple activities for opening clipboard objects. 2007-08-15 12:19:29 +02:00
Tomeu Vizoso
040c94d181 Removed debug messages. 2007-08-13 21:14:44 +02:00
Tomeu Vizoso
4c812eb210 Set ACTIVITY_ROOT environment variable. 2007-08-13 21:14:25 +02:00
Marco Pesenti Gritti
be32e7e40d Tweak a color pair as requested by Walter. 2007-08-13 18:02:41 +02:00
Marco Pesenti Gritti
2ae043c1fe Add option to use the same style values as on the XO.
Useful to test/debug size issues, if you have a screen
that can do 1600x1200.
2007-08-13 01:17:37 +02:00
Marco Pesenti Gritti
dcef110223 Embed/unembed the menu on state changes, keeping it around
cause some weird drawing issues.

Redraw on palette size changes (patch by Benzea).
2007-08-11 12:16:49 +02:00
Marco Pesenti Gritti
05b0d212a4 Separate libsugar and libsugarui ld flags to not
link libsugar to gtk.
2007-08-11 01:00:53 +02:00
Benjamin Berg
c571993811 Fixed a typo in the palette gap calculation code. 2007-08-10 23:39:12 +02:00
Benjamin Berg
91d7dbcb08 Ignore grab_notify in the palette menu so that eg. scales work. 2007-08-10 23:21:36 +02:00
Benjamin Berg
476189323d Don't draw the invoker rectangle for tooltips. 2007-08-10 18:52:15 +02:00
Benjamin Berg
6573e8c5e6 Draw an invoker rectangle that looks connected to the main palette.
There is one catch though, the menu placement inside the palette seems broken.
(Probably was already broken before.) Not sure what is going on there.
2007-08-10 18:29:28 +02:00
Tomeu Vizoso
cff8ffc328 Complete move to external bundle registry. 2007-08-09 18:10:16 +02:00
Tomeu Vizoso
f00f3e2f8d Correctly include .mo files in bundles. 2007-08-09 15:26:52 +02:00
Dan Winship
d2aba901c3 Notice when (non-sugar) activity factories fail to launch. #1975
(still need a better shell UI for when this happens)
2007-08-08 18:24:11 -04:00
Dan Winship
985fe6ef35 Make activity icons in frame outline-only. #2668 2007-08-08 18:19:05 -04:00
Tomeu Vizoso
fa8bcd2ba5 Move the activity register to the clipboard service. 2007-08-08 18:08:07 +02:00
Eduardo Silva
bfcab6b0b6 Fix objectchooser, replace frame with canvasroundbox module 2007-08-08 09:31:50 -04:00
Marco Pesenti Gritti
670eb981ac Ignore only INFERIOR enter/leave events. 2007-08-08 14:56:43 +02:00
Marco Pesenti Gritti
1145f0f99c Override menu shell deactivate to go through the palette. 2007-08-08 14:41:30 +02:00
Marco Pesenti Gritti
6ae3846415 Expose palette.action_bar 2007-08-08 13:03:09 +02:00
Marco Pesenti Gritti
6dd6b0275b Expose palette.menu rather than wrapping methods. 2007-08-08 12:56:19 +02:00
Marco Pesenti Gritti
2c0ad08fcf Call embed after the widget hierarchy is setup so that
we get the right toplevel.
2007-08-08 11:53:41 +02:00
Marco Pesenti Gritti
3a33e4cedd Enable focus when there is content. Remove the focus
out check on the invoker toplevel, we will have to do
that differently.
2007-08-08 11:53:41 +02:00
Marco Pesenti Gritti
0b355dcbb9 First go at support of focusable widgets inside the palette.
Not enabled yet because focus confuses our deactivation logic
but it seem to work otherwise.
2007-08-08 03:07:00 +02:00
Eduardo Silva
4aeee4caa9 Icon(): Add scaled icon support (SVG) with editable fill and stroke colors 2007-08-02 07:57:41 -04:00
Tomeu Vizoso
a197097164 Do a dict.copy() so we don't overwrite the original. 2007-08-01 16:31:33 +02:00
Marco Pesenti Gritti
34a4876f93 Remove Frame, rename RoundBox to CanvasRoundBox 2007-07-31 17:08:44 +02:00
Marco Pesenti Gritti
ef74f178be Finally drop obsolete units. 2007-07-31 17:00:06 +02:00
Marco Pesenti Gritti
b3f7e0e632 Move from scaling to sizes in CanvasIcon. 2007-07-31 16:46:06 +02:00
Marco Pesenti Gritti
72d66793a7 Fix all the units except icon scales. 2007-07-31 15:21:09 +02:00