Commit Graph

40 Commits

Author SHA1 Message Date
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
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
6dcc35bc17 Release 0.81.2.
Missing import in toggletoolbutton.
2008-05-24 00:14:42 +02:00
Marco Pesenti Gritti
ce235e7405 Finish to hook up the new palette stuff. 2008-05-23 18:00:47 +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
c5b8697d37 Convert to use new gobject properties 2008-05-23 17:05:40 +02:00
Marco Pesenti Gritti
72c2a1d770 Use a src directory consistently with base and shell. 2008-04-29 14:58:34 +02:00