]> Pileus Git - ~andy/gtk/log
~andy/gtk
13 years agoAdd a lock button widget
Matthias Clasen [Sat, 30 Apr 2011 03:40:47 +0000 (23:40 -0400)]
Add a lock button widget

This is a special-purpose button that can be used together with
GPermission objects to control the sensitivity of system settings.

Suitable permission objects can e.g. be obtained from PolicyKit.

http://bugzilla.gnome.org/show_bug.cgi?id=626457

13 years agoRemove outdated comments
Matthias Clasen [Fri, 6 May 2011 20:31:36 +0000 (16:31 -0400)]
Remove outdated comments

Neither GdkColors nor GdkRGBAs are ever 'allocated' nowadays.

13 years agoAdding more traditional checkered background to testtextview.
Tristan Van Berkom [Mon, 14 Feb 2011 07:47:57 +0000 (16:47 +0900)]
Adding more traditional checkered background to testtextview.

13 years agoAdded Since 3.2 annotations for new GdkRGBA properties.
Tristan Van Berkom [Mon, 14 Feb 2011 07:18:35 +0000 (16:18 +0900)]
Added Since 3.2 annotations for new GdkRGBA properties.

13 years agoAdded internal GdkRGBA support for GtkTextTag::paragraph-background-rgba
Tristan Van Berkom [Mon, 14 Feb 2011 06:27:42 +0000 (15:27 +0900)]
Added internal GdkRGBA support for GtkTextTag::paragraph-background-rgba

Added the remaining implementation bits for rendering paragraph backgrounds
with rgba values and updated the test case.

13 years agoFixed GtkTextTag to sync the GdkColors with the new GdkRGBA values for backwards...
Tristan Van Berkom [Mon, 14 Feb 2011 05:27:28 +0000 (14:27 +0900)]
Fixed GtkTextTag to sync the GdkColors with the new GdkRGBA values for backwards compatability.

13 years agoHandled error_color with GdkRGBA in gtktextdisplay.c.
Tristan Van Berkom [Mon, 14 Feb 2011 05:22:27 +0000 (14:22 +0900)]
Handled error_color with GdkRGBA in gtktextdisplay.c.

13 years agoFixed textview rendering regression.
Tristan Van Berkom [Mon, 14 Feb 2011 05:00:15 +0000 (14:00 +0900)]
Fixed textview rendering regression.

Background color was not painted on the whole tagged segment after
line breaking, this was due to the default ->prepare_run() function
wiping the internal PangoColors clean... fixed this by unconditionally
setting local rgba colors from prepare_run instead of comparing them
and bailing out.

13 years agoAdded GdkRGBA properties to GtkTextTag.
Tristan Van Berkom [Wed, 9 Feb 2011 14:41:39 +0000 (23:41 +0900)]
Added GdkRGBA properties to GtkTextTag.

This now allows text view to render text with alpha values in
the text foreground and backgrounds, the work is almost complete,
currently the error-underline-color is still a GdkColor style property
and since we use only GdkRGBA for rendering it needs to be converted
and applied, probably a new rgba version of the style property should
also be introduced.

This commit adds tests/testtextview that must be run from the tests/
directory to show translucent text in action.

13 years agotestassistant: don't use deprecated functions
Cosimo Cecchi [Fri, 6 May 2011 20:08:09 +0000 (16:08 -0400)]
testassistant: don't use deprecated functions

13 years agoprogressbar: fetch the padding without the trough style class
Cosimo Cecchi [Fri, 6 May 2011 18:53:09 +0000 (14:53 -0400)]
progressbar: fetch the padding without the trough style class

This is consistent with the rest of the widget, which uses only one
padding value.

https://bugzilla.gnome.org/show_bug.cgi?id=649593

13 years agocellrendererprogress: don't force drawing inside the border
Cosimo Cecchi [Fri, 6 May 2011 18:33:00 +0000 (14:33 -0400)]
cellrendererprogress: don't force drawing inside the border

The progressbar is composed by two different rendered areas: the trough
(i.e. the non-filled part of the bar) and the bar itself.

The bar should be able to fill the whole height/width of the trough
without resorting to nasty hacks in the theme, and we can control the
amount of space between the bar and the trough with the padding already.

https://bugzilla.gnome.org/show_bug.cgi?id=649593

