Commit Graph

488 Commits

Author SHA1 Message Date
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
Simon Schampijer
eb328e605c removed print in palette.py 2007-08-22 15:03:16 +02: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
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
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
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
Tomeu Vizoso
00b7013de1 Added an entry that can have icons inside: IconEntry. From libsexy. 2007-08-20 13:03:17 +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
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
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
4f1986e8a4 Let the invoker deal with popup/popdown redraw. 2007-08-15 21:18:58 +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
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
Dan Winship
985fe6ef35 Make activity icons in frame outline-only. #2668 2007-08-08 18:19:05 -04: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
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
Marco Pesenti Gritti
2ae2279d94 Do not use units 2007-07-31 15:04:51 +02:00
Marco Pesenti Gritti
f2eca57d13 More units cleanups 2007-07-31 15:02:50 +02:00
Marco Pesenti Gritti
d8faf0ba04 Get rid of some of the obsolete units usage. 2007-07-31 14:56:05 +02:00
Marco Pesenti Gritti
cca69e7012 Remove obsolete sugar.graphics.color. 2007-07-31 14:05:14 +02:00
Marco Pesenti Gritti
72857326d2 Fix centering of items in the spread box 2007-07-30 14:22:45 +02:00
Tomeu Vizoso
099cd4d1b4 Allow passing a complete file path when creating a sugar.graphics.Icon 2007-07-28 20:56:02 +02:00
Marco Pesenti Gritti
285099fe08 Do not import _sugarext inside graphics init 2007-07-27 20:44:55 +02:00
Marco Pesenti Gritti
b23b63cdd5 Split the UI part of sugarext out to his own module to avoid
dragging gtk inside services.
2007-07-27 20:15:31 +02:00
Dan Winship
b9d7d00985 Merge branch 'master' of git+ssh://danw@dev.laptop.org/git/sugar 2007-07-27 09:44:33 -04:00
Tomeu Vizoso
a0bc70fb2f #2511 Fix journal entries background in the object chooser. 2007-07-26 21:22:36 +02:00
Dan Winship
1e5cc3f347 x86_64 fix: don't use sys.maxint (which is really maxlong) for int gproperties 2007-07-26 13:27:26 -04:00
Marco Pesenti Gritti
01fbe53175 Don't follow the cursor when expanding to secondary palette. 2007-07-25 16:01:07 +02:00
Marco Pesenti Gritti
f23d9e8f0d Reposition palette on secondary state. 2007-07-24 16:21:21 +02:00
Marco Pesenti Gritti
445b1dd413 Keep primary/secondary width the same.
Use full (secondary) request to check in-screen.
2007-07-24 16:15:13 +02:00
Marco Pesenti Gritti
452f01d2db Refactor to move primary/secondary state handling inside Palette. 2007-07-24 15:53:35 +02:00
Tomeu Vizoso
eeb1f2e66f #2364: Fix uploads. 2007-07-24 11:55:46 +02:00
Marco Pesenti Gritti
1b292a7514 Combo for shared/private in the activity menu. 2007-07-24 11:29:14 +02:00
Tomeu Vizoso
58d57822b8 Don't pass the weight instead of the flags. 2007-07-23 23:27:11 +02:00
Marco Pesenti Gritti
aee3330be4 Make combobox icons bigger when there is no text 2007-07-23 13:15:02 +02:00
Tomeu Vizoso
f6f3f2b520 Update forgotten property limit. 2007-07-19 15:38:50 +02:00
Marco Pesenti Gritti
6b57baa075 Rework palette positioning. Cleanup and get at cursor
positioning actually right.
2007-07-18 20:15:54 +02:00
Marco Pesenti Gritti
daa95aadd7 Place palettes at cursor for free views. 2007-07-18 16:59:47 +02:00
Marco Pesenti Gritti
5f38102420 Add some style properties 2007-07-18 14:55:26 +02:00
Tomeu Vizoso
614d9336cc #2149, #2150: fixes for the clipboard palette. 2007-07-14 13:11:59 +02:00
Marco Pesenti Gritti
984c4a2126 Actually commit CanvasButton 2007-07-14 11:23:16 +02:00
Marco Pesenti Gritti
fcb888b74c Arrow icons in the intro screen buttons. 2007-07-14 10:29:45 +02:00
Marco Pesenti Gritti
b01dbc5e75 Integrate new colors from Walter.
Add a little parser to xocolor.py.
2007-07-11 14:15:58 +02:00
Marco Pesenti Gritti
d59cd5af83 Fix intro colors 2007-07-11 12:35:13 +02:00
Marco Pesenti Gritti
9dab5fffaf First go at the new intro screen, work in progress. 2007-07-11 11:45:27 +02:00
Marco Pesenti Gritti
1daa532625 Fix font size on the XO 2007-07-10 19:35:18 +02:00
Eduardo Silva
aa6a024368 Move code to use style instead font.py (removed) 2007-07-09 10:09:24 -04:00
Marco Pesenti Gritti
40ed24f0fe Fix tab label padding 2007-07-09 15:09:59 +02:00
Marco Pesenti Gritti
117e02601d Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar 2007-07-09 14:37:46 +02:00
Marco Pesenti Gritti
e88dae8723 Start the new approach to style and sizing.
Fix tabs sizing.
2007-07-09 14:37:21 +02:00
Tomeu Vizoso
a4f4d969fe Popdown when the toplevel of the parent item loses focus. 2007-07-09 14:26:41 +02:00
Eduardo Silva
c7d730e1ac Hide palettes on iconbutton/toolbutton clicked 2007-07-08 10:29:43 -04:00
Eduardo Silva
ec929eb0ad New frameinvoker 2007-07-06 10:51:18 -04:00
Marco Pesenti Gritti
739dbafa97 Improve tooltips sizing 2007-07-06 15:21:50 +02:00
Marco Pesenti Gritti
943214dee3 Actually add palette group 2007-07-06 14:58:28 +02:00
Marco Pesenti Gritti
7468faa840 Implement palette groups. Use them to not popdown frame when hover a palette. 2007-07-06 14:36:59 +02:00
Marco Pesenti Gritti
de8b3b4c01 Use box_child.item now that hippo support it 2007-07-06 02:19:13 +02:00
Marco Pesenti Gritti
f1ecb99207 Complete transition to new spread layout. 2007-07-06 00:46:12 +02:00
Marco Pesenti Gritti
cc11d5ebd5 Implement items shifting, not quite working yet. 2007-07-05 23:50:22 +02:00
Marco Pesenti Gritti
483cd91645 Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar 2007-07-05 22:46:13 +02:00
Marco Pesenti Gritti
bcb68e8e0e Add collisions detection 2007-07-05 22:45:58 +02:00
Dan Williams
4005151005 Add badges to CanvasIcon 2007-07-05 16:02:06 -04:00
Marco Pesenti Gritti
290a053892 Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar 2007-07-05 21:24:50 +02:00
Marco Pesenti Gritti
61b8811a42 Switch to the new layout manager for the mesh view 2007-07-05 21:22:37 +02:00
Eduardo Silva
90b469e6db Add icon to buddy menu items 2007-07-05 10:56:17 -04:00
Eduardo Silva
f614131ad7 New graphics.menuitem.py file/class 2007-07-05 10:28:52 -04:00
Tomeu Vizoso
5e14781ad7 Hide the active palette if another pops up. 2007-07-05 14:16:36 +02:00
Marco Pesenti Gritti
20ea0d7bcc Add a spread layout manager. Work in progress. 2007-07-05 13:33:29 +02:00
Marco Pesenti Gritti
91654729bf Refactor the snowflake layout to use the new hippo layout managers.
Cleanup the logic.
Better test.
Make it internal.
2007-07-05 11:22:09 +02:00
Marco Pesenti Gritti
3b3a69161e Tweak some colors 2007-07-04 13:52:12 +02:00
Tomeu Vizoso
49b94a7f28 Revert "Hide active palette if zoom level changes."
Pushed by mistake.

