Benjamin Otte
2bd69cbf8c
a11y: Remove idle handler for focus notifications
2011-11-16 04:31:06 +01:00
Benjamin Otte
0c2f454b41
a11y: Re-implement gtk_tree_view_accessible_get_n_rows()
...
... using the new _gtk_rbtree_find_index().
2011-11-16 04:31:06 +01:00
Benjamin Otte
635e53433d
treeview: Add _gtk_rbtree_find_index()
...
Uses the parity to do an O(log N) search for the nth element in the
tree in display order of the treeview.
2011-11-16 04:31:06 +01:00
Benjamin Otte
59097ecef4
treeview: Rename "parity" to "total_count"
...
Now that we use it to actually count the rows instead of just even/odd,
it's better to reflect that in the variable name.
2011-11-16 04:31:06 +01:00
Benjamin Otte
320df163a2
treeview: Make the parity actually store the row number
...
Instead of just storing the least significant bit of the row number,
store the full row number. This will soon be useful for accessibility.
But CSS could like it, too.
2011-11-16 04:31:06 +01:00
Benjamin Otte
c8e2cd27e9
treeview: Remove special cases when computing parity
...
The parity of the nil npode is always 0, so no need to check for the nil
node first.
2011-11-16 04:31:06 +01:00
Benjamin Otte
1a241f2348
treeview: Only compute parity once when rendering
...
This shouldn't affect performance too much, but it I just found it so I
fixed it.
2011-11-16 04:31:05 +01:00
Stef Walter
5b6f0b9893
GtkSpinButton: Clarify clamping behavior in gtk_spin_button_set_range doc
...
* If the current value is outside the range, it will be adjusted
to fit within the range, otherwise it will remain unchanged.
https://bugzilla.gnome.org/show_bug.cgi?id=664021
2011-11-15 07:47:35 +01:00
Matthias Clasen
4904a2f45b
GtkTextViewAccessible: Respect display lines
...
This special tweak was lost when porting from GailTextUtil.
https://bugzilla.gnome.org/show_bug.cgi?id=663994
2011-11-15 00:25:18 -05:00
Martin Pitt
76cd14410c
Fix GDK linking for Gtk typelib and example builds
...
Add missing GDK linking to GIR build and examples:
GISCAN Gtk-3.0.gir
CCLD gtk-query-immodules-3.0
./.libs/libgtk-3.so: undefined reference to `gdk_keymap_get_modifier_mask'
./.libs/libgtk-3.so: undefined reference to `gdk_modifier_intent_get_type'
./.libs/libgtk-3.so: undefined reference to `gdk_window_begin_resize_drag_for_device'
./.libs/libgtk-3.so: undefined reference to `gdk_event_triggers_context_menu'
collect2: ld returned 1 exit status
CCLD grid-packing
../gtk/.libs/libgtk-3.so: undefined reference to `gdk_keymap_get_modifier_mask'
[...]
https://bugzilla.gnome.org/show_bug.cgi?id=664027
2011-11-15 06:18:18 +01:00
Matthias Clasen
005451e3f3
GtkComboBoxAccessible: Make keybindings work
...
https://bugzilla.gnome.org/show_bug.cgi?id=659151
2011-11-14 09:26:15 -05:00
Martin Pitt
1c222372d9
Fix gtk_tree_view_get_tooltip_context() transfer annotation
...
The default (out) transfer mode is "full", but the passed "model" pointer gets
set to gtk_tree_view_get_model() which is "transfer none". This caused Python
programs to free the model after calling this, causing crashes.
2011-11-14 14:33:51 +01:00
Matthias Clasen
242b1f12f8
GtkProgressbar: respect the range of 'fraction'
...
The setter should not set the property to values outside the allowed
range.
https://bugzilla.gnome.org/show_bug.cgi?id=663825
2011-11-11 10:36:09 -05:00
Rico Tzschichholz
4a43c062ac
Fix some implicit declaration warnings
...
There were some includes of gtkmain.h missing
2011-11-11 13:06:56 +01:00
Alexander Larsson
11e9c6f95f
win32: Hack to make statusbar menus show up visible:
2011-11-10 17:41:11 +01:00
Morten Welinder
fefe8e7c8c
win32: Actually check for IPrintDialogCallback in configure
2011-11-10 17:41:08 +01:00
Alexander Larsson
06a20d207a
Fix build by adding include
...
build failed with a GTK_IS_VIEWPORT link error
2011-11-10 17:40:46 +01:00
Alexander Larsson
96bae6ad08
Add include to fix the build
2011-11-10 17:25:02 +01:00
Benjamin Otte
24b9599af7
a11y: Get rid of gtk.h includes in headers
...
This way, we can include them without accidentally including deprecated
code. Which means we can still use the recently added turning-off tricks
for deprecation warnings.
2011-11-10 17:10:04 +01:00
Benjamin Otte
2d3c36a021
a11y: Fix gcc warning
2011-11-10 17:10:04 +01:00
Benjamin Otte
1c96b0b838
a11y: It's not a bug if there's no row at some point
...
In that case, there's just nothing there.
2011-11-10 17:10:04 +01:00
Bastien Nocera
c30d313afc
gtk: Fix parsing of accelerators with keycodes
...
GDK_KEY_VoidSymbol is not the same as keycode 0. This fixes
keycodes such as "0xb3" being parsed as "VoidSymbol" keysyms.
https://bugzilla.gnome.org/show_bug.cgi?id=663761
2011-11-10 14:33:28 +00:00
Bastien Nocera
d69c7f4776
gtk: Fix GtkCellRenderer ignoring keycodes
...
We should use the new helper code rather than invent our own
functions again.
https://bugzilla.gnome.org/show_bug.cgi?id=663761
2011-11-10 14:33:28 +00:00
Guillaume Desmottes
fb97c28bca
gtktreeviewaccessible: use a value_destroy_func with the cell_info_by_index hash
...
This ensures that we don't leak any GtkTreeViewAccessibleCellInfo when
re-inserting a new one with the same key.
https://bugzilla.gnome.org/show_bug.cgi?id=663694
2011-11-10 14:49:30 +01:00
Guillaume Desmottes
22807d8469
gtktreeviewaccessible: factor out cell_info_free()
...
https://bugzilla.gnome.org/show_bug.cgi?id=663694
2011-11-10 14:49:30 +01:00
Matthias Clasen
f711da3d1b
uimanager: Work around deprecations
2011-11-09 23:45:58 -05:00
Matthias Clasen
a7958f06e3
treeview: Work around deprecations
2011-11-09 23:42:11 -05:00
Matthias Clasen
190c271986
Add a missing include
2011-11-09 22:03:10 -05:00
Matthias Clasen
a78ab0cfa1
Drop use of GDK_DISABLE_DEPRECATED guards in gtk
...
We now use function attributes for deprecation so the build-breaking
guards are no longer needed.
2011-11-09 22:02:42 -05:00
Kristian Rietveld
91ae19768e
Bug 661997 - Gtk crashes when changing the TreeView model while ...
...
Simply stopping rubber banding in gtk_tree_view_set_model() eliminates
the crash. Reported by Thomas Perl.
2011-11-09 08:45:34 +01:00
Ryan Lortie
7e22a5350c
Don't implement GApplication mainloop
...
Let the default GApplication implementation take care of it.
https://bugzilla.gnome.org/show_bug.cgi?id=658805
2011-11-09 00:22:52 -05:00
Benjamin Otte
2783158f8d
treeview: Do a simple replace for gdk_window_get_pointer()
...
Replace it with the equivalent gdk_window_get_device_position() with the
core pointer.
2011-11-09 03:23:43 +01:00
Benjamin Otte
439b9a3b1d
queryimmodules: Actually fix deprecation warnings
...
The previous patch still caused warnings. Ooops. That's what you get for
not compiling with -Werror.
2011-11-09 03:23:43 +01:00
Benjamin Otte
28d3d6e039
treeview: Remove unused crack code
...
No, querying the pointer position in a draw callback is not a good idea.
No, setting FOCUSSED based on that position is not a good idea either.
2011-11-08 21:14:06 +01:00
Benjamin Otte
fd93e08a7c
widget: Don't use deprecated symbols
...
Not even in deprecated functions!
2011-11-08 21:14:06 +01:00
Benjamin Otte
d41732b729
widget: Deprecate gtk_widget_get_pointer ()
2011-11-08 21:14:06 +01:00
Benjamin Otte
a1fb2c863b
treeview: Remove call to gtk_widget_get_pointer()
2011-11-08 21:14:06 +01:00
Benjamin Otte
28d0403f17
paned: Pass x/y position to update_drag()
...
This way we get the coordinates from the right device instead of using
any random device.
2011-11-08 21:14:06 +01:00
Benjamin Otte
80a23a2f2b
paned: Remove MOTION_HINT_MASK
...
It's not needed anymore. GDK does culling of events for us.
2011-11-08 21:14:06 +01:00
Benjamin Otte
68bc011507
menuitem: WOrk around deprecation warnings
2011-11-08 21:14:06 +01:00
Benjamin Otte
a12e12a56d
queryimmodules: Disable deprecaion warnings for deprecated header
2011-11-08 21:14:06 +01:00
Benjamin Otte
40db65a85b
settings: Disable deprecaion warnings for deprecated header
2011-11-08 21:14:06 +01:00
Benjamin Otte
c9b1e00c30
layout: Work around deprecation warnings
2011-11-08 21:14:05 +01:00
Benjamin Otte
f9c664c69b
immodule: Disable deprecations before including deprecated header
2011-11-08 21:14:05 +01:00
Benjamin Otte
e1f4bd6495
gtk: Empty gtkimmodule.h
...
Move the remaining struct definition into gtkimcontextinfo.h and include
that header in gtk.h. gtkimmodule.h is now an empty header. We should
probably deprecate it somehow.
This is also necessary so headers used in gtk .c files don't include
gtk.h which in turn includes all the deprecated headers which we want to
avoid so we can include them with deprecation warnings turned off.
2011-11-08 21:14:05 +01:00
Benjamin Otte
ba05093fe7
build: Don't append to an accidentally existing file
2011-11-08 21:14:05 +01:00
Benjamin Otte
c2da143aa6
immodule: Move private functions to a private header
2011-11-08 21:14:05 +01:00
Benjamin Otte
bd97127e6c
immodule: Fix includes
...
Make includes not rely on gtkimmodule.h including gtk.h. This will be
important once we remove gtkimmodule from the include files.
That way, we can achieve not pulling deprecated headers automatically.
2011-11-08 21:14:05 +01:00
Benjamin Otte
1c22053baf
window: Fix cast warnings
2011-11-08 21:14:05 +01:00
Benjamin Otte
1425ecbc52
treeview: Fix warnings from fixing warnings
...
Warnings introdcued by fixing deprecation warnings in
2ead4c6038
2011-11-08 21:14:05 +01:00
Benjamin Otte
adcd136f1e
icontheme: Get rid of deprecation warnings
...
Before including deprecated headers, disable deprecation warnings.
2011-11-08 21:14:05 +01:00
Benjamin Otte
7cfe9051cc
cellrendererspinner: Ignore deprecation warnings
...
The cell renderer relies on deprecated functionality, so we need to
disable deprecations for included deprecated headers.
2011-11-08 21:14:05 +01:00
Benjamin Otte
8f8269ad30
cellrendererspinner: Include correct header
2011-11-08 21:14:05 +01:00
Benjamin Otte
9aa7e9f050
button: Don't call deprecated functions
2011-11-08 21:14:05 +01:00
Benjamin Otte
a9134de5d3
assistant: Work around deprecation warnings
2011-11-08 21:14:05 +01:00
Rui Matos
70f87b8bd5
gtk: Add a GTK_STATE_FLAG_WINDOW_UNFOCUSED widget state flag
...
This allows themes to style widgets differently according to whether the
toplevel window they are in is presented as focused.
https://bugzilla.gnome.org/show_bug.cgi?id=661428
2011-11-08 19:33:22 +00:00
Cosimo Cecchi
f9d16f3923
themingengine: set the cairo extend to PAD when we're stretching bg
...
This avoids artifacts around the borders due to bilinear filtering cairo
applies to the surface pattern when stretching it.
https://bugzilla.gnome.org/show_bug.cgi?id=663522
2011-11-08 12:41:28 -05:00
Marc-André Lureau
3b436eec6d
css: start background-repeat
...
By default, a background image is stretched. Instead, it is worth to
have a tiled background.
This patch allows background surfaces to be repeated or not, and should
be compatible with future extensions and CSS.
https://bugzilla.gnome.org/show_bug.cgi?id=663522
2011-11-08 11:10:44 -05:00
Marc-André Lureau
ee7ac4fa44
Rename s/GtkCssRepeatStyle/GtkCssBorderRepeatStyle/g
...
https://bugzilla.gnome.org/show_bug.cgi?id=663522
2011-11-08 11:10:41 -05:00
John Ralls
085b98f470
[Quartz Bug 663182] NSImage throws an exception from _gtk_quartz_create_image_from_pixbuf()"
...
If a zero-sized NSImage calls lockfocus it throws an exception. Make sure that the image isn't zero-sized before calling lockfocus, and log a warning and return NULL if it is zero-sized.
Have the quartz version of gtk_drag_begin_idle return FALSE if the returned image is NULL.
2011-11-07 14:25:08 -08:00
John Ralls
42656dde57
Revert "[Quartz Bug 663182] NSImage throws an exception from _gtk_quartz_create_image_from_pixbuf()". Utterly screwed up. Sorry.
...
This reverts commit 8216324e4b
.
and commit 3243e6955c
.
2011-11-07 13:57:10 -08:00
John Ralls
3243e6955c
Fix accidental paste error in 8216324
2011-11-07 13:18:14 -08:00
John Ralls
8216324e4b
[Quartz Bug 663182] NSImage throws an exception from _gtk_quartz_create_image_from_pixbuf()
...
If _gtk_quartz_create_image_from_pixbuf is given a pixbuf with size 0, 0
or which produces an NSImage with size 0.0, 0.0, it throws an exception
which Gtk doesn't handle.
your changes. Lines starting
2011-11-07 13:11:18 -08:00
Morten Welinder
d80953666e
Print preview: make cancel work
...
This makes cancels of a print preview work in the same way it
works for non-previews, i.e., the operation stops at the next
page boundary.
https://bugzilla.gnome.org/show_bug.cgi?id=662160
2011-11-07 13:10:24 -05:00
Torsten Schönfeld
4ef61e2311
gtk: add annotations for some GtkRadio* constructors
...
Since constructors like gtk_radio_button_new_from_widget take an
instance of their type as the first argument, the gi scanner interprets
them as methods.
https://bugzilla.gnome.org/show_bug.cgi?id=661858
2011-11-06 16:50:57 +01:00
Florian Müllner
79803d0edc
menuitem: Always treat submenus as popup
...
Submenus are not actually attached to a menubar, but styling them
as if they were imposes some problems (at least with Adwaita).
Just using GDK_WINDOW_TYPE_HINT_POPUP_MENU for submenus instead
fixes the issue.
https://bugzilla.gnome.org/show_bug.cgi?id=662691
2011-11-05 01:49:50 -04:00
Akira TAGOH
4d7e47ddd0
Allow fallback for input method modules
...
Accept a :-separated list of module names in GTK_IM_MODULE and
the corresponding setting, to deal a bit better with broken
situations.
https://bugzilla.gnome.org/show_bug.cgi?id=603559
2011-11-05 01:48:59 -04:00
Torsten Schönfeld
a72a3160a8
gtk: add annotations for some GtkSymbolicColor constructors
...
https://bugzilla.gnome.org/show_bug.cgi?id=661859
2011-11-05 01:38:40 -04:00
Benjamin Moody
8318515cd8
Mark gtk_dialog_new_with_buttons as NULL-terminated
...
https://bugzilla.gnome.org/show_bug.cgi?id=663073
2011-11-05 01:27:25 -04:00
Matthias Clasen
41d4229155
Pop up context menus at the right device
...
When multiple pointers are in play, we need to be careful
not to loose track of the device between receiving a button
press and popping up a menu.
https://bugzilla.gnome.org/show_bug.cgi?id=663396
2011-11-05 01:24:17 -04:00
Matthias Clasen
7644ef1e3a
GtkWindow: Use new begin_resize_drag api
...
We have an event, so the correct thing to do is to pass
the device into the function that we are calling. GDK
just grew a variant that takes a device, for this purpose.
https://bugzilla.gnome.org/show_bug.cgi?id=663444
2011-11-05 01:14:30 -04:00
Bastien Nocera
ba397a3431
tests: Disable accel test until fixed
2011-11-04 16:40:23 +00:00
Bastien Nocera
780a92b559
gtk: Add test program for keycode parsing
...
https://bugzilla.gnome.org/show_bug.cgi?id=662755
2011-11-04 16:40:22 +00:00
Bastien Nocera
06b55b2149
gtk: Add accel with keycode parsing functions
...
Which handle accelerators with keycodes as well as keyvals,
so we can use it in applications that use GtkCellRendererAccel's
"Other" mode of operations (namely gnome-control-center and
gnome-settings-daemon).
https://bugzilla.gnome.org/show_bug.cgi?id=662755
2011-11-04 16:40:22 +00:00
Matthias Clasen
0f167e8b43
Fix make check
2011-11-03 23:58:46 -04:00
Colin Walters
6cf1385e8f
introspection: Include deprecated headers for scanner too
...
https://bugzilla.gnome.org/show_bug.cgi?id=663345
2011-11-03 15:27:56 -04:00
Alexander Larsson
c002c83ec5
Make sure we only show icons in the file selector bookmarks toolbar
...
This looked really bad in non-gnome settings where default is to
show text too.
2011-11-02 14:46:53 +01:00
Matthias Clasen
20008c33cb
Revert a change to the plug/socket headers
...
I was trying to avoid including gtk.h here, but this breaks
some of our tests, and there's a good chance that 3rd party
code also relies on this include.
2011-11-02 08:28:34 -04:00
Matthias Clasen
2ead4c6038
Remove some more uses of gdk_window_get_pointer
2011-11-02 08:10:42 -04:00
Matthias Clasen
cafef131d6
Remove one instance of gdk_window_get_pointer
2011-11-02 08:10:42 -04:00
Matthias Clasen
adc731fad9
Remove various internal uses of deprecated api
2011-11-02 08:10:42 -04:00
Matthias Clasen
8ad3fd28b8
Don't warn about deprecations in deprecated/
2011-11-02 08:10:42 -04:00
Matthias Clasen
2de4405c32
Move deprecated gtkwidget style api to gtkstyle
2011-11-02 08:10:42 -04:00
Matthias Clasen
1f827d6214
Don't warn about deprecations in deprecated/
...
We know we are deprecated here, no need to warn.
2011-11-02 01:21:49 -04:00
Matthias Clasen
feece3c0bb
Move gtkstyle and gtkrc to deprecated/
...
This required a somewhat more substantial include reshuffling.
Some typedefs have been moved to gtkiconfactory.h and to
gtksettings.h.
2011-11-02 01:15:21 -04:00
Matthias Clasen
068e1f0390
Move wholly deprecated files to a subdirectory
...
Also install their headers to a subdirectory.
2011-11-01 23:51:18 -04:00
Matthias Clasen
98db3dd5dd
Move gtk_draw_insertion_cursor out of gtkstyle.[hc]
...
This function does not use GtkStyle at all and is not deprecated.
2011-11-01 23:51:18 -04:00
Matthias Clasen
8370052180
Don't use *DISABLE_DEPRECATED guards
...
Instead define GDK_DISABLE_DEPRECATION_WARNINGS where appropriate.
2011-11-01 22:35:57 -04:00
Matthias Clasen
2a9932cf02
Don't use deprecated GValue api
2011-11-01 22:05:29 -04:00
Benjamin Otte
98d215635e
tooltip: Don't use deprecated API
2011-11-02 02:32:54 +01:00
Benjamin Otte
5ada0fc382
tooltip: Remove unused variables
2011-11-02 02:32:54 +01:00
Benjamin Otte
54d6ef115b
iconview: Keep the device for dnd autoscroll
...
This is necessary to query the device's coordinates when doing the
scrolling.
2011-11-02 02:32:54 +01:00
Benjamin Otte
e739757bab
table: Define GDK_DISABLE_DEPRECATION_WARNINGS
2011-11-02 02:32:54 +01:00
Benjamin Otte
6132f52fa3
handlebox: Define GDK_DISABLE_DEPRECATION_WARNINGS
2011-11-02 02:32:53 +01:00
Benjamin Otte
c10cbf1715
fontsel: Define GDK_DISABLE_DEPRECATION_WARNINGS
2011-11-02 02:32:53 +01:00
Benjamin Otte
e7e3413e2e
tests: Remove unused variables
2011-11-02 02:31:54 +01:00
Benjamin Otte
4f9fc252da
box: Fix includes so hbox/vbox compile warning-free
...
And make sure most of the code is included before undeffing deprecated
code.
2011-11-02 02:31:54 +01:00
Matthias Clasen
8669eb49f5
Don't use deprecated Pango api
2011-11-01 21:22:14 -04:00
Matthias Clasen
4460cac3ed
Don't use g_value_set_char
2011-11-01 21:18:27 -04:00
Matthias Clasen
4ac4a1bee3
GtkSearchEngineSimple: adapt the GLib thread api changes
2011-11-01 21:06:09 -04:00