13 years agogtk3-demo: assistant demo simplications
Matthias Clasen [Fri, 6 May 2011 18:55:58 +0000 (14:55 -0400)]
gtk3-demo: assistant demo simplications

Since header and sidebar images are no longer used, don't set them.

13 years agoGtkAssistant: an new style for assistants
Matthias Clasen [Sun, 17 Apr 2011 00:45:26 +0000 (20:45 -0400)]
GtkAssistant: an new style for assistants

GtkAssistant is widely recognized as a butt-ugly widget.

This commit changes its style to look more modern. We
deprecate the sidebar and header image properties and
don't show them anymore. Instead, page titles are arranged
in a sidebar, with the title of the current page shown
in highlighted style.

13 years agotestassistant: some more tests
Matthias Clasen [Sun, 17 Apr 2011 03:01:30 +0000 (23:01 -0400)]
testassistant: some more tests

13 years agoSilently allow child properties on grandchildren
Matthias Clasen [Tue, 26 Apr 2011 16:26:51 +0000 (12:26 -0400)]
Silently allow child properties on grandchildren

This commit simply removes some child->parent == container checks,
to add some flexibility for containers with 'inner structure'.
If these checks are considered useful, we can bring them back
with a is_child vfunc that allows container implementations to
decided who they consider legitimate child.

13 years agoAdd gtk_container_child_notify
Matthias Clasen [Sat, 16 Apr 2011 17:57:05 +0000 (13:57 -0400)]
Add gtk_container_child_notify

This is a variant of gtk_widget_child_notify() that takes an
explicit container, instead of relying on widget->parent to
be the correct container to use.

13 years agogtk-demo: Don't leave a dangling pointer to a destroyed widget
Matthias Clasen [Sat, 16 Apr 2011 17:42:24 +0000 (13:42 -0400)]
gtk-demo: Don't leave a dangling pointer to a destroyed widget

When destroying the assistant, clean up the static variable
that points to it.

13 years agoSome additional auto-mnemonic fixes
Matthias Clasen [Fri, 6 May 2011 18:04:50 +0000 (14:04 -0400)]
Some additional auto-mnemonic fixes

Previously, we would also show mnemonics if the user hits
Ctrl+Alt, even though Ctrl+Alt+<x> does not actually trigger.

13 years agoGtkWindow: set mnemonics visible on focus in if modifier is pressed
Rui Matos [Wed, 13 Apr 2011 10:26:55 +0000 (11:26 +0100)]
GtkWindow: set mnemonics visible on focus in if modifier is pressed

With gtk-auto-mnemonics on, we hide mnemonics on focus out. We should also
check if the modifier is pressed on focus in and if so, show mnemonics again.

https://bugzilla.gnome.org/show_bug.cgi?id=618815

13 years agoconfigure.ac: Indeed the minimum required version is 2.29.4, not 2.29.2
Javier Jardón [Fri, 6 May 2011 17:54:22 +0000 (18:54 +0100)]
configure.ac: Indeed the minimum required version is 2.29.4, not 2.29.2

13 years agoconfigure.ac: Bump glib minimum required version to 2.29.2
Javier Jardón [Fri, 6 May 2011 17:51:04 +0000 (18:51 +0100)]
configure.ac: Bump glib minimum required version to 2.29.2

As we are using the new g_test_fail() in the gtk-reftest

13 years agoRevert "arrow: Make minimum size 5px"
Benjamin Otte [Fri, 6 May 2011 17:35:40 +0000 (19:35 +0200)]
Revert "arrow: Make minimum size 5px"

This reverts commit 1c46e04f30e8b496ac0cc3ad830b4824e54c1e94.

The change broke too many widgets that relied on the size being
constant. A proper fix would require letting themes override the size.
That would probably also require letting themes specify the size
relative to font size.

13 years agoAdd an alignment property test
Matthias Clasen [Fri, 6 May 2011 02:21:59 +0000 (22:21 -0400)]
Add an alignment property test

This test compares GtkAlignment properties and GtkWidget margin and
alignment properties.

13 years agoExpand GtkMisc tests to cover arrows and images
Matthias Clasen [Fri, 6 May 2011 01:47:14 +0000 (21:47 -0400)]
Expand GtkMisc tests to cover arrows and images

This unveils something fishy with arrows.

13 years agoAdd a misc-alignment reftest
Matthias Clasen [Thu, 5 May 2011 21:53:12 +0000 (17:53 -0400)]
Add a misc-alignment reftest

