Benjamin Otte
44c02fcbb1
API: gdk: Change get_drag_window() API
...
The previous function gdk_drag_get_protocol_for_display() took native
window handles, so it had to be changed. Because it didn't do what it
was named to do (it didn't return a protocol even though it was named
get_protocol) and because it doesn't operate on the display anymore but
on the actual window, it's now called gdk_window_get_drag_protocol().
2011-02-01 18:51:57 +01:00
Benjamin Otte
9210347600
API: gdk: Make GDK_DRAG_PROTOCOL_NONE equal to 0
...
THis way, we can do comparisons like "if (protocol)"
2011-02-01 18:51:57 +01:00
Benjamin Otte
5bc04bc07b
API: gdk: Make GdkEventSelection.requestor a GdkWindow
...
instead of a GdkNativeWindow. Also change gdk_selection_notify() API to
take a GdkWindow to match this change.
2011-02-01 18:51:57 +01:00
Benjamin Otte
c2a5d715d5
x11: Use gdk_x11_window_foreign_new_for_display() unconditionally
...
gdk_x11_window_lookup_window() calls are done by this function alreayd,
so no need to do them manually.
2011-02-01 18:51:57 +01:00
Matthias Clasen
5441ecd350
Fix a warning
2011-02-01 09:48:32 -05:00
Matthias Clasen
38045e789c
Remove a dead member
...
The client_pointer field in GdkX11DeviceManagerXI2 is not used anywhere.
2011-02-01 09:44:33 -05:00
Matthias Clasen
c79413a1df
Make xim work with XI2
...
We cannot totally ignore core key events, since XFilterEvent generates
those at times and relies on them having an effect.
https://bugzilla.gnome.org/show_bug.cgi?id=640965
2011-02-01 09:42:53 -05:00
Matthias Clasen
8448780a6c
Make treeview expanders work reliably
...
It turns out that the gtk_grab_remove() can trigger a do_prelight()
call, which may end up changing prelight_node, and then the state
gets messed up. Moving the grab removal until after we're done with
button_pressed_node and prlight_node makes expanders work reliably.
One thing that is still not right is that the expander doesn't get
prelight again after the animation is done, if you manage to release
without any additional motion events.
https://bugzilla.gnome.org/show_bug.cgi?id=641039
2011-02-01 01:32:02 -05:00
Benjamin Otte
c332ac207a
gdk: Remove GdkEventClient
...
... and all APIs making use of it.
That code like it hasn't been touched in years, Google codesearch
didn't find any users and most importantly it's a horrendous API, so
let's just make it die instead of having to port it over to
non-GdkNativeWindow usage, which would be required for multi-backend
GDK.
http://mail.gnome.org/archives/gtk-devel-list/2011-January/msg00049.html
2011-02-01 06:33:02 +01:00
Benjamin Otte
040b21e7d7
tests: Remove refreh button from testtoolbar test
...
It didn't work and did that by using APIs that are about to go away.
2011-02-01 06:33:02 +01:00
Benjamin Otte
cf94070586
testgtk: Remove ability to reload all rc files
...
That ability didn't work for a while anyway, so removing client messages
doesn't hurt.
2011-02-01 06:33:02 +01:00
Benjamin Otte
9e401bef68
tests: Remove clientmessage test
...
Client messages will not be handled by GDK3 anymore, so no need to test
them.
2011-02-01 06:33:02 +01:00
Benjamin Otte
8ecd420ede
x11: Do dnd event handling via gdk_window_add_filter()
2011-02-01 06:33:02 +01:00
Benjamin Otte
180cd853fc
x11: Use macros for byte order to set byte order
...
No need to run sophisticated functions to guess it.
2011-02-01 06:33:02 +01:00
Benjamin Otte
609ddee632
x11: Register wm_protocols function with gdk_window_add_filter()
...
The client message code is about to go away, so we need to use a
different way to get at ClientMessage output.
2011-02-01 06:33:01 +01:00
Benjamin Otte
e67347a3c8
x11: Fill in event->any.window before calling filter functions
...
a) We advertise it for GdkFilterFunc
b) It's necessary to differentiate between different event types with
multi-backend GTK.
2011-02-01 06:33:01 +01:00
Benjamin Otte
d217f4d09e
x11: Handle motif client message filter just like xdnd filters
2011-02-01 06:33:01 +01:00
Benjamin Otte
14cb485d22
x11: Use event->any.window instead of any random member
2011-02-01 06:33:01 +01:00
Benjamin Otte
fac914d70c
API: gtk: Remove client_event vfunc from GtkWidget
...
Also remove the (de-facto unused) implementation from GtkWindow that was
only used for sockets/plugs.
2011-02-01 06:33:01 +01:00
Matthias Clasen
b52db73f59
Deal gracefully with unowned selections
...
If a selection looses its owner without a replacement, owner is
None, which we did not handle very well.
https://bugzilla.gnome.org/show_bug.cgi?id=641042
2011-01-31 19:35:51 -05:00
Dan Winship
fc43e42bf2
Fix several bugs handling GtkTrayIcon symbolic colors
...
https://bugzilla.gnome.org/show_bug.cgi?id=641059
2011-01-31 19:13:29 -05:00
Matthias Clasen
6d218084c3
Clarify models vs callbacks in entry completion docs
...
See https://bugzilla.gnome.org/show_bug.cgi?id=641073
2011-01-31 19:01:16 -05:00
Kristian Rietveld
9dcdca2501
Don't use GTK_IS_PLUG for non-X11 backends
2011-02-01 00:26:04 +01:00
Kristian Rietveld
73afbc954a
Check whether mask is NULL
2011-01-31 23:54:38 +01:00
Kristian Rietveld
119d29dcb9
Only include gtktrayicon.h when building for X11
...
GtkTrayIcon depends on GtkPlug which is X11-specific. This fixes the
build for Quartz.
2011-01-31 23:54:38 +01:00
Matthias Clasen
726b0d8736
Bandaid fix for icon view subclassing
...
I've decided that it is isn't feasible to make cell areas runtime-settable
in the time we have left before 3.0, therefore, I'm going with the
approach to allow init() functions to instantiate the default cell area
and issue a warning if a construct property is ignored.
This is not ideal, but it keeps existing icon view and combo box
subclasses working.
https://bugzilla.gnome.org/show_bug.cgi?id=639139
2011-01-31 17:39:42 -05:00
Stefan Kost
1f3a5a8d92
Clarify key-{press,release}-event docs.
...
Mention key-repeat in key-press and fix a copy'n'paste in key-release docs.
2011-01-31 23:10:10 +02:00
Tristan Van Berkom
a37976dae0
Fixed GtkToolPalette ->forall implementation to be gtk_widget_destroy friendly
...
The forall() loop was buggy as it was skipping items in the list when
the current item gets removed from the groups array as a result of
calling the callback (causing memory leaks).
2011-02-01 05:02:56 +09:00
Tristan Van Berkom
ddb4b3ebe2
Added "shift" modifier versions of keybings for GtkFileChooser "folder-up"/"folder-down" bindings.
...
Also updated documentation, closes bug 322926
2011-02-01 05:02:56 +09:00
Daniel Mustieles
c01c018fde
Updated Spanish translation
2011-01-31 19:33:55 +01:00
Matthias Clasen
30958ea8ad
Fix a segfault in gtk_statusbar_remove_all
...
https://bugzilla.gnome.org/show_bug.cgi?id=640487
2011-01-31 11:50:23 -05:00
Emmanuele Bassi
d51c617e13
css-provider: Fix up the Switch style
...
As it was with the old style, when the Switch is in the "on" state the
trough should be using the selected background color.
2011-01-31 16:21:36 +00:00
Matthias Clasen
cb498c2101
Speed up expander animation
...
Go back to 200ms, which is what we had in GTK+ 2.x.
Themes can change this, of course.
2011-01-31 10:51:09 -05:00
Matthias Clasen
38f6065b2b
Make GtkEntryCompletion::match-selected arguments consistent
...
For keynav, we were still passing it the filter model.
https://bugzilla.gnome.org/show_bug.cgi?id=640698
2011-01-31 10:48:40 -05:00
Matthias Clasen
fb860a9527
Add a note to ::fill and ::expand docs
2011-01-31 10:26:28 -05:00
Matthias Clasen
a26ffdc740
Prevent a segfault in GtkPlug
...
The grabbed_keys might be NULL, so deal with that.
https://bugzilla.gnome.org/show_bug.cgi?id=641023
2011-01-31 10:17:21 -05:00
Matthias Clasen
0208539c4b
Remove RC file references from docs where appropriate
2011-01-31 09:34:46 -05:00
Matthias Clasen
677c8c2189
Remove references to RC files in the env var docs
2011-01-31 09:29:40 -05:00
Matthias Clasen
6a8d494ba1
Fix GTK_SPINNER_CLASS macro
...
https://bugzilla.gnome.org/show_bug.cgi?id=640999
2011-01-31 07:39:06 -05:00
Matthias Clasen
09a52de478
Add a missing id to the docs
2011-01-31 07:39:06 -05:00
Baurzhan Muftakhidinov
430f53bb52
Updated Kazakh translation
2011-01-31 16:22:38 +06:00
Benjamin Otte
9864445b1f
API: gdk: Change GdkEventOwnerChange to not take GdkNativeWindow
...
Use GdkWindow instead. This requires calling
gdk_x11_window_foreign_new_for_display(), so might cause a slight
performance penalty, but is required to be portable.
2011-01-31 07:17:31 +01:00
Matthias Clasen
cfa6505504
Mention key themes in the migration guide
2011-01-30 23:53:19 -05:00
Matthias Clasen
175c57ebd7
Small optimization
...
We can use the fact that all involved strings are interned; also
deprecate gtk_binding_set_add_path() in the headers, too.
2011-01-30 23:35:25 -05:00
Matthias Clasen
f67ab808fd
doc fixes
2011-01-30 23:35:25 -05:00
Matthias Clasen
b448bb81ce
Move GtkBindings docs inline
2011-01-30 23:00:12 -05:00
Matthias Clasen
dcf3430e17
Add a gtkbindingsprivate.h header
2011-01-30 21:50:54 -05:00
Matthias Clasen
8bb0d552f1
Improve binding-set parser
...
Make gtk_binding_entry_add_signal_from_string() return the expected
token in case of parsing error, so that we can return a GError
instead of spewing. Also, add a separate scope for binding-set,
since allowing {} in identifiers in SCOPE_VALUE breaks the fact
that the ; after the last assignment in a rule is optional.
2011-01-30 21:27:56 -05:00
Matthias Clasen
a04e721473
Add binding-set tests
2011-01-30 21:27:55 -05:00
Matthias Clasen
2ea010bca0
Convert remaining rc files to css
2011-01-30 21:27:55 -05:00