Commit Graph

57 Commits

Author SHA1 Message Date
Marco Pesenti Gritti 4b38ff298b Fix palette highlighting on tray icons. Patch by benzea, style tweaks by me. 2008-12-18 23:53:44 +01:00
Marco Pesenti Gritti 347cc9413b Merge branch 'master' of git://git.sugarlabs.org/sugar-toolkit/mainline 2008-12-18 21:01:54 +01:00
Marco Pesenti Gritti 5b57e1a6cd Rework palette state logic. Fix #42 2008-12-18 21:00:19 +01:00
Daniel Drake 2937a09ead Use g_timeout_add_seconds() for power efficiency
This attempts to align second-granularity wakeups across the system,
reducing CPU wakeups a little.

I considered all timeouts of duration 1 second or greater, and moved
the non-timing-critical ones to g_timeout_add_seconds(). (Actually,
I didn't find any that I felt were timing-critical)
2008-12-18 19:56:08 +00:00
Tomeu Vizoso 054aaf8590 Dont pop down the palette when a submenu opens 2008-12-07 16:50:25 +01:00
Tomeu Vizoso e0c2017c50 Add colors to icons in menu items 2008-12-05 18:02:13 +01:00
Tomeu Vizoso 33e94723da Add accelerator support to menu items 2008-12-05 11:51:40 +01:00
Marco Pesenti Gritti b58182a970 Mark modules as STABLE/UNSTABLE/DEPRECATED. 2008-10-28 14:19:01 +01:00
Eben Eliason dce326c466 Fix up/down arrows in VTrays (#8617) 2008-10-18 17:11:11 -04:00
Eben Eliason 5cc6b27ae7 Add drag-active property to tray control (#8604)
The drag-active property can be set to provide a highlight
when the tray control is accepting target of an ongoing drag.

We can't use the drag_highlight method because we desire to
adjust the background of the widget, rather than drawing on
top of it.  Overriding these methods would work in most cases,
but in cases where GTK+ calls drag_unhighlight itself things
could break, so we use a property instead.
2008-10-18 17:08:13 -04:00
Marco Pesenti Gritti 794281073b Make sure the mouse motion is stopped before starting it. 2008-10-18 16:39:12 +02:00
Marco Pesenti Gritti 0f33a634c0 Fix up scaling calculations, had some regressions in the previous commits. 2008-10-03 10:30:50 +02:00
Marco Pesenti Gritti 5a51661edf Respect SUGAR_SCALING 2008-10-03 02:15:48 +02:00
Marco Pesenti Gritti 9e6ef4d2a9 Line too long fixes. 2008-09-22 10:55:05 +02:00
David Farning 88295072bd API docstrings from pydocweb 2008-09-21 09:01:48 -05:00
David Farning 3a69d3e777 API docstrings from pydocweb 2008-09-20 21:22:56 -05:00
David Farning 62128530c3 API docstrings from pydocweb 2008-09-19 19:32:55 -05:00
David Farning dd7442a0fa API docstring update from pydocweb 2008-09-19 19:00:00 -05:00
C. Scott Ananian d16334a042 Trac #8563: sugar palette doesn't handle 'table menus'.
The gtk Menu class supports 'table menus', where the menu entries can
be laid out in a grid. This is useful for horizontal menus, and for
dense menus of icons, and for wrapping the menu when it gets too long,
etc.

The Menu.attach() method is used to add entries to a menu by row and
column:
 http://www.pygtk.org/docs/pygtk/class-gtkmenu.html#method-gtkmenu--attach

However, the callback in _Menu, defined in palette.py, only triggers
on do_insert(), and so the signal emission (and subsequent
palette._update_separators() call, which places the line underneath
the menu title text at top) never occurs when you add entries using
attach(). _Menu now overrides attach() and emits the proper signal.
2008-09-19 11:18:36 -04:00
Tomeu Vizoso f2a8948bf1 #8485 Detach from palette when a widget is destroyed 2008-09-18 14:50:58 +02:00
David Farning 4a73c86dbb add parameters to docs 2008-09-16 17:03:12 +02:00
Marco Pesenti Gritti 1ac335f271 Break the reference cycle between menu and palette. #8469 2008-09-13 13:25:40 +02:00
Tomeu Vizoso c79bc15f5f #8394 Destroy the palette when the invoker is dettached 2008-09-10 18:05:53 +02:00
Simon Schampijer 2e41124c87 Remove "dynamic" font height computation #8392 (marco) 2008-09-10 12:36:27 +02:00
Marco Pesenti Gritti 549ace8c11 More cleanups to make pylint happy. 2008-09-07 21:51:10 +02:00
Marco Pesenti Gritti ebcf1f6988 Get rid of the custom _hide/_show and just use the widget
methods. Related cleanups.
2008-09-07 21:18:27 +02:00
Simon Schampijer c639e7291a Remove the set_size_request for the alert message
This gave problems on the xo - part of #7841
2008-08-25 14:09:52 +02:00
Tomeu Vizoso 7090e73c09 Revert "#8000 Only repaint the area needed (rlucchese)"
The bounds calculation won't be always correct.

This reverts commit 3bb9f47461.
2008-08-22 19:07:34 +02:00
Tomeu Vizoso 3bb9f47461 #8000 Only repaint the area needed (rlucchese) 2008-08-22 14:50:32 +02:00
Tomeu Vizoso 5ba227ff85 #7533 ToolButton should accept activation via accelerators regardless of its state 2008-08-18 21:36:23 +02:00
Simon Schampijer ba850d5787 Wrap message in alert needed for 7841 2008-08-14 21:31:42 +02:00
Marco Pesenti Gritti bd264577e7 Make Palette handle changes of the invoker widget. Fix #7881 2008-08-14 15:12:57 +02:00
Marco Pesenti Gritti c563543dea More pylint fixes 2008-08-11 01:20:08 +02:00
Marco Pesenti Gritti 204e4f233a Port a few widgets to use new style properties. 2008-08-11 01:10:02 +02:00
Benjamin Berg a35a07f832 Put palettes into the "default" palettegroup by default again. (fix #4084) 2008-08-01 23:54:38 +02:00
Martin Dengler 6a41396dd2 #4208 get_icon_state accepts negative step kwarg 2008-07-14 16:01:11 +01:00
Tomeu Vizoso ab8c054dfb #7015 Add proper alignment support to the "tray" control 2008-07-04 15:49:33 +02:00
Tomeu Vizoso 1b1080e505 xo_color property is not a string 2008-06-25 16:20:51 +02:00
Sayamindu Dasgupta 710f30196a Change the GETTEXT_PACKAGE domain to sugar-toolkit 2008-06-23 23:51:58 +05:30
Martin Dengler 1403f7d26d get_icon_name() now takes step kwarg for #7248.1 2008-06-23 14:34:51 +01:00
Benjamin Berg 31047c1edd Merge branch 'master' of git+ssh://benzea@dev.laptop.org/git/sugar-toolkit 2008-06-20 16:57:05 +02:00
Benjamin Berg bb3a3d4c63 Add scroll_to_item functions to the trays to show a button that may be hidden. 2008-06-20 14:46:27 +02:00
Tomeu Vizoso b71bf4476c Make xo_color, named_icon and group properties instead of constructor args 2008-06-20 12:27:48 +02:00
Tomeu Vizoso cd363bf078 Correct comment. 2008-06-06 13:15:44 +02:00
Simon Schampijer a935d5af97 initialize right_click_invoker_hid in palette 2008-06-05 10:31:30 +02:00
Tomeu Vizoso f613532b09 Attach palette to parent when no widget is given. 2008-06-03 13:04:09 +02:00
Tomeu Vizoso 8194c5f164 Fix typo 2008-05-30 17:32:11 +02:00
Tomeu Vizoso ea8cbac94e Detach the invoker instead of destroying the palette. 2008-05-30 14:18:10 +02:00
Tomeu Vizoso 3700e8299c Disconnect button release signals on detach. 2008-05-24 19:41:47 +02:00
Tomeu Vizoso 976abfc0b7 Reveal palettes on right-click (Eben)
This immediately reveals the full palette for an
object when it is right clicked. A future change should
be made to require explicit dismissal (option chosen,
click outside, escape) when one is explicitly invoked.
2008-05-24 19:34:03 +02:00