This test compares GtkMisc properties and GtkWidget margin and
alignment properties.

13 years agoMore box<>grid comparison tests
Matthias Clasen [Thu, 5 May 2011 20:15:59 +0000 (16:15 -0400)]
More box<>grid comparison tests

Add a more complicated case with multiple expanding children.
Also, make the window a popup.

13 years agogtkicontheme: More explicitly note ownership transfers of duplicated string
Colin Walters [Thu, 5 May 2011 14:13:13 +0000 (10:13 -0400)]
gtkicontheme: More explicitly note ownership transfers of duplicated string

I was hunting a memory leak and couldn't find it; at least I'm
pretty sure all of these are OK.  But document things better
for the future.

Also use g_hash_table_replace in one more case for consistency.

https://bugzilla.gnome.org/show_bug.cgi?id=649457

13 years agoreftests: Add missing css file for grid-expand test
Benjamin Otte [Thu, 5 May 2011 17:34:31 +0000 (19:34 +0200)]
reftests: Add missing css file for grid-expand test

13 years agoreftests: Add testcase for label justify fix
Benjamin Otte [Thu, 5 May 2011 15:32:22 +0000 (17:32 +0200)]
reftests: Add testcase for label justify fix

13 years agolabel: Compute label offset properly for wrapped justified labels
Benjamin Otte [Thu, 5 May 2011 15:30:58 +0000 (17:30 +0200)]
label: Compute label offset properly for wrapped justified labels

label offsets were computed wrong for wrapped or ellipsized labels that
were right- or center-justified and had excess space available.

13 years agoreftests: Fix filename in makefile
Benjamin Otte [Thu, 5 May 2011 03:16:38 +0000 (05:16 +0200)]
reftests: Fix filename in makefile

13 years agoreftests: Add a test that ensures toplevels and popups render identical
Benjamin Otte [Thu, 5 May 2011 03:16:09 +0000 (05:16 +0200)]
reftests: Add a test that ensures toplevels and popups render identical

13 years agoreftests: Ensure we got a draw event before quitting the main loop
Benjamin Otte [Thu, 5 May 2011 03:13:34 +0000 (05:13 +0200)]
reftests: Ensure we got a draw event before quitting the main loop

13 years agoreftests: Add a hack to make toplevels work in various WMs
Benjamin Otte [Thu, 5 May 2011 02:29:56 +0000 (04:29 +0200)]
reftests: Add a hack to make toplevels work in various WMs

If we have a toplevel, and not a popup window, do wait an additional
0.5s to give the WM/server enough time to actually create the window.

This is a hack and there should be a better solution. But it works.

Please use POPUP windows for tests unless the test must use toplevel
windows.

13 years agoreftests: Plug a leak
Benjamin Otte [Thu, 5 May 2011 02:27:38 +0000 (04:27 +0200)]
reftests: Plug a leak

13 years agoreftests: Add test for box expand handling
Benjamin Otte [Wed, 4 May 2011 23:09:45 +0000 (01:09 +0200)]
reftests: Add test for box expand handling

13 years agoreftests: Add a test for grid expand flags
Benjamin Otte [Wed, 4 May 2011 18:12:44 +0000 (20:12 +0200)]
reftests: Add a test for grid expand flags

13 years agogtk/gtktrayicon-x11.c: Use GdkRGBA instead GdkColor
Javier Jardón [Mon, 2 May 2011 15:13:50 +0000 (16:13 +0100)]
gtk/gtktrayicon-x11.c: Use GdkRGBA instead GdkColor

13 years agoGtkButtonBox: add a non-homogeneous child property
Matthias Clasen [Thu, 5 May 2011 11:46:03 +0000 (07:46 -0400)]
GtkButtonBox: add a non-homogeneous child property

This makes it easier to add things like lock buttons in
dialogs. Part of #626457.

13 years agoFix box-packing test
Matthias Clasen [Thu, 5 May 2011 11:26:55 +0000 (07:26 -0400)]
Fix box-packing test

13 years agoExpand box-packing reftest
Matthias Clasen [Thu, 5 May 2011 02:58:32 +0000 (22:58 -0400)]
Expand box-packing reftest

Compare vexpand behavior, too.

13 years agoAdd a box-packing reftest
Matthias Clasen [Thu, 5 May 2011 00:38:38 +0000 (20:38 -0400)]
Add a box-packing reftest

