Commit Graph

20846 Commits

Author SHA1 Message Date
Tristan Van Berkom
4b1315cedc Changed initial values for requisition from -1 to 0.
When doing size-requests and get_natural_size() calls, use 0 as
the base value instead of -1, because size_request code assumes
that widget->requesition is initialized at 0.
2010-04-04 16:38:36 -04:00
Tristan Van Berkom
75b8f7d3ae Fixed GtkBox to not call get_desired_size() on a child when no child is present. 2010-04-04 16:37:06 -04:00
Tristan Van Berkom
1212f263c3 Making function private in gtktreeviewcolumn to pass the abi test. 2010-04-03 21:37:42 -04:00
Tristan Van Berkom
ae2c0b02c3 Refixed merge conflicts for GTK_WIDGET_MAPPED/GTK_WIDGET_VISIBLE 2010-04-03 21:35:18 -04:00
Tristan Van Berkom
5d83f5eba5 Fixed internal native layout algorythm wrt size-request singals/implementations.
Because "size-request" signal can be handled by signal connections as well
as by third party derived classes it is necessary to always fire the
"size-request" signal for every recalculation of the widget requisition,
now gtksizegroup.c:do_size_request() fires the signal first and allows it
to overflow the minimum/natural sizes returned by extended layout
implementations.

GtkWidget->get_natural_size() is now left assigning default -1 values to
ensure they both get overridden by the size-request handling.
2010-04-03 20:59:28 -04:00
Tristan Van Berkom
a33053db74 Fixed extended layout implementors to not call ->get_desired_size() directly
Getting the desired size of a GtkWidget must always be done with
gtk_widget_get_desired_size() and never with
gtk_extended_layout_get_desired_size() directly as the former passes
through size group logic and updates the widget->requisition cache.
2010-04-03 20:59:28 -04:00
Tristan Van Berkom
8413f22d90 Removed casing of GTK_IS_EXTENDED_LAYOUT() from GtkViewport. 2010-04-03 20:59:28 -04:00
Tristan Van Berkom
61fab15139 Fixed invalid pointer access in gtk_tree_view_column_get_desired_size() 2010-04-03 20:59:28 -04:00
Tristan Van Berkom
22de1a7c65 Partially fixed GtkTreeview for extended layout
Removed the size_request() handling on the class and calculate
minimum size from get_desired_size(); base the natural width on
either the minimum of column headers, or a greater natural request
of the columns renderers.
2010-04-03 20:59:28 -04:00
Tristan Van Berkom
a18af0b980 Applied Jan Arne Petersen's patch for GtkScrolledWindow
Applied patch to add height-for-width/width-for-height suppot
to GtkScrolledWindow plus modifications to use gtk_widget_get_desired_size()
to query children sized instead of directly calling the layout api, plus
removed the ->size_request() implementation interfering with the mess.
2010-04-03 20:59:28 -04:00
Tristan Van Berkom
894e887370 Fixed GtkCellRendererText invalid pointer access.
Fixed get_desired_size() to not access parameters when NULL and
also not to access priv->object if it hasnt yet been assigned.
2010-04-03 20:59:27 -04:00
Jan Arne Petersen
0fbdb3c73f Take extended layout into account in viewport
Make sure the right height is used in GtkViewPort.
2010-04-03 20:59:27 -04:00
Matthias Clasen
c4dec47536 Don't use gio-unix on win32
We only need gio-unix when building the x11 backend.
Reported by Yevgen Muntyan in bug 614540.
2010-04-03 20:59:27 -04:00
Inaki Larranaga Murgoitio
f48299c86e Updated Basque language 2010-04-03 20:59:27 -04:00
Inaki Larranaga Murgoitio
67eccabfca Updated Basque language 2010-04-03 20:59:27 -04:00
Inaki Larranaga Murgoitio
923e37e908 Updated Basque language 2010-04-03 20:59:27 -04:00
Kenneth Nielsen
829cfe21e1 Updated Danish translation 2010-04-03 20:59:26 -04:00
Runa Bhattacharjee
65a322c94d Updated Bengali India Translation 2010-04-03 20:59:26 -04:00
Runa Bhattacharjee
93df7c133e Updated Bengali India Translation 2010-04-03 20:59:26 -04:00
Jordi Serratosa
299cd7fec1 Fixes to Catalan translation 2010-04-03 20:59:26 -04:00
Tristan Van Berkom
523283bb36 Fixed possible devision by zero in size negotiations
Fixed GtkToolItemGroup to avoid deviding by zero when all children
are invisible or there are no children. bgo #613974.
2010-04-03 20:59:26 -04:00
Tristan Van Berkom
9fe9898045 Added missing default events in realize() implementations
Added gtk_widget_get_events() to the event masks declared by
GtkToolPalette & GtkToolItemGroup.
2010-04-03 20:59:26 -04:00
Tristan Van Berkom
96793999df Added missing break statement to mutator: gtk_tool_item_group_set_property() 2010-04-03 20:59:26 -04:00
Benjamin Otte
80efec2a8c Fix error case in filesystem model
We should not unref the model here, it might not even exist anymore.
Instead check if it exists and only use it if it does.
The unref was leftover from a previous fix in
ba9f53397f.

