Commit Graph

129 Commits

Author SHA1 Message Date
Tomeu Vizoso
9bd24794c0 Change property type to object because int cannot be None #157 2009-03-05 12:29:36 +01:00
Simon Schampijer
2b2c2ef308 Use the same font size independent from scaling 2009-03-02 15:20:42 +01:00
Benjamin Berg
607c2a9610 Show/Hide the color palette correctly (#374) 2009-02-24 14:29:01 +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
30e67cc226 Reveal the palette on right click on an activity icon #409 2009-02-23 18:11:51 +01:00
Tomeu Vizoso
ede6db947e Don't try to hide the tray if the activity has none (alsroot) #395 2009-02-20 16:38:41 +01:00
Simon Schampijer
780efa55b0 NamingAlert: Icon dependent on the entry type #353 2009-02-16 16:06:38 +01:00
Tomeu Vizoso
997c384405 Add activate signal to Palette 2009-02-10 18:57:02 +01:00
Benjamin Berg
b39ed70b11 Added an option to set the background color of CanvasIcon. Then a RGB cache can be used. 2009-02-10 17:58: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
Simon Schampijer
817a981288 Enhanced the 'Name this entry dialog'
- created the canvastextview in sugar/graphics
2009-01-18 16:30:53 +01:00
Simon Schampijer
5250117b81 Fix color button pylint 2009-01-16 23:46:20 +01:00
Benjamin Berg
b669d70758 Add a colorpicker to Sugar. Only the ColorToolButton is public for now. 2009-01-13 16:48:06 +01:00
Benjamin Berg
a496b1dbf3 Merge branch 'master' of git://git.sugarlabs.org/sugar-toolkit/mainline 2009-01-12 15:38:49 +01:00
Benjamin Berg
3cde35ef31 Move the palette to new style gobject properties. 2009-01-12 15:38:08 +01:00
Tomeu Vizoso
bbd8c14cf1 pylint nitpick 2009-01-12 13:47:34 +01:00
Tomeu Vizoso
e56b381bd3 Add the file_name property to MenuItem and reduce a bit the size of its icons 2009-01-12 13:46:17 +01:00
Tomeu Vizoso
9a3cbbfe33 Rename parameter to what_filter 2009-01-06 19:17:48 +01:00
Tomeu Vizoso
9b61b1ff7b #3060 Add the possibility of filtering the object chooser by data type 2009-01-06 13:30:20 +01:00
Tomeu Vizoso
53533be524 Set property types as object so strings are not copied 2009-01-04 12:05:27 +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
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
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