Commit Graph
43 Commits
Author SHA1 Message Date
Benjamin Berg e05f84bc4f Icon: port to new Height-for-width Geometry Management
GTK3 has replaced [1] the GTK2 geometry management with Height-for-width
Geometry Management [2]. This means we need to replace size_request() methods
with get_preferred_{width,height}().

[1] http://developer.gnome.org/gtk3/3.0/ch25s02.html#id1525688
[2] http://developer.gnome.org/gtk3/3.0/GtkWidget.html#geometry-management

Signed-off-by: Benjamin Berg <[email protected]>
[assembled from several patches; fixed up left-over plus sign; added
description]
Signed-off-by: Sascha Silbe <[email protected]>
2011-12-13 17:19:52 -03:00
Benjamin Berg c684950ecf Do not emit the row-changed signal, but redraw the row for prelight.
This basically undos commit 4bb221349c
and fixes the code that was there before. Emitting the row-changed
signal causes any editing to be canceled.
2009-09-10 17:34:56 +02:00
Benjamin Berg 0991081eff Get the correct window property instead of '_SUGAR_ACTIVITY_ID' (#1251) 2009-08-30 18:00:44 +02:00
Benjamin Berg d3c9dc535b Do not pop the error trap twice (pointed out by Sascha Silbe in #1123). 2009-08-28 18:48:13 +02:00
Benjamin Berg d304f72872 Trap X errors in wm.py (#1123) 2009-08-28 12:18:00 +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
Benjamin Berg 607c2a9610 Show/Hide the color palette correctly (#374) 2009-02-24 14:29:01 +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
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
Benjamin Berg 927ae13aec Merge branch 'master' of git+ssh://[email protected]/git/sugar-toolkit 2008-08-24 14:33:58 +02:00
Benjamin Berg 3d3e453157 Change the API of the keygrabber so only one gdk_sync is neccessary. (ticket #7999) 2008-08-24 14:31:46 +02:00
Benjamin Berg a35a07f832 Put palettes into the "default" palettegroup by default again. (fix #4084) 2008-08-01 23:54:38 +02:00
Benjamin Berg 31047c1edd Merge branch 'master' of git+ssh://[email protected]/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
Benjamin Berg b781b70107 Add is_modifier and is_special_modifier functions to SugarKeyGrabber. 2008-06-20 14:46:09 +02:00
Benjamin Berg 826bf9dd4c Emit palette popup only after the window is mapped. This fixes ticket #3486. 2008-02-25 16:12:08 +00:00
Benjamin Berg c9871633e3 Fix #3611 and parts of #4084 by setting the palette to be a transient window of the actiity. 2008-02-25 14:45:21 +00:00
Benjamin Berg fc3b70b366 Fill SugarAddressEntry using the theme, so that the colors are correct.
Fixes #6273.
2008-02-10 17:15:36 +01:00
Benjamin Berg d37e90940c Fix the testcase for ticket 2855. 2008-01-27 20:07:00 +01:00
Benjamin Berg 8aa362e5a7 Use toolbuttons as scroll buttons and make them insensitive when it is not
possible to scroll to the side.
2007-12-23 20:42:20 +01:00
Benjamin Berg ac804177a1 Extend the iconwidget test to also test insensitive icons. 2007-12-14 20:44:22 +01:00
Benjamin Berg ce2452ea42 Use the engine to make sugar icons insensitive. 2007-12-14 19:59:46 +01:00
Benjamin Berg fa55b5af09 Changed default spacing to 15px (and fixed the palette to use it) 2007-10-16 18:17:01 +02:00
Benjamin Berg 1c1f736a81 Merge branch 'master' of git://dev.laptop.org/sugar 2007-10-16 17:50:14 +02:00
Benjamin Berg 977c7d4a99 Subtract the palette border from the primary label height. 2007-10-16 17:12:46 +02:00
Benjamin Berg 7634b8f915 Put toolbars into event boxes. This means that they will be filled with
the background color by X which makes the frame animations nicer.
2007-10-09 23:54:47 +02:00
Benjamin Berg af77859c21 Don't fail to expose if there is no invoker. 2007-10-08 13:54:27 +02:00
Benjamin Berg 45efe5eff6 Call the correct remove function when removing old content from palettes. 2007-09-30 00:20:27 +02:00
Benjamin Berg d8a5fed0e0 Merge branch 'master' of git://dev.laptop.org/sugar 2007-09-22 12:42:34 +02:00
Benjamin Berg d1463ca479 Destroy the clipboard menu download progress bar instead of just hiding it. 2007-09-22 12:21:52 +02:00
Benjamin Berg 85cf3f4655 Add news file entry about the palette fixes. 2007-09-22 01:16:34 +02:00
Benjamin Berg 9b11183eae Hide the menu and content when they are empty and added a
separator between them.
2007-09-22 00:43:14 +02:00
Benjamin Berg f6cc705133 Removed the padding from the vbox and added some to the
palette (xthickness). Also correctly pad the label,
set it to be bold and give it a fixed height. This fixes
bug #3081.
2007-09-22 00:21:45 +02:00
Benjamin Berg 30d6361fb4 Merge branch 'master' of git://dev.laptop.org/sugar 2007-09-22 00:13:42 +02:00
Benjamin Berg c1894d3ec4 Implement a do_size_request to be able to correct resize on size
changes, and set a minimum width. Fixes #3497 and adresses #3081.
2007-09-22 00:13:33 +02:00
Benjamin Berg 3c99f9f1ea Draw a prelight for toolbuttons from the toolbutton instead of relying on the button. 2007-08-22 20:38:48 +02:00
Benjamin Berg c571993811 Fixed a typo in the palette gap calculation code. 2007-08-10 23:39:12 +02:00
Benjamin Berg 04ae920ad5 Merge branch 'master' of git+ssh://[email protected]/git/sugar 2007-08-10 23:28:55 +02:00
Benjamin Berg 91d7dbcb08 Ignore grab_notify in the palette menu so that eg. scales work. 2007-08-10 23:21:36 +02:00
Benjamin Berg 476189323d Don't draw the invoker rectangle for tooltips. 2007-08-10 18:52:15 +02:00
Benjamin Berg 6573e8c5e6 Draw an invoker rectangle that looks connected to the main palette.
There is one catch though, the menu placement inside the palette seems broken.
(Probably was already broken before.) Not sure what is going on there.
2007-08-10 18:29:28 +02:00