Spotted by Matthias Clasen in
https://bugzilla.gnome.org/show_bug.cgi?id=614099
2010-04-03 20:59:25 -04:00
David Planella
9441d96620 Updated Catalan translation with a couple of fixes 2010-04-03 20:59:25 -04:00
David Planella
0df8e5e3f0 Updated Catalan translation 2010-04-03 20:59:25 -04:00
Jamil Ahmed
a4a0019586 Updated Bengali translation 2010-04-03 20:59:25 -04:00
Christian Dywan
69b241c66d Fix a misspelling in gtk_cell_view_new_with_markup
This fixes bug 613887.
2010-04-03 20:59:25 -04:00
Ask H. Larsen
e8f9085426 Updated Danish translation 2010-04-03 20:59:25 -04:00
Maxim V. Dziumanenko
5559cbeb70 Updated Ukrainian translation 2010-04-03 20:59:25 -04:00
Maxim V. Dziumanenko
8e0088dcea Updated Ukrainian translation 2010-04-03 20:59:24 -04:00
Jamil Ahmed
839a347db1 Updated Bengali translation 2010-04-03 20:59:24 -04:00
Jamil Ahmed
b19d76a156 Updated Bengali translation 2010-04-03 20:59:24 -04:00
Hiroyuki Ikezoe
d995132ca5 [directfb] Fix compile error on DirectFB backend.
Add a stub for gdk_keymap_map_virtual_modifiers.
2010-04-03 20:59:24 -04:00
Hiroyuki Ikezoe
61a73b3df6 Use g_value_take_string to avoid redundant invoking g_free. 2010-04-03 20:59:24 -04:00
Javier Jardón
7ef003f7d4 Fix compilation warning: Use GtkWidget instead GtkMenuItem 2010-04-03 20:59:23 -04:00
Matthias Clasen
aaf541903b Fix a 64bit issue
Thank you libpng, for typedef unsigned long png_uint_32.
2010-04-03 20:59:23 -04:00
Matthias Clasen
6af58c6208 Add notes about gobject-introspection 2010-04-03 20:59:23 -04:00
Matthias Clasen
3be389fe96 Bump version to 2.20.1 2010-04-03 20:59:23 -04:00
Matthias Clasen
5a5a24d4dc 2.20.0 2010-04-03 20:59:23 -04:00
Miloš Popović
39779813ab Updated Serbian translations 2010-04-03 20:59:20 -04:00
Matthias Clasen
f743b2460a Bump required version of glib in INSTALL.in, too 2010-04-03 20:59:20 -04:00
Matthias Clasen
cbfdfb8450 Set version to 2.20.0 2010-04-03 20:59:20 -04:00
Matthias Clasen
381d892079 Another small doc cleanup 2010-04-03 20:59:20 -04:00
Matthias Clasen
7431550129 Minor doc cleanup 2010-04-03 20:59:20 -04:00
Matthias Clasen
a22afdb642 Updates 2010-04-03 20:59:20 -04:00
Wouter Bolsterlee
15bc2b787b Dutch translation updated by Tino Meinen 2010-04-03 20:59:20 -04:00
Sjoerd Simons
177973bdfc Prevent the destruction of the menu label on page removal
In certain cases the menu label of a notebook page will be reused after the
page was removed from the notebook, for instance when a page is dragged from
one notebook to another. For such cases make sure that the menu label isn't
destroyed as part of destroying the menu item it was in.
2010-04-03 20:59:19 -04:00
Matthias Clasen
b1ca3163a6 Add a dependency for Gtk-2.0.gir on Gdk-2.0.gir
Another parallel build fix, see bug 610946.
2010-04-03 20:59:19 -04:00
Damien Lespiau
2055066d92 introspection: Fix parallel builds
One needs to add an explicit dependency between the gir files and the
.la libtool wrapper as this dependency is not added automatically by
Makefile.introspection. Not adding these breaks parallel builds as make
does not wait for the .la to be generated before launching g-ir-scanner.
2010-04-03 20:59:19 -04:00