Matthias Clasen
14fcfd3f7a
Fix spelling
...
It is 'accessible', not 'accesible'.
2011-02-20 16:46:27 -05:00
Matthias Clasen
48b0a55775
React to is-focus change, not ignore it
...
A very old bug, noticed in
https://bugzilla.gnome.org/show_bug.cgi?id=642791
2011-02-20 16:45:41 -05:00
Matthias Clasen
2180267f5d
Plug a memleak in the tracker search engine
...
Patch by Vincent Untz,
https://bugzilla.gnome.org/show_bug.cgi?id=642771
2011-02-19 13:31:50 -05:00
Matthias Clasen
84b259d076
Make gtk_combo_box_text_get_active_text() behave as documented
...
If there is an entry, it is supposed to return the contents
of the entry. Pointed out by Allin Cottrell,
https://bugzilla.gnome.org/show_bug.cgi?id=642681
2011-02-19 13:27:51 -05:00
Matthias Clasen
6d3b8c2c6b
GtkSwitch: Add an AtkAction implementation
2011-02-17 23:06:33 -05:00
Matthias Clasen
163f0daf6a
GtkSwitch: Use ATK_DEFINE_TYPE properly
2011-02-17 21:55:54 -05:00
Matthias Clasen
e7d4d77093
Fix a memory leak with file chooser previews
2011-02-17 18:34:28 -05:00
Matthias Clasen
c9b152ec71
Remove a leaking get_name implementation
...
This was leaking a lot of memory; just rely on atk_object_get_name.
2011-02-17 15:57:39 -05:00
Carlos Garnacho
3100b76ba9
Fix parsing of color names containing numbers
...
They were being defined correctly through @define-color
in CSS, but parsing failed at the moment of creating
GtkSymbolicColors depending on these.
2011-02-17 20:10:49 +01:00
Matthias Clasen
bdacdfb78b
Check if the accessible is actually an AtkAction
2011-02-17 13:29:59 -05:00
Matthias Clasen
13d717e2ce
Fix includes in gtkassistant.c
...
Also fix a bad case in gtk_assistant_accessible_get_n_children.
2011-02-17 12:35:07 -05:00
Matthias Clasen
7bddfb5790
GtkAssistant: Use _gtk_accessible_set_factory_type
2011-02-17 12:25:23 -05:00
Matthias Clasen
1692829594
GtkGrid: Avoid problems with uninitialized memory
...
valgrind complained about these, and they make for bad size allocation
and the occasional crash.
2011-02-17 11:53:38 -05:00
Emmanuele Bassi
a88a1fc832
Build fix in GtkSeparatorMenuItem
...
https://bugzilla.gnome.org/show_bug.cgi?id=642541
2011-02-17 09:24:25 +00:00
Matthias Clasen
ed901afe37
Use _gtk_accessible_set_factory_type in GtkSeparatorMenuItem
2011-02-17 01:34:10 -05:00
Matthias Clasen
221415f71f
Use _gtk_accessible_set_factory_type in GtkSwitch
2011-02-17 01:32:24 -05:00
Matthias Clasen
e757d1b2d2
Use _gtk_accessible_set_factory_type for GtkIconView
2011-02-17 01:30:33 -05:00
Matthias Clasen
9d321437b6
Add a private function for accessible factory registration
...
This avoids repeating the same code for each widget that
has its own accessible implementation inside GTK+.
2011-02-17 01:24:43 -05:00
Matthias Clasen
4a4004b706
Add an a11y implementation to GtkSeparatorMenuItem
...
Its all boilerplate, and it more than doubles the line count.
Yay :-(
2011-02-17 00:44:26 -05:00
Matthias Clasen
405b54c72e
Check the return value of gtk_tree_model_get_iter
...
Noticed in passing, didn't really see it crash there, but
better safe than sorry.
2011-02-16 18:48:42 -05:00
Matthias Clasen
0c3da06a62
gtk_tree_model_filter_row_deleted: don't emit signals too early
...
gtk_tree_model_filter_row_deleted was emitting ::row-deleted while
the internal state of the model was still in disarray, causing
segfaults e.g. when mapping the file chooser with accessibility
turned on. This is just a bandaid fix, and doesn't try address
any of the deeper problems of the filter model code.
I did take the time to reduce rampant variable shadowing in that
function, though.
2011-02-16 18:48:42 -05:00
Michael Natterer
68d176d80b
gtk: don't always invalidate spinbuttons on each leave_notify()
...
but only when an arrow was prelighted. Also, chain up unconditonally
in enter_notify() and leave_notify() because GtkEntry implements them
too.
2011-02-16 18:42:18 +01:00
Matthias Clasen
f04504ac94
Allow custom icon size in gtk_render_icon_pixbuf()
...
Pointed out in bug 642213.
2011-02-14 13:22:28 -05:00
Martin Nordholts
a3f52949c4
Bug 633291 - Handle Shift-keys in X11 gdk_test_simulate_key()
...
If a level 1 key maps to a key value passed to
gdk_test_simulate_key(), raise the GDK_SHIFT_MASK flag so the reqested
key value is generated. Also add a regression test for this fix.
2011-02-13 12:57:01 +01:00
Benjamin Otte
a1d96af9ed
colorsel: Remove WINDOWING ifdef
...
That one was leftover from the times when GDK didn't allow pointer
warping and we had an X11-specific solution.
2011-02-12 22:09:58 +01:00
Matthias Clasen
9f12cc3dcd
Protect x11-specific functions in gtktypefuncs.c
...
This is just a bandaid fix, we really need to systematically collect
type functions for all backends.
2011-02-12 09:12:36 -05:00
Matthias Clasen
3138c3ddcb
No GTK_ENABLE_BROKEN anymore
...
We stopped shipping broken stuff...
2011-02-12 08:26:21 -05:00
Benjamin Otte
ac6c6b03d9
gtk: Fix warnings for dnd code without XInput
2011-02-11 23:53:48 +01:00
Benjamin Otte
ccc3679a62
stylecontext: Use the common approach for priate pointers
...
Has two advantages:
1) consistency
2) "print *context->priv" actually works in gdb
2011-02-11 23:21:11 +01:00
Benjamin Otte
0bd0854d4d
icontheme: constify arguments to gtk_icon_theme_load_symbolic()
2011-02-11 23:21:11 +01:00
Michael Natterer
1865011b7f
gtk: don't send BUTTON_RELEASE to unrealized widgets
...
which happened when the source widget was hidden or destroyed while a
drag was going on, like when dragging from a popup that got a grab
broken as result of the dnd operation.
2011-02-11 10:48:43 +01:00
Matthias Clasen
524ce69bcb
Bump the version to 3.0.0
...
At the same time, change the library sonames for -3.0 to just -3.
This is necessary since the 2.99 releases installed libraries like
libgtk-3.0.so.0.9903.0, and we want to prevent the library version
number from jumping back. So 3.0 will have libgtk-3.so.0.0.0.
2011-02-10 14:41:02 -05:00
Murray Cumming
b91549a38a
Add "extern C" declarations around AppChooser headers.
...
This is necessary to allow linking from code compiled as C++.
2011-02-10 10:02:38 +01:00
Matthias Clasen
3f1c95de8d
Don't try to modify readonly strings
...
This was an oversight in the recent accel label improvement.
When we get an untranslated string back from gettext(), it is
not ok to replace '_' by ' ' in-place. Instead, do it while
appending to the GString.
https://bugzilla.gnome.org/show_bug.cgi?id=641912
2011-02-09 17:32:05 -05:00
Carlos Garnacho
d1632f87d1
Avoid the need for cairo_push_group() in gtk_render_background()
...
This operation is potentially expensive, so the code has been
refurbished so avoid the cases it was needed for. Antialiased
cairo_clip() has been also reduced to transitions with surface
patterns involved.
2011-02-09 20:05:32 +01:00
Tristan Van Berkom
f2ff2138db
Added padding to GtkTextLineDisplay struct for an addition of GdkRGBA pointer comming soon.
2011-02-10 04:04:31 +09:00
Matthias Clasen
5ada6ac197
Remove no-longer exported symbols from the symbol list
2011-02-08 23:21:40 -05:00
Matthias Clasen
49433673fc
Don't export GtkModifierStyle symbols
...
This is not public API, so don't export it.
2011-02-08 23:21:39 -05:00
Matthias Clasen
861ba00166
Don't export gtk_cell_area_box_init_groups
...
That function can't be meant to be public, since it take
a GtkCellAreaBoxContext argument, which is not a public type.
2011-02-08 23:21:39 -05:00
Matthias Clasen
394ae46ec0
Add some missing symbols to the docs
2011-02-08 23:21:39 -05:00
Matthias Clasen
d2bdd50a0b
Extend the mixed-dependency check to modules as well
...
This helps prevent accidents with GTK_PATH.
2011-02-08 13:49:16 -05:00
Johan Dahlin
6a40c0f865
introspection: Remove redundant include
...
Gdk-3.0 is already included above via --include-uninstalled, so
don't also specify it in INCLUDES. Doing so breaks if it isn't
installed already, since we try to find the gdk-3.0.pc.
2011-02-08 13:30:24 -02:00
Johan Dahlin
358a2b8675
Rename time to time_ to avoid a scanner warning
2011-02-08 13:29:57 -02:00
Benjamin Otte
1483145806
API: image: Move private struct definitions into private header
...
They weren't privatized because the dnd code used them, too. But a
private header can allow the dnd code to be nasty, so go dnd code!
2011-02-08 08:58:49 +01:00
Carlos Garnacho
15fdf90265
doc: Add a note about prioritization of GtkStyleProviders
...
It was unclear in the docs what happened if
gtk_style_context_add_provider() and
gtk_style_context_add_provider_for_screen()
were used with the same priority.
2011-02-08 04:17:56 +01:00
Matthias Clasen
3a50b460c6
Update the context direction when emitting ::direction-changed
...
This makes the flipping example in testgtk work as expected again.
https://bugzilla.gnome.org/show_bug.cgi?id=632775
2011-02-07 20:37:09 -05:00
Matthias Clasen
208974636f
Set the correct initial value for the direction property
2011-02-07 20:36:46 -05:00
Carlos Garnacho
2be692687f
Fix color style properties lookup when the color resolution fails
...
The cached GValue ended up with a GtkSymbolicColor type, so
the contained value was bogus. Noticed by Mitch.
2011-02-07 19:56:17 +01:00
Matthias Clasen
23f9bdd586
Fix problems with state propagation
...
Sensitivity changes were not properly propagated down the
hierarchy. There were two issues here:
a) correctly identifying when a state change request affects
sensitivity
b) not filtering out sensitivity in gtk_widget_propagate_state(),
since gtk_widget_set_sensitivity() uses that to do its work
https://bugzilla.gnome.org/show_bug.cgi?id=641431
2011-02-07 11:27:50 -05:00
Tristan Van Berkom
1c20c93423
Optimize queue_resize_on_widget()
...
Optimized GtkSizeGroup code that is invoked for every queued resize
and every request that is not previously cached by trading qdata on
widgets for 3 extra bitfields on the GtkWidgetPrivate structure.
2011-02-08 00:39:51 +09:00