This reverts commit 70e6d08f8d.
2007-07-04 12:49:21 +02:00
Tomeu Vizoso
70e6d08f8d Hide active palette if zoom level changes. 2007-07-04 12:33:12 +02:00
Tomeu Vizoso
4df052e5de Return None when no element is active and use theme: for marking icons from the theme. 2007-07-03 17:08:36 +02:00
Tomeu Vizoso
2471a55e7f Reposition palette after expanding it. 2007-07-02 12:39:16 +02:00
Tomeu Vizoso
bd27488f0d Implement secondary state of palettes. 2007-07-02 12:05:42 +02:00
Tomeu Vizoso
29ccfcf9b3 Remove old popup classes. 2007-07-01 13:05:06 +02:00
Tomeu Vizoso
aa5d6af260 Two more small palette fixes. 2007-07-01 12:31:23 +02:00
Tomeu Vizoso
92ec6f72d8 Restore CanvasIcon prelighting. 2007-07-01 11:33:12 +02:00
Tomeu Vizoso
84c94ecabe Restrict palette positioning to screen height/width - 1 grid cell. 2007-07-01 11:25:35 +02:00
Tomeu Vizoso
3ca87cd46d Some palette improvements and add palette support to CanvasIcon. 2007-07-01 11:05:14 +02:00
Marco Pesenti Gritti
1d4112a882 Set glib program name and application name.
Better way of importing ltihooks.
Several cleanups.
2007-06-29 22:11:28 +02:00
Marco Pesenti Gritti
f825c108da Use size request to position the palette. 2007-06-29 14:56:12 +02:00
Marco Pesenti Gritti
893ffe92da Refactor palette positioning API and implementation 2007-06-29 14:45:04 +02:00
Marco Pesenti Gritti
51c66de817 Do not allow to close the journal 2007-06-28 12:03:12 +02:00
Marco Pesenti Gritti
faed9162ab Ooops do not start the popup animation on constructor. 2007-06-28 11:54:12 +02:00
Tomeu Vizoso
381df08442 Added radiotoolbutton.py. 2007-06-27 14:48:03 +02:00
Marco Pesenti Gritti
69ba74ddc2 Cleanup 2007-06-27 12:32:03 +02:00
Marco Pesenti Gritti
db99620d93 Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar 2007-06-27 11:42:14 +02:00
Marco Pesenti Gritti
2507104875 Fix traceback 2007-06-27 11:41:41 +02:00
Tomeu Vizoso
5771482281 Added palette support to toggletoolbutton.py. 2007-06-27 11:36:28 +02:00
Tomeu Vizoso
4f748dba9b Added some methods to Palette. 2007-06-26 18:19:26 +02:00
Marco Pesenti Gritti
3b9e2c1e7e Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar
Conflicts:

	sugar/graphics/palette.py
