]>
Pileus Git - ~andy/gtk/log
Matthias Clasen [Wed, 2 Feb 2011 05:40:02 +0000 (00:40 -0500)]
Fix another GtkFixed regression, in gtk_fixed_forall()
b3f6f67c changed the loop from while() to for() in gtk_fixed_forall(),
but that's wrong since the callback can have side-effects on the list,
in case the current child gets removed. And that's the case when the
widget is destroyed.
Patch by Vincent Untz
https://bugzilla.gnome.org/show_bug.cgi?id=641196
Matthias Clasen [Wed, 2 Feb 2011 05:36:41 +0000 (00:36 -0500)]
Bump version
John Ralls [Tue, 1 Feb 2011 21:53:00 +0000 (13:53 -0800)]
Update quartz to reflect deletion of GdkNativeWindow and client_message functions.
Matthias Clasen [Tue, 1 Feb 2011 19:11:20 +0000 (14:11 -0500)]
Add another bug ref
Vincent Untz [Tue, 1 Feb 2011 19:01:49 +0000 (20:01 +0100)]
Fix crash in gtk_fixed_remove()
b3f6f67c changed the loop from while() to for(), but the line to move to
the next child was kept, so we could go past the end of the list.
https://bugzilla.gnome.org/show_bug.cgi?id=641176
Matthias Clasen [Tue, 1 Feb 2011 18:54:27 +0000 (13:54 -0500)]
Remove accidentally exported symbol
Matthias Clasen [Tue, 1 Feb 2011 18:39:41 +0000 (13:39 -0500)]
Updates for 2.99.3
Benjamin Otte [Tue, 1 Feb 2011 17:31:44 +0000 (18:31 +0100)]
API: gdk: Get rid of GdkNativeWindow
Also get rid of the GDK_NATIVE_WINDOW_POINTER define.
Benjamin Otte [Tue, 1 Feb 2011 17:29:20 +0000 (18:29 +0100)]
x11: Use Window isntead of GdkNativeWindow
Benjamin Otte [Tue, 1 Feb 2011 17:11:35 +0000 (18:11 +0100)]
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().
Benjamin Otte [Tue, 1 Feb 2011 16:29:33 +0000 (17:29 +0100)]
API: gdk: Make GDK_DRAG_PROTOCOL_NONE equal to 0
THis way, we can do comparisons like "if (protocol)"
Benjamin Otte [Tue, 1 Feb 2011 16:22:04 +0000 (17:22 +0100)]
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.
Benjamin Otte [Tue, 1 Feb 2011 15:36:23 +0000 (16:36 +0100)]
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.
Matthias Clasen [Tue, 1 Feb 2011 14:48:32 +0000 (09:48 -0500)]
Fix a warning
Matthias Clasen [Tue, 1 Feb 2011 14:44:33 +0000 (09:44 -0500)]
Remove a dead member
The client_pointer field in GdkX11DeviceManagerXI2 is not used anywhere.
Matthias Clasen [Tue, 1 Feb 2011 14:42:53 +0000 (09:42 -0500)]
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
Matthias Clasen [Tue, 1 Feb 2011 06:28:45 +0000 (01:28 -0500)]
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
Benjamin Otte [Tue, 1 Feb 2011 05:30:27 +0000 (06:30 +0100)]
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
Benjamin Otte [Tue, 1 Feb 2011 05:29:51 +0000 (06:29 +0100)]
tests: Remove refreh button from testtoolbar test
It didn't work and did that by using APIs that are about to go away.
Benjamin Otte [Tue, 1 Feb 2011 05:27:46 +0000 (06:27 +0100)]
testgtk: Remove ability to reload all rc files
That ability didn't work for a while anyway, so removing client messages
doesn't hurt.
Benjamin Otte [Tue, 1 Feb 2011 05:25:57 +0000 (06:25 +0100)]
tests: Remove clientmessage test
Client messages will not be handled by GDK3 anymore, so no need to test
them.
Benjamin Otte [Tue, 1 Feb 2011 05:12:51 +0000 (06:12 +0100)]
x11: Do dnd event handling via gdk_window_add_filter()
Benjamin Otte [Tue, 1 Feb 2011 05:04:01 +0000 (06:04 +0100)]
x11: Use macros for byte order to set byte order
No need to run sophisticated functions to guess it.
Benjamin Otte [Tue, 1 Feb 2011 04:31:41 +0000 (05:31 +0100)]
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.
Benjamin Otte [Tue, 1 Feb 2011 04:55:10 +0000 (05:55 +0100)]
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.
Benjamin Otte [Tue, 1 Feb 2011 03:35:49 +0000 (04:35 +0100)]
x11: Handle motif client message filter just like xdnd filters
Benjamin Otte [Tue, 1 Feb 2011 02:53:21 +0000 (03:53 +0100)]
x11: Use event->any.window instead of any random member
Benjamin Otte [Mon, 31 Jan 2011 22:18:47 +0000 (23:18 +0100)]
API: gtk: Remove client_event vfunc from GtkWidget
Also remove the (de-facto unused) implementation from GtkWindow that was
only used for sockets/plugs.
Matthias Clasen [Tue, 1 Feb 2011 00:35:51 +0000 (19:35 -0500)]
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
Dan Winship [Tue, 1 Feb 2011 00:13:29 +0000 (19:13 -0500)]
Fix several bugs handling GtkTrayIcon symbolic colors
https://bugzilla.gnome.org/show_bug.cgi?id=641059
Matthias Clasen [Mon, 31 Jan 2011 23:49:20 +0000 (18:49 -0500)]
Clarify models vs callbacks in entry completion docs
See https://bugzilla.gnome.org/show_bug.cgi?id=641073
Kristian Rietveld [Mon, 31 Jan 2011 23:26:04 +0000 (00:26 +0100)]
Don't use GTK_IS_PLUG for non-X11 backends
Kristian Rietveld [Mon, 31 Jan 2011 22:30:56 +0000 (23:30 +0100)]
Check whether mask is NULL
Kristian Rietveld [Mon, 31 Jan 2011 22:10:49 +0000 (23:10 +0100)]
Only include gtktrayicon.h when building for X11
GtkTrayIcon depends on GtkPlug which is X11-specific. This fixes the
build for Quartz.
Matthias Clasen [Mon, 31 Jan 2011 22:34:37 +0000 (17:34 -0500)]
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
Stefan Kost [Mon, 31 Jan 2011 21:07:34 +0000 (23:07 +0200)]
Clarify key-{press,release}-event docs.
Mention key-repeat in key-press and fix a copy'n'paste in key-release docs.
Tristan Van Berkom [Mon, 31 Jan 2011 19:57:05 +0000 (04:57 +0900)]
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).
Tristan Van Berkom [Sat, 29 Jan 2011 11:06:25 +0000 (20:06 +0900)]
Added "shift" modifier versions of keybings for GtkFileChooser "folder-up"/"folder-down" bindings.
Also updated documentation, closes bug 322926
Daniel Mustieles [Mon, 31 Jan 2011 18:33:55 +0000 (19:33 +0100)]
Updated Spanish translation
Matthias Clasen [Mon, 31 Jan 2011 16:32:19 +0000 (11:32 -0500)]
Fix a segfault in gtk_statusbar_remove_all
https://bugzilla.gnome.org/show_bug.cgi?id=640487
Emmanuele Bassi [Wed, 29 Dec 2010 03:09:14 +0000 (03:09 +0000)]
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.
Matthias Clasen [Mon, 31 Jan 2011 15:51:09 +0000 (10:51 -0500)]
Speed up expander animation
Go back to 200ms, which is what we had in GTK+ 2.x.
Themes can change this, of course.
Matthias Clasen [Mon, 31 Jan 2011 15:48:40 +0000 (10:48 -0500)]
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
Matthias Clasen [Mon, 31 Jan 2011 15:26:28 +0000 (10:26 -0500)]
Add a note to ::fill and ::expand docs
Matthias Clasen [Mon, 31 Jan 2011 15:17:21 +0000 (10:17 -0500)]
Prevent a segfault in GtkPlug
The grabbed_keys might be NULL, so deal with that.
https://bugzilla.gnome.org/show_bug.cgi?id=641023
Matthias Clasen [Mon, 31 Jan 2011 14:34:46 +0000 (09:34 -0500)]
Remove RC file references from docs where appropriate
Matthias Clasen [Mon, 31 Jan 2011 14:29:40 +0000 (09:29 -0500)]
Remove references to RC files in the env var docs
Matthias Clasen [Mon, 31 Jan 2011 12:38:37 +0000 (07:38 -0500)]
Fix GTK_SPINNER_CLASS macro
https://bugzilla.gnome.org/show_bug.cgi?id=640999
Matthias Clasen [Mon, 31 Jan 2011 12:37:36 +0000 (07:37 -0500)]
Add a missing id to the docs
Baurzhan Muftakhidinov [Mon, 31 Jan 2011 10:22:38 +0000 (16:22 +0600)]
Updated Kazakh translation
Benjamin Otte [Mon, 31 Jan 2011 05:43:18 +0000 (06:43 +0100)]
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.
Matthias Clasen [Mon, 31 Jan 2011 04:53:19 +0000 (23:53 -0500)]
Mention key themes in the migration guide
Matthias Clasen [Mon, 31 Jan 2011 03:51:21 +0000 (22:51 -0500)]
Small optimization
We can use the fact that all involved strings are interned; also
deprecate gtk_binding_set_add_path() in the headers, too.
Matthias Clasen [Mon, 31 Jan 2011 04:34:52 +0000 (23:34 -0500)]
doc fixes
Matthias Clasen [Mon, 31 Jan 2011 03:37:30 +0000 (22:37 -0500)]
Move GtkBindings docs inline
Matthias Clasen [Mon, 31 Jan 2011 02:50:54 +0000 (21:50 -0500)]
Add a gtkbindingsprivate.h header
Matthias Clasen [Sat, 29 Jan 2011 00:36:24 +0000 (19:36 -0500)]
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.
Matthias Clasen [Sat, 29 Jan 2011 00:35:54 +0000 (19:35 -0500)]
Add binding-set tests
Matthias Clasen [Fri, 28 Jan 2011 23:42:15 +0000 (18:42 -0500)]
Convert remaining rc files to css
Matthias Clasen [Fri, 28 Jan 2011 23:35:21 +0000 (18:35 -0500)]
Convert the mac key theme to css
Matthias Clasen [Fri, 28 Jan 2011 23:16:56 +0000 (18:16 -0500)]
Convert the Emacs key theme to css
Matthias Clasen [Fri, 28 Jan 2011 23:08:57 +0000 (18:08 -0500)]
Make documentation match behaviour
Carlos Garnacho [Fri, 28 Jan 2011 19:19:30 +0000 (20:19 +0100)]
Move key/theme CSS providers to GtkSettingsPrivate
Carlos Garnacho [Fri, 28 Jan 2011 18:34:36 +0000 (19:34 +0100)]
Parse the gtk-keys.css file in the GtkSettings::gtk-key-theme-name theme path
Carlos Garnacho [Fri, 28 Jan 2011 10:05:01 +0000 (11:05 +0100)]
Add some bindings to testgtk.css for testing
Carlos Garnacho [Fri, 28 Jan 2011 09:25:17 +0000 (10:25 +0100)]
Document @binding-set and the gtk-key-bindings css parser property
Carlos Garnacho [Fri, 28 Jan 2011 09:25:00 +0000 (10:25 +0100)]
Remove unneeded code from GtkBindingSet
Carlos Garnacho [Fri, 28 Jan 2011 09:06:42 +0000 (10:06 +0100)]
Hook up key bindings in CSS with key propagation.
This is done in the same place than it was done before the switch
to GtkStyleContext, the GtkBindingEntry has been slightly simplified
since it's now the GtkStyleContext which hands us the list
of binding sets applying to a widget, so no need to use the older
matching mechanisms.
Carlos Garnacho [Fri, 28 Jan 2011 08:59:02 +0000 (09:59 +0100)]
Add the gtk-key-bindings CSS parser property.
This property takes a list of binding set names to have these
stored as a GPtrArray containing GtkBindingSets. this property
is handled so merging GtkStyleProperties will merge both
GtkBindingSet lists.
Carlos Garnacho [Fri, 28 Jan 2011 00:52:03 +0000 (01:52 +0100)]
Add @binding-set rules to the CSS parser
these custom rules can be used to define key themes
as in the RC files, a series of bind/unbind rules
may be added then:
@binding foo-bar {
bind "<alt>1" { "move-cursor" (visual-positions, 1, 0) };
unbind "<ctl>d"
}
Carlos Garnacho [Fri, 28 Jan 2011 00:50:14 +0000 (01:50 +0100)]
Add gtk_binding_entry_add_signal_from_string()
This function rescues part of the old parser (which
is now standalone) to load a bind/unbind definition
string into a GtkBindingSet.
Bastien Nocera [Mon, 31 Jan 2011 00:30:00 +0000 (00:30 +0000)]
GtkCssProvider: Take into account variant
When loading a theme, make sure we take into account the variant
so we don't use the plain version when the theme changes.
Also make sure to fallback to the plain theme when loading a variant
fails.
https://bugzilla.gnome.org/show_bug.cgi?id=640983
Bastien Nocera [Mon, 31 Jan 2011 00:28:46 +0000 (00:28 +0000)]
GtkSettings: Fix theme not updating for dark theme
The theme was not updated when the "gtk-application-prefer-dark-theme"
GtkSettings property changed.
https://bugzilla.gnome.org/show_bug.cgi?id=640983
Jakob Kramer [Sun, 30 Jan 2011 19:49:34 +0000 (20:49 +0100)]
[l10n] Updated German translation
David Planella [Sun, 30 Jan 2011 10:27:40 +0000 (11:27 +0100)]
Updated Catalan translation
Matthias Clasen [Sun, 30 Jan 2011 08:17:05 +0000 (03:17 -0500)]
Add a gtkscaleprivate.h header
Matthias Clasen [Sun, 30 Jan 2011 08:12:49 +0000 (03:12 -0500)]
Add gtkorientableprivate.h header
Matthias Clasen [Sun, 30 Jan 2011 07:57:59 +0000 (02:57 -0500)]
Some updates
Matthias Clasen [Sun, 30 Jan 2011 07:52:55 +0000 (02:52 -0500)]
Drop 2.x release notes
Matthias Clasen [Sun, 30 Jan 2011 07:49:31 +0000 (02:49 -0500)]
Fix build
We must build gtk before gtk/tests
Matthias Clasen [Sun, 30 Jan 2011 07:46:59 +0000 (02:46 -0500)]
Drop unused theme-bits
Matthias Clasen [Sun, 30 Jan 2011 07:45:01 +0000 (02:45 -0500)]
Drop unused file circles.xml
Matthias Clasen [Sun, 30 Jan 2011 07:43:38 +0000 (02:43 -0500)]
Remove GTK+ 1 era xbm icons
Matthias Clasen [Sun, 30 Jan 2011 07:38:59 +0000 (02:38 -0500)]
Remove some dead templates
Matthias Clasen [Sun, 30 Jan 2011 07:36:17 +0000 (02:36 -0500)]
Whitespace fixes
Matthias Clasen [Sun, 30 Jan 2011 07:34:59 +0000 (02:34 -0500)]
Move GtkPrintOperation docs inline
Matthias Clasen [Sun, 30 Jan 2011 07:21:16 +0000 (02:21 -0500)]
Nicer configure summary
Matthias Clasen [Sun, 30 Jan 2011 07:16:18 +0000 (02:16 -0500)]
Silence unused variable warnings in the cups printbackend
Matthias Clasen [Sun, 30 Jan 2011 07:14:08 +0000 (02:14 -0500)]
Silence unused variable warnings in gail
Matthias Clasen [Sun, 30 Jan 2011 06:59:12 +0000 (01:59 -0500)]
More compiler warnings silenced
Matthias Clasen [Sun, 30 Jan 2011 06:53:49 +0000 (01:53 -0500)]
Fix another compiler warning about unused variables
Matthias Clasen [Sun, 30 Jan 2011 06:52:55 +0000 (01:52 -0500)]
Silence more compiler warnings
Matthias Clasen [Sun, 30 Jan 2011 06:50:58 +0000 (01:50 -0500)]
Fix compiler warnings about unused variables
Matthias Clasen [Sun, 30 Jan 2011 06:45:18 +0000 (01:45 -0500)]
Include gtkx.h here
When building under X11, gtktypefuncs.c includes references to gdk
X11 backend functions, so we need to include the header.
Matthias Clasen [Sun, 30 Jan 2011 06:40:51 +0000 (01:40 -0500)]
Silence compiler warnings
Matthias Clasen [Sun, 30 Jan 2011 04:26:34 +0000 (23:26 -0500)]
Use free() to free XIButtonState.mask
XIQueryPointer() allocates it using malloc() (without any mention
in the documentation...).
Matthias Clasen [Sun, 30 Jan 2011 04:09:51 +0000 (23:09 -0500)]
Improve some deprecation notes
Matthias Clasen [Sun, 30 Jan 2011 03:59:32 +0000 (22:59 -0500)]
Mention theme-specific settings in the migration guide
Matthias Clasen [Sun, 30 Jan 2011 03:52:02 +0000 (22:52 -0500)]
More documentation tweaks
Matthias Clasen [Sun, 30 Jan 2011 03:47:33 +0000 (22:47 -0500)]
Documentation tweaks