Benjamin Otte
172f894120
settings: Always use the same default values
...
Set the Mac key theme when creating a Quartz settings object instead of
having it the default when quartz is enabled.
This keeps compatibility with the GTK2 behavior that the Mac key theme
is not used for the X11 backend, which could now happen for a
multi-backend build.
2011-03-02 17:18:49 +01:00
Benjamin Otte
e69badbcd1
settings: Keep the GtkSettings object identical no matter the backend
...
Previously we were enabling some settings properties only if the X11
backend was enabled. This worked fine with GTK2 where only one backend
was enabled at a time, but now when multiple backends can be enabled,
this does not make sense.
2011-03-02 17:02:51 +01:00
Benjamin Otte
399dc74d74
settings: Avoid a segfault when loading keyfile
...
When the keyfile is loaded, no screen exists yet, so we need to vheck
for that.
2011-03-02 16:21:44 +01:00
Tristan Van Berkom
c844a24ae6
Allow GtkAppChooser classes to be instantiated with content-type=NULL.
...
Mostly for corner cases such as Glade that treats objects generically
and needs to have an object that doesnt crash out of g_object_new().
2011-03-01 19:41:15 +09:00
Matthias Clasen
63c7701ca3
Don't use GDK_NONE when GDK_SELECTION_CLIPBOARD is meant
2011-02-28 19:25:35 -05:00
Patricia Santana Cruz
49c48546c8
Removed incorrect description's sentence.
...
Description was wrong when it explained: "The two areas are separated
by a GtkHSeparator.". These separators are not used any more.
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=643496
2011-02-28 17:36:05 +00:00
Matthias Clasen
9707d8a3e6
Don't assert on zero width/height in render functions
...
We can just silently ignore those rendering calls.
https://bugzilla.gnome.org/show_bug.cgi?id=643041
2011-02-28 07:52:59 -05:00
Matthias Clasen
2e192d01f1
List all available icons in Makefile.am
...
This mismatch was causing e.g. gtk-caps-lock-warning.png to show
up as missing image in entries.
2011-02-26 00:23:47 -05:00
Matthias Clasen
46cc85fd7e
GtkSwitch: use regular activation
...
GtkSwitch was listening for Space/Enter keyreleases itself, instead
of providing an 'activate' action signal, like e.g GtkButton. As a
side-effect, this fixes
https://bugzilla.gnome.org/show_bug.cgi?id=643321
2011-02-25 15:47:03 -05:00
Matthias Clasen
6b91392afd
GtkTrayIcon: chain up in dispose
...
Pointed out in bug 643131
2011-02-25 14:48:55 -05:00
Tristan Van Berkom
f85e80aada
More patchwork for icon view subclasses that access the icon view api prematurely.
...
In this patch we adress rows_reordered() and row_deleted() callbacks
(since some icon view subclasses manipulate the connected treemodel
from _init()).
2011-02-25 16:00:20 +09:00
Tristan Van Berkom
2408b1c59e
More patchwork to ensure GtkIconView subclasses can use the icon view api
...
from the subclass's instance structure initializer
2011-02-25 15:07:55 +09:00
Federico Mena Quintero
6c4196e9e4
[GtkFileChooser] Fix initial selection when hidden files are shown
...
We were breaking prematurely out of the loop that goes through
each file that is pending selection; not only does that loop
disable filtering and show hidden files if needed, but it also
selects the files themselves. So we need to walk the whole
list of files.
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
https://bugzilla.gnome.org/show_bug.cgi?id=643170
2011-02-24 14:56:57 -06:00
Tristan Van Berkom
4164a49b84
Added documentation to "cell-area" construct-only properties.
...
Indicate what kind of area will be used by default if none is
provided by the user.
2011-02-24 16:05:41 +09:00
Tristan Van Berkom
db4fa1a941
Removed unused EXPOSE_EVENT enumeration from the GtkWidget signals.
2011-02-23 22:07:27 +09:00
Tristan Van Berkom
30f03a1c65
Remove mention of GtkWidget::expose-event from docs in gtkwidget.c
2011-02-23 21:58:48 +09:00
Tristan Van Berkom
4d76644f5c
Add more defensive code to avoid accessing GtkIconView's cell area before it exists.
...
Adding these cases here to cater to icon view subclasses that want to
access icon view APIs from the instance structure initializer instead
of properly waiting for the super class to initialize and adding renderers
from the ->constructor() vfunc.
2011-02-23 20:50:50 +09:00
Murray Cumming
8d54fa7102
More tiny documentation typo fixes.
2011-02-23 11:09:20 +01:00
Murray Cumming
f91c04e284
Minor documentation improvements
...
Mostly correcting it's to its and changing some , to .
2011-02-23 10:26:21 +01:00
Matthias Clasen
700276eae4
Don't export extra symbols for accessibility
2011-02-21 17:34:51 -05:00
Benjamin Otte
ff5d4e13de
textview: Remove x/y arguments from render_para() func
...
We were only passing 0 anyway and it's easy to translate the cairo
context in use instead of passing x/y coordinates.
2011-02-20 23:43:42 +01:00
Benjamin Otte
c647085e76
textview: Translate the cairo context instead of keeping y value
...
This avoids overflow when transforming a large value to a pango unit.
To reproduce the problem:
seq 200000 > test.txt && tets/print-editor test.txt
Then scroll to around line 140.000 to see it (depends on font size of
course).
2011-02-20 23:43:42 +01:00
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