Commit Graph

36 Commits

Author SHA1 Message Date
Marco Pesenti Gritti
283b201145 pylint most of sugar.graphics, only palette left 2008-04-19 01:10:48 +02:00
Tomeu Vizoso
ef40555ed3 Add support for accelerators to buttons. 2008-04-01 11:52:11 +02:00
Marco Pesenti Gritti
488402df7d Split sugar-toolkit out of sugar shell. 2008-02-06 10:20:33 +01:00
Marco Pesenti Gritti
6240c1cf6f Cleanup the source structure 2007-10-16 11:04:59 +02:00
Simon Schampijer
53f1265252 Handle the passing of the child of the toolitem to the WidgetInvoker in ToolInvoker, FrameWidgetInvoker 2007-09-18 14:24:16 +02:00
Simon Schampijer
8ae1f9aad8 Fix that several palettes are not hooked up to the same button #3293 2007-09-17 23:42:17 +02:00
Marco Pesenti Gritti
8712ab6b58 Add a ToolInvoker which position the palette depending
on the toolbar orientation. Make all tool items use it.
2007-09-01 12:12:32 +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
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
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
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
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
Eduardo Silva
c7d730e1ac Hide palettes on iconbutton/toolbutton clicked 2007-07-08 10:29:43 -04:00
Tomeu Vizoso
3ca87cd46d Some palette improvements and add palette support to CanvasIcon. 2007-07-01 11:05:14 +02:00
Tomeu Vizoso
4f748dba9b Added some methods to Palette. 2007-06-26 18:19:26 +02:00
Marco Pesenti Gritti
3eaeebc60e Lots of palette refactoring. 2007-06-26 14:55:16 +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
6d8b196abe Remove is_tooltip property 2007-06-25 11:41:33 +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
Eduardo Silva
9283a5cc80 Palette: widget and canvas invoker support 2007-06-19 16:02:25 -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
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
Marco Pesenti Gritti
fc53bf8667 Support icons inside the activity 2007-05-31 11:30:16 +02:00
Eduardo Silva
dd00dda41f Palette fixes 2007-05-30 13:29:29 -04:00
Eduardo Silva
b1ed24498c Palette: event improves 2007-05-29 12:27:54 -04:00
Eduardo Silva
d2aaebac38 Palette updates 2007-05-28 01:05:31 -04:00
Marco Pesenti Gritti
b476b13673 Add a set_named_icon method 2007-05-01 11:28:06 +02:00
Marco Pesenti Gritti
b8e96d08ae Adjust named icons terminology a bit 2007-05-01 01:03:16 +02:00
Marco Pesenti Gritti
2321c9d5b4 Icon widget 2007-04-30 13:42:45 +02:00
Marco Pesenti Gritti
e49146752f More work on the new graphics API. 2007-04-26 11:31:41 +02:00