2007-06-26 14:55:58 +02:00
Marco Pesenti Gritti
3eaeebc60e Lots of palette refactoring. 2007-06-26 14:55:16 +02:00
Eduardo Silva
3ba64aa200 Palette: realize() 2007-06-26 08:28:31 -04:00
Tomeu Vizoso
0f49e6d7a8 Add current-toolbar-changed signal to Toolbox. 2007-06-26 12:28:42 +02:00
Tomeu Vizoso
888148c6e6 Allow for providing a ComboBox when instantiating a ToolComboBox. 2007-06-25 16:32:38 +02:00
Tomeu Vizoso
4b3c374455 ComboBox: allow for values other than int and for using absolute paths in icon_names. 2007-06-25 15:33:10 +02:00
Marco Pesenti Gritti
e0793ef199 Heavy refactoring of palette activation. Not fully
implemented yet.
2007-06-25 14:31:43 +02:00
Marco Pesenti Gritti
400cbc29e5 More cleanups 2007-06-25 11:55:36 +02:00
Marco Pesenti Gritti
6d8b196abe Remove is_tooltip property 2007-06-25 11:41:33 +02:00
Marco Pesenti Gritti
d92bb7a4ef Some palette code cleanups. 2007-06-25 11:39:51 +02:00
Marco Pesenti Gritti
2fcca4d656 Add a bunch of copyrights 2007-06-24 14:52:46 +02:00
Marco Pesenti Gritti
99e8077f59 Implement fix-copyright and fix some of them 2007-06-24 14:43:48 +02:00
Tomeu Vizoso
e894c8a2e4 Added a basic version of the journal object chooser. 2007-06-22 21:47:30 +02:00
Marco Pesenti Gritti
9a77a6e251 Kill old hippo canvas toolbar impl 2007-06-21 22:53:26 +02:00
Marco Pesenti Gritti
3892764634 Add a CanvasEntry which allows to set the background color. 2007-06-21 13:45:35 +02:00
Eduardo Silva
5616aface3 Toolbutton: don't try to show the palette when it doesn't exist 2007-06-20 20:33:09 -04:00
Marco Pesenti Gritti
61314c9705 Don't make all .py executable please... 2007-06-20 12:31:54 +02:00
Eduardo Silva
9283a5cc80 Palette: widget and canvas invoker support 2007-06-19 16:02:25 -04:00
Tomeu Vizoso
f0e18ba785 Support for previews in the journal. 2007-06-15 18:03:17 +02:00
Eduardo Silva
a3fb02bc95 moving graphics/notebook.py to LGPL 2007-06-14 16:04:55 -04:00
Eduardo Silva
72d81af716 moving graphics/palette.py to LGPL 2007-06-14 16:04:25 -04:00
Tomeu Vizoso
8e9c0b640b Change from GPL to LGPL. 2007-06-13 12:21:49 +02:00
Marco Pesenti Gritti
5cf263537f Put some border around the combo 2007-06-13 00:43:30 +02:00
Marco Pesenti Gritti
4e8bacc009 Really add it 2007-06-13 00:36:35 +02:00
Marco Pesenti Gritti
9645d31f1b Add a toolcombobox 2007-06-13 00:35:53 +02:00
Eduardo Silva
fde3159002 Palette positioning/closing fixes 2007-06-06 17:21:33 -04:00
Eduardo Silva
dee7537462 Palette: speed up 2007-06-06 00:51:01 -04:00
Eduardo Silva
f79d5a63db Palette: tooltip fix 2007-06-05 22:43:42 -04:00
Marc Maurer
88011ed22d Add set_current_toolbar 2007-06-04 23:53:40 +02:00
Eduardo Silva
aab18a866d Palette: Tooltip support 2007-06-02 00:33:41 -04:00
Marco Pesenti Gritti
e707f1b1cc Hrm how my icon name changes did get reverted... 2007-06-01 21:26:18 +02:00
Eduardo Silva
0014ea0da0 Palette: Automatic positioning 2007-06-01 00:08:24 -04:00