Tristan Van Berkom
84e2a854dd
Merge branch 'master' into native-layout
...
Conflicts:
gtk/gtktreeview.c
2010-06-29 17:13:19 -04:00
Tristan Van Berkom
237d97dc25
Augmented the wrapping treeview test to include a scrolled window.
2010-06-29 17:06:53 -04:00
Tristan Van Berkom
6d47681722
GtkTreeview now watches the allocation of the parent scrolled window
...
at allocation time in order to detect possible feedback loops.
To avoid locking up the desktop some feedback protection is needed,
this patch is not the best but as far as I can see it does the job.
Ideally we should be looking into a GtkScrollable interface that
takes this height-for-width possibility into account.
The problem being that some height-for-width calculations at
allocation time are asynchronous and at some sizes cause the
height-for-width logic to compete with parent allocations
which change due to scrollbars toggling visiblity.
Specific considerations
a.) The child treeview should not have knowlage of its parents
allocation or the size of the scrollbars (this patch cheats
that idealistic rule).
b.) The parent scrolled window cannot safely determine if a child
wants its size renegotiated based on a content change or based
on a previous allocation
2010-06-29 17:01:13 -04:00
Tristan Van Berkom
0809e06881
Made scrolled windows forward along the height-for-width request in
...
the off-chance that both scrollbars are set to never appear.
2010-06-29 11:24:00 -04:00
Benjamin Otte
95a1c31c18
configure: Bump required Cairo version to 1.9.10
2010-06-29 17:05:28 +02:00
Benjamin Otte
5a02283fbf
API: Remove all GdkRegion API
...
Remove the deprecated region APIs completely from GTK.
https://bugzilla.gnome.org/show_bug.cgi?id=613284
2010-06-29 16:06:58 +02:00
Benjamin Otte
6c5dffd1a3
examples: Port example to use cairo region API
...
https://bugzilla.gnome.org/show_bug.cgi?id=613284
2010-06-29 16:06:38 +02:00
Benjamin Otte
300e6b84cd
s/GdkRegion/cairo_region_t/ in all of gtk
...
https://bugzilla.gnome.org/show_bug.cgi?id=613284
2010-06-29 16:06:38 +02:00
Benjamin Otte
3e96cfe8fc
Deprecate the GdkRegion API
...
Includes fixing all callers to use the cairo region API instead. This is
usually just replacing the function names, the only difference is
gdk_region_get_rectangles() being replaced by
cairo_region_num_rectangles() and cairo_region_get_rectangle() which
required a bit more work.
https://bugzilla.gnome.org/show_bug.cgi?id=613284
2010-06-29 16:06:38 +02:00
Benjamin Otte
52200eee01
Remove _gdk_region_new_from_yxbanded_rects()
...
It was an internal function and we can use
cairo_region_create_rectangles() instead.
https://bugzilla.gnome.org/show_bug.cgi?id=613284
2010-06-29 16:06:38 +02:00
Benjamin Otte
78018767ba
Implement GdkRegion in terms of cairo_region_t
...
Only changes in headers: GdkRegion and GdkRectangle are typedeffed to
cairo_region_t and cairo_rectangle_int_t respectively. The region type
was opaque anyway so it doesn't matter and the rectangle types are
identical.
https://bugzilla.gnome.org/show_bug.cgi?id=613284
2010-06-29 16:06:38 +02:00
Matthias Clasen
b6cc7dbd21
Make sure we always include gdk-pixbuf in the gdk requires
...
This is needed since we include gdk-pixbuf.h in public gdk headers
2010-06-29 07:57:40 -04:00
Colin Walters
6aae994a66
Support NOCONFIGURE (from gnome-common)
...
gnome-common's autogen.sh uses NOCONFIGURE to skip running configure.
Support that in addition to the current AUTOGEN_SUBDIR_MODE.
2010-06-28 17:46:31 -04:00
Javier Jardón
b4ed51fd93
Remove XID_FONT_BIT
2010-06-28 23:38:03 +02:00
Javier Jardón
06e48c50a1
Remove GDK_GC_FONT
2010-06-28 23:38:03 +02:00
Christian Dywan
655dcff096
Remove deprecated GdkFont
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=604196
Signed-off-by: Javier Jardón <jjardon@gnome.org >
2010-06-28 23:38:03 +02:00
Javier Jardón
34573b53f3
[GtkStyle] Remove deprecated GdkFont usage
2010-06-28 23:38:03 +02:00
Javier Jardón
c1affa4f3c
Remove deprecated code from X interaction
2010-06-28 23:38:03 +02:00
Javier Jardón
c3987f9ee2
[GdkGC] Remove deprecated GdkFont from GdkGCValues structure
2010-06-28 23:38:03 +02:00
Javier Jardón
418d84f311
[GtkFontSel] Remove GdkFont "font" deprecated property
2010-06-28 23:38:02 +02:00
Matthias Clasen
18132ecae5
Differentiate between stepper B and C in the detail string
2010-06-28 14:45:25 -04:00
Colin Walters
905f988166
Revert "Add length to gtk_tree_path_get_indices"
...
This reverts commit eebb16eb1a .
Was an accidental commit.
2010-06-28 14:15:10 -04:00
Colin Walters
17f8b5e581
GdkX11.gir depends on Gdk.gir
2010-06-28 13:50:57 -04:00
Colin Walters
eebb16eb1a
Add length to gtk_tree_path_get_indices
...
The old version wasn't introspectable as it didn't have a length
return parameter. Also, delete gtk_tree_path_get_indices_with_depth,
since it's no longer needed.
2010-06-28 13:50:36 -04:00
Matthias Clasen
289f3b1b2b
Avoid a stray 'yes' in configure output
...
The corresponding AC_MSG_CHECKING line got lost
2010-06-28 12:36:33 -04:00
Benjamin Otte
42abeadbb8
Can't select file on file browser after changing sort order
...
The row values are 1-indexed not 0-indexed, this has to be taken into
account when producing the new_order array.
https://bugzilla.gnome.org/show_bug.cgi?id=621414
2010-06-28 14:19:18 +02:00
Benjamin Otte
cd266cb8de
Make declaration return a boolean when the function does that
2010-06-28 14:19:18 +02:00
Benjamin Otte
14e0cbe2d3
Get rid of navigation region in GtkMenu
...
This completes the move to get rid of using a GdkRegion for the
navigation region and the only user of gdk_region_polygon(). We keep
track of the triangle and compute in/out points ourselves now.
Unfortunately the DRAW_STAYUP_TRIANGLES debugging code doesn't work
using cairo, so I removed it completely.
2010-06-28 14:19:18 +02:00
Benjamin Otte
7ad08f19aa
Create the navigation region without flipping
...
Gets rid of some code in preparation to switching to do the computation
completely without GdkRegion.
2010-06-28 14:19:18 +02:00
Yaron Shahrabani
9928158d41
Updated Hebrew translation.
2010-06-28 14:42:40 +03:00
Yaron Shahrabani
680c1d26e3
Updated Hebrew translation.
2010-06-28 13:42:58 +03:00
Tristan Van Berkom
6d9d23009c
Merge branch 'master' into native-layout
2010-06-27 18:40:20 -04:00
Tristan Van Berkom
93b76327ec
Changed default window width of wrapping treeview height-for-width demo.
2010-06-27 18:37:53 -04:00
Tristan Van Berkom
a30585167f
Filtered GtkCellSizeRequest apis to explicitly return GtkCellRenderer fixed sizes if any are set.
2010-06-27 18:36:53 -04:00
Tristan Van Berkom
deab62c29e
Changed private api to allow setting a column dirty without resetting the width
...
(used when only the height is known to be dirty).
2010-06-27 18:35:54 -04:00
Tristan Van Berkom
02c37eb098
Fixed initial height of treeview when cells are wrapping to allocation.
...
This commit also adresses the refresh a little more gently and avoids
a lockup when resizing the 'editable cells' demo.
2010-06-27 18:33:56 -04:00
Tor Lillqvist
e545ed58ed
Drop a leftover reference to libgdk_pixbuf-3.0.la
2010-06-28 00:28:55 +03:00
Tor Lillqvist
f0e24348a0
We need to link gdk with the gio library for non-X11 backends
...
(For X11, we link with gio-unix which takes care of it.)
2010-06-28 00:20:44 +03:00
Tor Lillqvist
4aa75fcf43
Revert "Use wide character API in the Windows IME module"
...
Ha, pango_win32_font_logfontw hasn't been exported from libpangowin32
after all due to a typo. This will have to wait. And actually
libpangowin32 is supposed to be deprecated surely, so that
functionality should be moved to libpangocairo or something.
This reverts commit 804effba99 .
2010-06-27 23:44:14 +03:00
Tor Lillqvist
d7ceebda3f
Drop gdk-pixbuf files
2010-06-27 23:30:02 +03:00
Tor Lillqvist
804effba99
Use wide character API in the Windows IME module
2010-06-27 23:21:41 +03:00
Philip Withnall
d78cee6791
Add allow-none to gdk_window_set_cursor()
2010-06-27 19:19:39 +01:00
Jorge González
1c14997df2
Updated Spanish translation
2010-06-27 13:10:13 +02:00
Emmanuele Bassi
5789ea35cc
Do not return values from a function returning void
2010-06-27 11:28:44 +01:00
Kristian Rietveld
7f2e4c38a9
Move Leopard-specific type definitions to gdkquartz.h
...
Update includes subsequently where it matters. Fixes build on Mac OS
X 10.4.
(cherry picked from commit e634f3fbe0 )
2010-06-27 11:00:42 +02:00
Kristian Rietveld
64f11c366a
Refactor to use API that's available in OS X 10.4 as well
...
(cherry picked from commit 3770d914ec )
2010-06-27 11:00:31 +02:00
John Ralls
98d47b57bf
Bug 622333 - Crash in gdk_window_impl_quartz_begin_paint_region
...
(cherry picked from commit 093a867e51 )
2010-06-27 11:00:20 +02:00
Kristian Rietveld
019ccc686d
Flip clip mask image when setting clip mask on GC
...
(cherry picked from commit 9f5f47f8be )
2010-06-27 11:00:09 +02:00
Kristian Rietveld
88cae1769b
Rework color translation to support gray scale and bitmaps
...
(cherry picked from commit 49f72c1fb4 )
2010-06-27 10:59:46 +02:00
Kristian Rietveld
18b233fe2a
Add gray visual, implement "get_best" functions
...
(cherry picked from commit 42d07ad6ce )
2010-06-27 10:59:11 +02:00