This test compares GtkHBox expand handling with GtkGrid+GtkWidget::hexpand,
to ensure that replacing GtkHBox by GtkGrid works as intended.

13 years agoUpdated Spanish translation
Daniel Mustieles [Wed, 4 May 2011 20:46:27 +0000 (22:46 +0200)]
Updated Spanish translation

13 years agogdk/x11/gdkcursor-x11.c: Use GdkRGBA instead GdkColor
Javier Jardón [Mon, 2 May 2011 16:42:18 +0000 (17:42 +0100)]
gdk/x11/gdkcursor-x11.c: Use GdkRGBA instead GdkColor

13 years agoGdkWindow: remove unused variable
Kristian Rietveld [Wed, 4 May 2011 05:31:39 +0000 (07:31 +0200)]
GdkWindow: remove unused variable

13 years agoConvert the commit message into a README
Matthias Clasen [Tue, 3 May 2011 23:35:48 +0000 (19:35 -0400)]
Convert the commit message into a README

Not everybody thinks git grep is a great doc reader...

13 years agoGdkWindow: Fix gdk_window_set_[device_]cursor() issues with root/foreign windows
Carlos Garnacho [Tue, 3 May 2011 22:01:10 +0000 (00:01 +0200)]
GdkWindow: Fix gdk_window_set_[device_]cursor() issues with root/foreign windows

It could be the case that gdk_window_set_cursor() is called on
pointers not yet known to the device tracking code in GdkDisplay,
so update the cursor on all master pointers.

The code actually updating the cursor for the given window has
been refactored out to gdk_window_set_cursor_internal(), used
in gdk_window_set_device_cursor() as well, which makes it handle
root/foreign windows too.

https://bugzilla.gnome.org/show_bug.cgi?id=649313

13 years agogtkdnd: Add API that takes GIcon
Colin Walters [Tue, 3 May 2011 16:33:31 +0000 (12:33 -0400)]
gtkdnd: Add API that takes GIcon

This will be useful for me to port gnome-panel to gnome-menus 4, which
uses GAppInfo, which in turn returns icon references as GIcon.

https://bugzilla.gnome.org/show_bug.cgi?id=649295

13 years agogtkimageprivate: Drop unused theme_change_id
Colin Walters [Tue, 3 May 2011 15:04:56 +0000 (11:04 -0400)]
gtkimageprivate: Drop unused theme_change_id

13 years agoreftests: Add a --output option to the test runner
Benjamin Otte [Tue, 3 May 2011 12:03:25 +0000 (14:03 +0200)]
reftests: Add a --output option to the test runner

This argument specifies where to dump images instead of /tmp. It's not
hooked up to the test runner, so that one will continue to dump into
/tmp.

13 years agoreftests: Add test for low mnemonics
Benjamin Otte [Tue, 3 May 2011 10:05:45 +0000 (12:05 +0200)]
reftests: Add test for low mnemonics

Low mnemonics were invisible previously. This tests the fix from
9bb145a677c3c9fa3266ae6999414f441016d93f

13 years agoreftests: Test that nonresizable windows get the right size
Benjamin Otte [Tue, 3 May 2011 09:18:04 +0000 (11:18 +0200)]
reftests: Test that nonresizable windows get the right size

We want the default size, not the minimum one. This tests the fixes from
4f23dc34be1fd497cce84962798f7578e78a32c9

13 years agotests: Add a test for small ellipsized labels
Benjamin Otte [Fri, 22 Apr 2011 02:56:03 +0000 (04:56 +0200)]
tests: Add a test for small ellipsized labels

Tests the fix from bf413928611e004ae3b5a9f73ff9c777cb7e8e70

13 years agoreftests: Add grid-homogeneous test
Benjamin Otte [Wed, 20 Apr 2011 15:07:49 +0000 (17:07 +0200)]
reftests: Add grid-homogeneous test

Checks that the homogeneous properties of GtkGrid actually do what
they're supposed to.

Tests fixes from 8331b45a5fcbfb919a3bb02ccb93ac6d66c515b9

13 years agoreftests: Add a test for correct entry text clipping in progress drawing
Benjamin Otte [Tue, 19 Apr 2011 20:15:24 +0000 (22:15 +0200)]
reftests: Add a test for correct entry text clipping in progress drawing

Tests for fixes in da1f618b096973704bd0b7db071baa1444ef5c7b

