Simon Schampijer
83f76f115a
Use new style for unused variables
2008-04-24 16:55:19 +02:00
Marco Pesenti Gritti
75e636ef06
Work around circular dep between Icon and Palette. I don't
...
like it though, we should get rid of the dep.
Fix palette bug which I introduced with the pylint changes.
2008-04-20 04:11:24 +02:00
Marco Pesenti Gritti
fa90d50cd9
pylint palette, some problems left
2008-04-19 10:45:52 +02:00
Eben Eliason
f2002153df
Added default to label arg in palette constructor
...
This leaves the API backward compatible but prevents the
need for new code to pass any unused arguments to the
constructor, instead depending on the property API.
2008-04-03 01:23:00 -04:00
Tomeu Vizoso
db2422cf5b
Make room for the accelerator labels.
2008-04-02 16:20:12 +02:00
Eben Eliason
70901268c3
New palette API
...
This patch adds support for primary-text, secondary-text,
and icons to palettes. It also transitions a few other items
to a property API.
2008-04-01 21:28:10 +02:00
Tomeu Vizoso
ef40555ed3
Add support for accelerators to buttons.
2008-04-01 11:52:11 +02:00
Benjamin Berg
826bf9dd4c
Emit palette popup only after the window is mapped. This fixes ticket #3486 .
2008-02-25 16:12:08 +00:00
Benjamin Berg
c9871633e3
Fix #3611 and parts of #4084 by setting the palette to be a transient window of the actiity.
2008-02-25 14:45:21 +00: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
Benjamin Berg
af77859c21
Don't fail to expose if there is no invoker.
2007-10-08 13:54:27 +02:00
Benjamin Berg
45efe5eff6
Call the correct remove function when removing old content from palettes.
2007-09-30 00:20:27 +02:00
Benjamin Berg
9b11183eae
Hide the menu and content when they are empty and added a
...
separator between them.
2007-09-22 00:43:14 +02:00
Benjamin Berg
f6cc705133
Removed the padding from the vbox and added some to the
...
palette (xthickness). Also correctly pad the label,
set it to be bold and give it a fixed height. This fixes
bug #3081 .
2007-09-22 00:21:45 +02:00
Benjamin Berg
c1894d3ec4
Implement a do_size_request to be able to correct resize on size
...
changes, and set a minimum width. Fixes #3497 and adresses #3081 .
2007-09-22 00:13:33 +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
Dan Williams
e43ccf40be
Add a flag to place the menu after the content in palettes
2007-09-08 22:48:21 -04:00
Tomeu Vizoso
d9a30c23ff
Remove left over property.
2007-09-06 18:55:51 +02:00
Tomeu Vizoso
0ad6398cf1
Fix typo.
2007-09-04 20:22:58 +02:00
Marco Pesenti Gritti
94e136c3c3
Stop secondary animation on hide.
2007-09-02 23:34:22 +02:00
Eduardo Silva
94996c9295
#2971 : Patch by Marco
2007-09-01 11:58:47 -04:00
Marco Pesenti Gritti
feb462d08d
Fix ToolInvoker alignments.
2007-09-01 13:40:57 +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
8a3c2a5843
More palette positioning improvements.
2007-09-01 11:59:16 +02: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
7fefc55133
Cleanup and fix bugs in palette positioning (again)
2007-08-29 20:09:19 +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
466bc7b300
Remember state when scrubbing
2007-08-24 14:21:07 +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
Simon Schampijer
eb328e605c
removed print in palette.py
2007-08-22 15:03:16 +02: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
f056056691
Patch by Simon to make sugar start when not connected to wireless.
2007-08-16 17:32:29 +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
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
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
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
Marco Pesenti Gritti
f2eca57d13
More units cleanups
2007-07-31 15:02:50 +02:00