Commit Graph

37 Commits

Author SHA1 Message Date
Tomeu Vizoso
afce505143 Rename activate signal in cell renderers to 'clicked' 2009-06-30 10:09:42 +02:00
Tomeu Vizoso
434b1e5899 Handle cell activation by button-release 2009-06-27 18:04:00 +02:00
Tomeu Vizoso
985edb0e4d Reduce motion are for treeview palettes to the bin window 2009-06-27 16:06:13 +02:00
Benjamin Berg
4bb221349c Emit a row_changed signal to redraw the CellRendererIcon on prelight.
This fixes a problem where the wrong part of the treeview was redrawn.
2009-06-14 14:08:52 +02:00
Tomeu Vizoso
32109b8764 Redraw cell renderers on hovering changed 2009-06-13 21:24:48 +02:00
Tomeu Vizoso
94e12f52f2 Silence warning and reduce debug logging a bit 2009-06-13 21:24:48 +02:00
Tomeu Vizoso
07c2b025f1 Add CellRendererInvoker 2009-06-13 21:24:48 +02:00
Tomeu Vizoso
fbad85cde9 Limit length of labels in palettes to 60 chars by default #610 2009-04-06 19:03:42 +02:00
Simon Schampijer
d5c5e376d2 Fix palettes scaling when using scaling factor 72 #504 2009-03-13 15:44:57 +01:00
Tomeu Vizoso
a4e9c9c78e Support setting None as the secondary text #384 2009-02-24 10:56:09 +01:00
Tomeu Vizoso
77433af5ff Only display one line in the secondary text of a clipping palette #384 2009-02-24 10:37:30 +01:00
Tomeu Vizoso
997c384405 Add activate signal to Palette 2009-02-10 18:57:02 +01:00
Tomeu Vizoso
6084eb9fea Start adapting to Python 4.0 2009-02-04 11:49:48 +01:00
Tomeu Vizoso
e8c36247a5 Palette positioning fixes #298
Don't try to align the palette to the edges if the invoker is AT_CURSOR,
and always try to move the palette completely into the screen if at all
possible.
2009-02-03 15:03:36 +01:00
Benjamin Berg
3cde35ef31 Move the palette to new style gobject properties. 2009-01-12 15:38:08 +01:00
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
5b57e1a6cd Rework palette state logic. Fix #42 2008-12-18 21:00:19 +01:00
Tomeu Vizoso
054aaf8590 Dont pop down the palette when a submenu opens 2008-12-07 16:50:25 +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
Marco Pesenti Gritti
794281073b Make sure the mouse motion is stopped before starting it. 2008-10-18 16:39:12 +02: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
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
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
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
Benjamin Berg
a35a07f832 Put palettes into the "default" palettegroup by default again. (fix #4084) 2008-08-01 23:54:38 +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
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
Marco Pesenti Gritti
f4bda5eb22 Allow to attach the invoker to the widget after construction,
so that gproperties to constructor can be implemented correctly.
2008-05-24 12:34:46 +02:00
Marco Pesenti Gritti
bbd3404310 Hookup the new palette creation in the toolbuttons. 2008-05-23 17:37:04 +02:00
Marco Pesenti Gritti
685a9e3462 Move palette creation logic inside the invoker. 2008-05-23 17:26:15 +02:00
Marco Pesenti Gritti
72c2a1d770 Use a src directory consistently with base and shell. 2008-04-29 14:58:34 +02:00