13 years agoreftests: Add label-sizing test
Benjamin Otte [Sun, 17 Apr 2011 17:56:52 +0000 (19:56 +0200)]
reftests: Add label-sizing test

Checks that the size requests for labels are as they should be for
required and natural size given various combinations of wrap, ellipsize,
width-chars and max-width-chars.

See
http://mail.gnome.org/archives/gtk-devel-list/2011-April/msg00036.html
for the discussion spawning this test.

13 years agoreftests: Add
Benjamin Otte [Tue, 3 May 2011 07:44:45 +0000 (09:44 +0200)]
reftests: Add

Add a new test runner supposed to do a lot of generic tests. Run it like
this:

./gtk-reftest [OPTIONS] TESTFILE [TESTFILES...]

where FILE is a GtkBuilder ui file to run.

For a general test named "test", you want to have the following files:
1) test.ui
2) test.ref.ui
3) test.css (optional)
The test will then check that test.ui and test.ref.ui are rendered
identically with the provided css.

In detail, for every provided TESTFILE the test runner will:
1) Add the css to the default screen
2) Load the test.ui file and the test.ref.ui file
3) Grab the first GtkWindow subclass widget
4) gtk_widget_show() it and take a snapshot image of its contents into
   a cairo surface.
5) Compare the two images to be bitwise identical. If they are not, a
   diff image will be created hilighting the differences.
6) Save the images as png files to the output directory named:
   - test.out.png (rendering of test.ui)
   - test.ref.png (rendering of test.ref.ui)
   - test.diff.png (optional, differences from step 5)
7) Fail the test if the two images are not bitwise identical

Credit for the idea of reftests goes to Mozilla and in particular David
Baron. For a larger introduction of why reftests are useful, see
http://weblogs.mozillazine.org/roc/archives/2008/12/reftests.html

13 years agolabel: Allow using more underline modes
Benjamin Otte [Sun, 24 Apr 2011 23:48:59 +0000 (01:48 +0200)]
label: Allow using more underline modes

13 years agoGdkWindow: Add missing (allow-none) annotations
Martin Pitt [Tue, 3 May 2011 07:30:49 +0000 (09:30 +0200)]
GdkWindow: Add missing (allow-none) annotations

13 years agoaccellabel: Remove leftover debug code
Benjamin Otte [Mon, 2 May 2011 18:07:49 +0000 (20:07 +0200)]
accellabel: Remove leftover debug code

The disabling of the check was added in
63a0ab5e73a618e4fe907f69a1bd6a74cb399dc2

Ooops.

13 years agocellarea: Fix warning messages to display the right type
Benjamin Otte [Mon, 2 May 2011 16:36:14 +0000 (18:36 +0200)]
cellarea: Fix warning messages to display the right type

The warning displayed the type of the area instead of the cell
renderer's type before.

13 years agotests/testgtk.c: Fix crash in cursor test
Javier Jardón [Mon, 2 May 2011 17:19:09 +0000 (18:19 +0100)]
tests/testgtk.c: Fix crash in cursor test

This was introduced in
commit ac4c12ff60374e77d88f8e65fc9cb3b5603a193e

13 years agomenuitem: Deprecate gtk_menu_item_set_right_justified()
Benjamin Otte [Mon, 2 May 2011 14:49:03 +0000 (16:49 +0200)]
menuitem: Deprecate gtk_menu_item_set_right_justified()

And the getter, too: gtk_menu_item_get_right_justified() and the
corresponding property. Also make the only caller use the private
structure (as it did before the recent patches).

13 years agotestgtk: right-justify menuitem by using expand/align flags
Benjamin Otte [Mon, 2 May 2011 14:47:06 +0000 (16:47 +0200)]
testgtk: right-justify menuitem by using expand/align flags

