Carlos Garnacho
92102c3bf4
Make GtkSeparator use GtkStyleContext
2010-12-24 19:38:14 +01:00
Carlos Garnacho
7c35994bda
Make GtkPaned use GtkStyleContext
2010-12-24 19:38:06 +01:00
Carlos Garnacho
760d6d1e78
Do not set "entry" class in spinbutton buttons.
...
Also, fix an unpaired gtk_style_context_save() call.
2010-12-24 19:37:56 +01:00
Carlos Garnacho
2bd221d215
Bug 637910 - GtkSpinner - does not animate
...
Fix widget-to-window coordinates translation in the
style context animation code.
2010-12-24 19:37:49 +01:00
Carlos Garnacho
7f099a9a23
Make GtkArrow use GtkStyleContext
2010-12-24 19:37:41 +01:00
Carlos Garnacho
e5e95934ba
Fix color name (as of rgb.txt) parsing in symbolic colors
...
The end of the substring wasn't being detected properly.
2010-12-24 19:37:30 +01:00
Carlos Garnacho
1cecb10584
Make GtkAccelLabel use GtkStyleContext.
2010-12-24 19:37:20 +01:00
Kristian Rietveld
c659542333
Check for NULL pointer
2010-12-24 14:45:47 +01:00
Matthias Clasen
55ca24d1d4
Drop GtkThemeEngine
...
It is not used anymore.
2010-12-23 22:16:50 -05:00
Matthias Clasen
ca493cd20d
Fix a few warnings
2010-12-23 22:11:50 -05:00
Matthias Clasen
7ff572dfd3
Add some missing includes
2010-12-23 22:11:28 -05:00
Matthias Clasen
1bcf8a0027
Remove sealed members from GtkSettings
2010-12-23 21:56:50 -05:00
Stef Walter
433a22cd11
Remove private header from gtkwindow.h
...
https://bugzilla.gnome.org/show_bug.cgi?id=637907
2010-12-23 19:23:48 -06:00
Matthias Clasen
7650482e46
Add sufficient API to make gail work
...
The accessible implementations should really be folded into
gtk proper. Until that happens, we need some more guts exposed...
2010-12-23 20:11:38 -05:00
Matthias Clasen
2ed81aa57c
Remove sealed members from GtkMenuShell
2010-12-23 18:21:53 -05:00
Matthias Clasen
c5b020e628
Remove sealed members from GtkMenu
2010-12-23 15:51:20 -05:00
Matthias Clasen
96d1c2c46e
Reserve space for a pointer in GtkDrawingArea
...
It was pointed out that this will let us add a private pointer
without abi break in the future, should we ever need one.
2010-12-23 13:01:21 -05:00
Matthias Clasen
3e08a23237
Drop long-obsolete linux framebuffer APIs
...
The functions to set frames on windows stopped being interesting
when the linux framebuffer port was dropped, many years ago.
Similar functionality may come back with client-side decorations
in the future.
2010-12-23 12:59:49 -05:00
Kristian Rietveld
9ab2786991
GtkCellRendererText: use PANGO_PIXELS_CEIL for text_width
...
Usually pango_layout_get_pixel_extents() is used, which uses
PANGO_PIXELS_CEIL on the rectangle's width. This commit makes the new
function gtk_cell_renderer_text_get_preferred_width() consistent with
this.
This fixes rounding errors on Mac OS X, where we were seeing tree views
with a double height for a single line of text, while the usual single
row height would have been sufficient.
2010-12-23 18:41:23 +01:00
Kristian Rietveld
31536736ea
Hide GtkTreeViewColumn buttons when header_window is not visible
2010-12-23 18:19:56 +01:00
Matthias Clasen
3a6800a898
Some small doc corrections
2010-12-23 11:18:50 -05:00
Kristian Rietveld
07110a6170
quartz: we must provide a window on drag begin now
2010-12-23 14:17:42 +01:00
Brian Cameron
f90365d46b
Fix spacing.
2010-12-22 21:58:40 -06:00
Brian Cameron
e88a44f4c9
Fix bug #637721 , fix function prototype.
2010-12-22 21:57:12 -06:00
Matthias Clasen
d77dcfb9b2
Better fix for keynav dnd
...
With proper rounding, we can go back to a 'small step' of 1.
2010-12-22 22:33:40 -05:00
Matthias Clasen
7e0a30b752
Abort a drag when a keynav drop has not destination
...
This was claimed to cause problems for Chromium, see bug 599130.
Also work around apparent rounding errors in XIWarpDevice by
setting the 'small step' for keynav dnd to 2 instead of 1 - I notice
that a warp seems to sometimes warp a little less than I tell it to,
and if I tell it to only move by 1 pixel then moving less means
that you are stuck.
2010-12-22 21:47:14 -05:00
Matthias Clasen
9baf24f87e
Add a default handler for drag_failed
...
And use it in notebook dnd.
2010-12-22 18:46:29 -05:00
Matthias Clasen
e6693ab840
Avoid invariant checking spew in gnome-shell
...
For normal toplevels, visible is tightly bound to mapped, but for
something like a toplevel that exists within a Clutter stage we
may want to make mapping dependenton external factors, so we shouldn't
actually checked that !mapped toplevels are !visible.
Pointed out by Owen Taylor,
https://bugzilla.gnome.org/show_bug.cgi?id=637834
2010-12-22 16:54:52 -05:00
Kristian Rietveld
4a6c50c298
gtkclipboard-quartz: use accessors and add missing include
2010-12-22 17:47:03 +01:00
Kristian Rietveld
44d9fb2d71
gtkdnd-quartz: use accessors and add missing include
2010-12-22 17:47:03 +01:00
Kristian Rietveld
7979be1430
quartz: gtkquartz.c: add missing include
2010-12-22 17:47:03 +01:00
Tristan Van Berkom
e20503836c
Fixed GtkGrid GtkContainerClass->forall() to not use a for loop.
...
This loop needs to be safe for removing children in a forall loop.
2010-12-22 21:25:53 +09:00
Matthias Clasen
a6b05106a5
GtkAboutDialog: Be slightly more flexible when listing credits
...
Make sure we render credits ok that are occurring in the wild,
such as "Contact us at:", "<foo@bar>" or "guy1\nguy2\nguy3"
https://bugzilla.gnome.org/show_bug.cgi?id=637763
https://bugzilla.gnome.org/show_bug.cgi?id=637736
2010-12-22 01:03:58 -05:00
Matthias Clasen
4cc76927b1
Show translators properly in the new about dialog
...
translator-credits is a single string, typically with newline-
separated names.
2010-12-22 00:31:05 -05:00
Robert Ancell
f4419be0d6
Fix DSO link issues
2010-12-22 15:01:50 +11:00
Matthias Clasen
4b10167ce6
Set a default value for rgba style properties
2010-12-21 18:18:34 -05:00
Matthias Clasen
5b6bdcf016
Fix a tag mismatch in the docs
2010-12-21 18:18:34 -05:00
Matthias Clasen
4331d62567
Add gtkselectionprivate.h to Makefile
2010-12-21 17:57:40 -05:00
Matthias Clasen
7b6d759b04
Temporarily disable combo box entry test
...
This one got broken by the treeview refactoring, I assume.
2010-12-21 14:43:17 -05:00
Owen W. Taylor
a2dddb1da0
Return an appropriate GtkStyle from gtk_rc_get_style_by_paths()
...
Always returning NULL (no match) from gtk_rc_get_style_by_paths()
means that looking up colors and style properties based on the
GtkStyle will give default values instead of themed values. We can
do better by returning a GtkStyle based on a GtkWidgetPath that we
figure out from the values passed in to get_style_by_paths().
https://bugzilla.gnome.org/show_bug.cgi?id=637520
2010-12-21 14:27:25 -05:00
Matthias Clasen
10a7f49fe7
Check the right library for symbols
2010-12-21 12:41:29 -05:00
Matthias Clasen
ecddaa7a8e
Disable the GtkPlug xi2 hack more thoroughly
2010-12-21 12:07:10 -05:00
Benjamin Otte
4db086da4b
x11: Rename GdkDisplayX11 to GdkX11Display
...
Also rename all the macros etc.
2010-12-21 12:07:07 -05:00
Benjamin Otte
85bd61778f
API: gdk: GDK_DISPLAY_OBJECT() => GDK_DISPLAY()
...
GDK_DISPLAY_OBJECT is now deprecated. No need to keep failures from
gtk1 around.
2010-12-21 12:07:07 -05:00
Benjamin Otte
66f7c3a562
API: gdk: gdk_display_warp_device() => gdk_device_warp()
...
warping devices has nothing to do with displays, so putting it there
seems weird.
2010-12-21 12:07:06 -05:00
Benjamin Otte
8f1f743903
gtk: Use g_object_unref instead of gdk_cursor_unref
2010-12-21 12:07:05 -05:00
Matthias Clasen
572bb20011
Deal with property encoding functions
...
Move everything dealing with compound text to be X11 specific
Only gdk_text_property_to_utf8_list and gdk_utf8_to_string_target
are kept across backends, so add vfuncs for these.
Also, remove the non-multihead-safe variants of all these.
2010-12-21 12:07:03 -05:00
Matthias Clasen
61104d58ea
Avoid unnecessary use of gdk conversion routines
...
We can use use gtk_selection_data_get_uris, instead of
manually doing the conversion ourselves.
2010-12-21 12:07:03 -05:00
Matthias Clasen
fdabc9585d
Drop g[dt]k_set_locale
...
These functions were essentially just calling setlocale anyway.
The X11 version was also setting a gdk_use_mb variable that
is not used anywhere.
2010-12-21 12:07:02 -05:00
Benjamin Otte
33417c36f1
plug: Comment hack for xinput that used private x11 backend API
2010-12-21 12:07:00 -05:00