Commit Graph

55 Commits

Author SHA1 Message Date
Simon Schampijer
abda2edc04 Remove unneeded debug logs #1861 2010-07-07 11:08:59 +02:00
Aleksey Lim
927c576e31 After using CP, the XO home palette is incorrectly scrolled (blank lines + missing item) #231 2009-09-18 08:09:14 +00:00
Tomeu Vizoso
850a78c59a Only try to pop down the submenus if we still have a _Menu #1338 2009-09-13 18:02:40 +02:00
Aleksey Lim
d57320b985 Hide only submenus #1301 2009-09-10 10:14:52 +00:00
Aleksey Lim
b41e4a51d7 Popdown menu on palette popdown #1301 2009-09-10 09:07:24 +00:00
Aleksey Lim
ff2dd6cc0e Stop all animators on poup/popdown invoking #1310 2009-09-09 16:38:52 +00:00
Aleksey Lim
e97dd135eb Wrong calculated positions for palettes #1268 2009-09-04 17:02:57 +00:00
Aleksey Lim
135b2a608d Hide all animators while deleting palettes #1265 2009-09-04 16:54:50 +00:00
Sascha Silbe
c9e63eb8ea PEP8 white space and long line fixes 2009-08-25 21:12:40 +02:00
Sascha Silbe
ecdaf6b795 trim EOL (end-of-line) spaces on source files 2009-08-25 19:55:48 +02:00
Simon Schampijer
6ece09d49b more pylint 2009-08-24 15:09:02 +02:00
Sascha Silbe
496090fe62 let the logger do the formatting 2009-08-24 12:54:02 +02:00
Tomeu Vizoso
bdd760d92a Remove a couple of debug prints 2009-08-20 09:55:32 +02:00
Tomeu Vizoso
8f271e2604 Split PaletteWindow in its own module 2009-08-01 16:15:01 +02:00
Aleksey Lim
7d76f06ae1 Remove redundant state argument from PaletteWindow.popup 2009-08-01 13:34:42 +00:00
Aleksey Lim
68fa6bf093 Fix mess with gtk.Widget.set_state and Palette.set_state 2009-08-01 11:23:20 +00:00
Aleksey Lim
35bbfe1d50 Support palettes for sub-toolbar widgets 2009-08-01 11:23:20 +00:00
Aleksey Lim
e0aedcd5c7 Refactor Palette class (tomeu) 2009-08-01 11:23:06 +00:00
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