gtk_menu_item_set_right_justify() is about to be deprecated and this
thing should work. (Note: should, because I didn't implemented it yet.)

13 years agogtk-demo: Don't right-justify menu items
Benjamin Otte [Mon, 2 May 2011 14:46:06 +0000 (16:46 +0200)]
gtk-demo: Don't right-justify menu items

We don't want to demo things that are a bad idea (quoted from the docs).

13 years agogtkbuilder.c: gtk_builder_value_from_string() also support GdkRGBA values
Javier Jardón [Mon, 2 May 2011 14:42:54 +0000 (15:42 +0100)]
gtkbuilder.c: gtk_builder_value_from_string() also support GdkRGBA values

13 years agodocs: Remove documentation about deprecated and removed GtkText
Javier Jardón [Mon, 2 May 2011 14:38:36 +0000 (15:38 +0100)]
docs: Remove documentation about deprecated and removed GtkText

13 years agoBypass libtool for linking with libuuid on win32
Arnel Borja [Sun, 1 May 2011 05:13:45 +0000 (08:13 +0300)]
Bypass libtool for linking with libuuid on win32

Fixes a regression introduced in 07d49ee5.

Libtool by default refuses to link static libraries into shared
libraries. In Windows, libuuid is however a static library and needed
for shared libgtk; as a work around, use "-Wl,-luuid" to pass the option
directly to the linker.

https://bugzilla.gnome.org/show_bug.cgi?id=642214

13 years agogtkcalendar: Remove unused variable
Javier Jardón [Mon, 2 May 2011 13:59:53 +0000 (14:59 +0100)]
gtkcalendar: Remove unused variable

13 years agodocs/reference/gtk/text_widget.sgml: Use GdkRGBA instead GdkColor
Javier Jardón [Tue, 26 Apr 2011 15:14:52 +0000 (16:14 +0100)]
docs/reference/gtk/text_widget.sgml: Use GdkRGBA instead GdkColor

13 years agodocs/tools/widgets.c: Use GdkRGBA instead GdkColor
Javier Jardón [Tue, 26 Apr 2011 15:04:52 +0000 (16:04 +0100)]
docs/tools/widgets.c: Use GdkRGBA instead GdkColor

13 years agoAdded UG translation
Abduxukur Abdurixit [Mon, 2 May 2011 06:44:33 +0000 (08:44 +0200)]
Added UG translation

13 years agoAdded UG translation
Abduxukur Abdurixit [Mon, 2 May 2011 06:34:06 +0000 (08:34 +0200)]
Added UG translation

13 years agotooltips: treat scroll events like key/button press instead of motion
Kristian Rietveld [Sun, 1 May 2011 14:38:56 +0000 (16:38 +0200)]
tooltips: treat scroll events like key/button press instead of motion

This avoids tooltips from staying visible when scrolling using scroll
events.  Suggested by Paul Davis.

13 years agoGtkWidget: avoid an unused variable warning
Matthias Clasen [Sun, 1 May 2011 14:02:58 +0000 (10:02 -0400)]
GtkWidget: avoid an unused variable warning

13 years agowindow: Make non-resizable windows use default size for geometry hints
Benjamin Otte [Sun, 1 May 2011 06:47:58 +0000 (08:47 +0200)]
window: Make non-resizable windows use default size for geometry hints

Previously, we were trying to size them by the default size, but then
setting the minimum size as the geometry hints' minimum and maximum
size.

13 years agoaccellabel: Only daw accelerator after natural size has been reached
Benjamin Otte [Sun, 1 May 2011 06:00:50 +0000 (08:00 +0200)]
accellabel: Only daw accelerator after natural size has been reached

13 years agowindow: Remove overeagerness with new size guessing
Benjamin Otte [Sun, 1 May 2011 05:19:55 +0000 (07:19 +0200)]
window: Remove overeagerness with new size guessing

Don't use the guessed size when we are interested in the minimum size.
So now we can really shrink menubars.

This reverts parts of 08b2ac1d90b4f3dfa76d6a76fa04ca28c6b7ba12

13 years agomenubar: Rewrite size allocation to take natural sizes into account
Benjamin Otte [Sun, 1 May 2011 05:06:06 +0000 (07:06 +0200)]
menubar: Rewrite size allocation to take natural sizes into account

Yay for properly ellipsizing menubars!

13 years agomenubar: Only query ipadding when we actually need it
Benjamin Otte [Sun, 1 May 2011 03:38:47 +0000 (05:38 +0200)]
menubar: Only query ipadding when we actually need it

13 years agomenubar: Respect ipadding also in y direction
Benjamin Otte [Sun, 1 May 2011 03:30:42 +0000 (05:30 +0200)]
menubar: Respect ipadding also in y direction

13 years agotests: Make testmenubars make all menubar items ellipsized
Benjamin Otte [Sun, 1 May 2011 02:18:53 +0000 (04:18 +0200)]
tests: Make testmenubars make all menubar items ellipsized

This reproduces a bug in Nautilus. And it allows to shrink things,
woohoo!

13 years agosettings: Recompute styles when font name changes
Benjamin Otte [Sun, 1 May 2011 02:15:42 +0000 (04:15 +0200)]
settings: Recompute styles when font name changes

13 years agomenubar: Implement height-for-width / width-for-height
Benjamin Otte [Sat, 30 Apr 2011 04:41:56 +0000 (06:41 +0200)]
menubar: Implement height-for-width / width-for-height

Pretty much just required hooking up the 2 vfuncs, the previous code
reorg did the rest of the work.

13 years agomenubar: Actually query minimum and natural size of children
Benjamin Otte [Sat, 30 Apr 2011 04:34:58 +0000 (06:34 +0200)]
menubar: Actually query minimum and natural size of children

Previously, we only queried the minimum size and reported that as
natural size, too.

13 years agomenubar: Query only the necessary size from the child
Benjamin Otte [Sat, 30 Apr 2011 04:31:01 +0000 (06:31 +0200)]
menubar: Query only the necessary size from the child

The get_preferred_size() function was compied form elsewhere. We should
really make that a common API.

13 years agomenubar: Only compute the necessary size
Benjamin Otte [Sat, 30 Apr 2011 04:24:51 +0000 (06:24 +0200)]
menubar: Only compute the necessary size

There's no need to compute height when we're only interested in width

13 years agomenubar: compute in advance wether to add toggle size
Benjamin Otte [Sat, 30 Apr 2011 04:16:18 +0000 (06:16 +0200)]
menubar: compute in advance wether to add toggle size

13 years agomenubar: Change function prototype for size request function
Benjamin Otte [Sat, 30 Apr 2011 03:56:25 +0000 (05:56 +0200)]
menubar: Change function prototype for size request function

This is in preparation for redoing that function to actually care about
natural sizes.

13 years agomenubar: Remove unnecessary return_if_fail() in vfuncs
Benjamin Otte [Sat, 30 Apr 2011 03:50:17 +0000 (05:50 +0200)]
menubar: Remove unnecessary return_if_fail() in vfuncs

13 years agomenubar: Remove useless function declaration
Benjamin Otte [Sat, 30 Apr 2011 03:49:20 +0000 (05:49 +0200)]
menubar: Remove useless function declaration

13 years agomenubar: Remove unused variable
Benjamin Otte [Sat, 30 Apr 2011 03:42:00 +0000 (05:42 +0200)]
menubar: Remove unused variable

13 years agoimagemenuitem: No need to query image size by default
Benjamin Otte [Sat, 30 Apr 2011 03:31:05 +0000 (05:31 +0200)]
imagemenuitem: No need to query image size by default

Also makes the code look nicer, so woohoo

13 years agomenubar: Compute proper size even when invisible
Benjamin Otte [Sat, 30 Apr 2011 03:10:55 +0000 (05:10 +0200)]
menubar: Compute proper size even when invisible

13 years agoUpdated galician translations
Fran Diéguez [Sat, 30 Apr 2011 21:52:35 +0000 (23:52 +0200)]
Updated galician translations

13 years agoFix the build
Matthias Clasen [Fri, 29 Apr 2011 20:50:17 +0000 (16:50 -0400)]
Fix the build

G_GNUC_FUNCTION is deprecated.

13 years agoDrop the last remaining translated g_warning/g_error calls
Colin Walters [Fri, 29 Apr 2011 14:32:56 +0000 (10:32 -0400)]
Drop the last remaining translated g_warning/g_error calls

http://mail.gnome.org/archives/desktop-devel-list/2011-March/msg00069.html

https://bugzilla.gnome.org/show_bug.cgi?id=648943

13 years agoupdateiconcache: Don't translate g_warning/g_error
Colin Walters [Fri, 29 Apr 2011 14:24:21 +0000 (10:24 -0400)]
updateiconcache: Don't translate g_warning/g_error

13 years agoDisable gtk-update-icon-cache.exe.manifest with --enable-gtk2-dependency
Kalev Lember [Fri, 29 Apr 2011 11:56:01 +0000 (14:56 +0300)]
Disable gtk-update-icon-cache.exe.manifest with --enable-gtk2-dependency

When gtk-update-icon-cache building is suppressed, its manifest file
should also not be installed.

https://bugzilla.gnome.org/show_bug.cgi?id=648938