Tristan Van Berkom
f632956166
Fixed GtkTreeModel::row-deleted documentation
...
This documentation was in direct conflict with the documentation
of gtk_tree_model_row_deleted() docs, the function docs are TRUE,
the signal docs were FALSE, fixed.
2011-03-09 15:06:45 +09:00
Cosimo Cecchi
e772082a2a
stylecontext: add a raised style class
...
This is useful for raised elements, for example raised buttons on
primary toolbars.
https://bugzilla.gnome.org/show_bug.cgi?id=644248
2011-03-08 20:05:30 -05:00
Carlos Garnacho
191428f596
gtksettings: plug a leak
...
Make the GValue take the created GString.
2011-03-07 23:06:55 +01:00
Carlos Garnacho
fe12c46531
cssprovider: Reset the scope before skipping to the next rule after an error happens.
...
This is so the selector token gets parsed with the correct GScanner scope/config
on all situations.
2011-03-07 23:06:54 +01:00
Carlos Garnacho
aa6eee73e5
cssprovider: plug two more leak fixes
2011-03-07 23:06:54 +01:00
Carlos Garnacho
794593a4f8
cssprovider: return immediately if there's remaining data behind a parsed value
...
parse_value() could fill in a GError, but yet (incorrectly) return G_TOKEN_NONE,
having the GError leaked as a result.
https://bugzilla.gnome.org/show_bug.cgi?id=642604 , Reported by Felix Riemann.
2011-03-07 23:06:54 +01:00
John Ralls
f7f9e16939
Finish making the GtkSettings object identical on all backends so that it doesn't assert on non-X11 backends
2011-03-07 12:28:50 -08:00
Cosimo Cecchi
96d6c2d108
treeview: propagate the selected state from the row
...
An expander in a row can't be selected on its own otherwise. This way
themes can override the expander colors when the row is selected.
https://bugzilla.gnome.org/show_bug.cgi?id=644089
2011-03-07 08:12:48 -05:00
Carlos Garnacho
b93a2ebeed
entry: Do not clobber state when rendering the default icons.
...
Use lower level methods that just require changing the state in the
GtkStyleContext instead. Fixes a problem where the insensitive state
was being set to the entry becasuse a parent was insensitive, spotted
by Alex Larsson.
2011-03-07 12:48:31 +01:00
Cosimo Cecchi
a3b3c91001
notebook: flip the render order
...
The render order for tabs is now
- left to right until the active tab
- right to left until the active tab
- active tab
This allows themes that use non-straight lines for the tab curvature to
draw them not worrying about flipping one side after the active tab.
2011-03-07 00:49:14 -05:00
Cosimo Cecchi
a54ca77fb7
notebook: fixup the last commit
...
Let the tab overlap eat the padding, otherwise having tab-overlap >
tab-curvature without cutting the label is impossible.
This way we give the label widget all the allocation possible before
giving up and cutting it if the values for tab-overlap are too extreme
for the given padding.
2011-03-06 22:08:26 -05:00
Cosimo Cecchi
da814ae767
notebook: make sure the label widget allocation not exceeds the overlap
2011-03-06 18:45:20 -05:00
Cosimo Cecchi
27a0cef60c
notebook: make sure the allocation keeps track of the tab curvature
...
This was a genuine typo, because "padding" was calculated but unused in
this branch of the code.
2011-03-06 14:48:09 -05:00
Ignacio Casal Quinteiro
0a03e81224
Fix conversion from GdkColor to GdkRGBA
2011-03-06 11:17:06 +01:00
Matthias Clasen
39d4207ab7
Use existing mime type for GTK_FILE stock icon
...
document-x-generic is not actually a mimetype. Using text-x-generic
instead lets us work out-of-the-box in a11y themes.
2011-03-06 00:31:20 -05:00
Matthias Clasen
e2ba86289f
Only count visible children during size request
...
This was causing spacing between image and label to be requested
in buttons, even though the image is invisible.
2011-03-05 23:27:26 -05:00
Benjamin Otte
8b17b16d63
theme: Fix spinner for inactive state.
...
Previously, the inactive state caused the spinner's solid line to be
drawn to the right. Now it's drawn to the top instead, which makes the
inactive state look more natural.
2011-03-05 15:03:56 +01:00
Benjamin Otte
9b8fbe5b72
theme: Make spinner animation turn clockwise
2011-03-05 15:03:56 +01:00
Benjamin Otte
2482847ecf
theme: Make spinner steps count forward, not backward
...
This makes the spinner roate the right way again.
2011-03-05 15:03:56 +01:00
Benjamin Otte
de3616d52c
theme: Make spinner drawing start with the solid line
...
Previously, for i == 0, we were drawing the translucent line first.
However, people reading the code would always assume the solid line is
indicated by the current step. So make the code do that.
Note that the spinner now rotates in the wrong direction. This will be
fixed in a future commit.
2011-03-05 15:03:56 +01:00
Benjamin Otte
41b5a6a900
theme: Compute scale values once
...
Use a local variable to store the xscale and yscale, so that it's only
computed once.
Makes it easier to do the changes I'm about to do.
2011-03-05 15:03:56 +01:00
Benjamin Otte
8c8dda6a6b
theme: Do general cairo setup in one place
...
Also remove wrong comment.
2011-03-05 15:03:56 +01:00
Benjamin Otte
639bf2a2a5
theme: Remove unnecessary save/restore in spinner code
2011-03-05 15:03:56 +01:00
Benjamin Otte
3e524ac28e
theme: Simplify spinner drawing code a bit.
2011-03-05 15:03:56 +01:00
Murray Cumming
5b347db1af
gtk_init*(): Document that argc/argv can be 0,NULL.
...
* gtk/gtkmain.c: (gtk_init): Mention that argc and argv can be 0,
using the new text from the g_applicatoin_run() documentation.
There was already introspection annotation about that.
(gtk_init_check, gtk_init_with_args): Use the same text here.
See bug #643649 comment 2.
2011-03-05 14:57:32 +01:00
Xan Lopez
eeedcf3612
spinbutton: remove unused variable
2011-03-04 21:43:08 +01:00
Cosimo Cecchi
6a423a99ad
spinbutton: rework GtkSpinButton drawing handler
...
Make the arrows bigger, and position them according to the mockups.
2011-03-04 11:13:14 -05:00
Cosimo Cecchi
cae7b93729
Revert "spinbutton: center-align by default"
...
This reverts commit 64ef11985b
.
2011-03-04 11:13:13 -05:00
Matthias Clasen
2ccc6c0d60
GtkNotebooks: fix regressions from tab-pack removal
2011-03-03 18:30:03 -05:00
Matthias Clasen
a71e801943
GtkNotebook: Don't let tab allocation go negative
2011-03-03 18:30:03 -05:00
Cosimo Cecchi
8da124aa1f
Cleanup unused variables
2011-03-03 17:48:26 -05:00
Cosimo Cecchi
e9182123a8
stylecontext: add a primary toolbar style class
2011-03-03 17:48:26 -05:00
Cosimo Cecchi
d5c4a0f503
all: add a "separator" style class
2011-03-03 17:48:26 -05:00
Cosimo Cecchi
fe3f9ca9cd
menuitem: set the menubar style class for menu items on a bar
...
So that themes can distinguish them from the other menu items.
2011-03-03 17:48:26 -05:00
Cosimo Cecchi
4a99e75ce7
window: don't confuse priv->type_hint with priv->gdk_type_hint
...
This broke, among the others, menu rendering.
2011-03-03 17:48:25 -05:00
Cosimo Cecchi
ee43f55b5f
menuitem: mark with the GTK_STYLE_CLASS_MENUITEM style class
2011-03-03 17:48:25 -05:00
Cosimo Cecchi
64aac9624c
Use 16 as default size for checkbutton indicator
...
So that 16x16 icons can be used from themes such as Adwaita in their
natural size.
2011-03-03 17:48:25 -05:00
Cosimo Cecchi
ea7661cb3f
switch: remove slider padding from available allocation when drawing
...
This also simplifies the code a bit, and makes previous workarounds
useless.
2011-03-03 17:48:25 -05:00
Cosimo Cecchi
6abbd68674
switch: fetch the padding values from the slider
...
It's the slider which acts as a child inside the container through, so
we should fetch the slider padding when computing height/width.
2011-03-03 17:48:25 -05:00
Cosimo Cecchi
c310c35a7a
switch: propagate the active state to the slider
2011-03-03 17:48:25 -05:00
Cosimo Cecchi
0ff4fdb233
combobox: add an arrow-scaling property to GtkComboBox
2011-03-03 17:48:25 -05:00
Cosimo Cecchi
64ef11985b
spinbutton: center-align by default
2011-03-03 17:48:25 -05:00
Cosimo Cecchi
fa4fb6724c
arrow: x and y coordinates of the arrow rendering should be double
...
To prevent off-by-one rounding errors when drawing them later.
2011-03-03 17:48:25 -05:00
Cosimo Cecchi
230bd4b461
range: x and y coordinates of the arrow rendering should be double
...
To prevent off-by-one rounding errors when drawing them later.
2011-03-03 17:48:25 -05:00
Cosimo Cecchi
11f07f9bdc
range: don't set junction sides on scrollbar steppers
2011-03-03 17:48:25 -05:00
Matthias Clasen
77e46de0e1
GtkScale: Add style classes for marks
...
This enables better styling of the slider in the presence of
marks. Based on a patch by Bastien Nocera,
https://bugzilla.gnome.org/show_bug.cgi?id=643685
2011-03-03 16:49:49 -05:00
Matthias Clasen
2a9d130ed2
GtkScale: Normalize mark positions
...
This is in preparation for making scale marks styling better.
As a side-effect, TOP and LEFT position are treated the same now,
as well as BOTTOM and RIGHT.
Based on a patch by Bastien Nocera,
https://bugzilla.gnome.org/show_bug.cgi?id=643685
2011-03-03 16:49:49 -05:00
John (J5) Palmieri
a47a7abe23
[gi] don't skip gtk_menu_attach_to_widget, correctly annotate the async callback
2011-03-03 16:06:28 -05:00
John (J5) Palmieri
cdf69b4bed
[gi] add missing annotations for signals that emit Gdk.Events
2011-03-03 16:05:28 -05:00
Matthias Clasen
a3883683e5
Add GtkBuilder custom attributes for style classes
...
GtkWidget now parses custom attributes like
<style>
<class name="dark-label"/>
<class name="big-heading"/>
</style>
to add style classes to widgets.
https://bugzilla.gnome.org/show_bug.cgi?id=643347
2011-03-02 20:12:23 -05:00
Benjamin Otte
7693804fcf
window: Add check for X11 window when calling x11 function
2011-03-02 17:29:21 +01:00
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
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
Javier Jardón
db97f8660a
Use faster new G_VALUE_COLLECT_INIT variant instead G_VALUE_COLLECT
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=641621
2011-02-07 13:14:47 +00:00
Matthias Clasen
beb8c290d1
Always chain up in ::style-updated
...
This was not handled consistently, but the default handler
does useful things, so we should always chain up.
2011-02-07 07:30:37 -05:00
Hans Breuer
733731e80b
No more gtk_plug_*/gtk_socket_* symbols on win32
2011-02-06 15:07:14 +01:00
Hans Breuer
f55ccce2d9
win32: msvc build update
2011-02-06 15:07:12 +01:00
Michael Natterer
e39e8acd67
gtk: gtk_cell_renderer_get_state(): check the widget's effective sensitivity
2011-02-06 14:47:58 +01:00
Michael Natterer
1c0f85a813
gtk: gtk_cell_renderer_get_state(): a row can be both selected and insensitive
...
so pull the SELECTED state flag out of the !sensitive branch. Also,
don't make FOCUSED depend on SELECTED here, it's up to the widget to
decide whether or not that is possible.
2011-02-06 14:45:49 +01:00
Michael Natterer
330158977d
gtk: make the .trough background-color darker() as it was in GTK+ 2.x
2011-02-06 13:48:42 +01:00
Carlos Garnacho
42778894c0
s/state_changed/state_flags_changed/ in GtkComboBox
2011-02-06 11:21:42 +01:00
Carlos Garnacho
baa6343233
Handle insensitive cell renderer flags in gtk_cell_renderer_get_state()
2011-02-06 11:21:42 +01:00
Carlos Garnacho
217d3fd796
GtkStyleContext is meant to have a GdkScreen
...
It is used to get the default providers, without them
the style context can't do much. A check for NULL screen
is done before any sensitive call to
gtk_style_context_set_screen(), in the hope that any widget
will open the display before doing anything related to
styling. Fixes bug #641429 , reported by Bastien Nocera.
2011-02-06 11:21:42 +01:00
Michael Natterer
f23585b7bb
gtk: bail out in render_background_internal() if the extents are <= 0
...
otherwise we run into scaling the cairo_t into a borken state that's
not fixable by cairo_restore().
2011-02-06 11:17:59 +01:00
Michael Natterer
858ba35873
gtk: remove function gtk_entry_queue_draw() and call gtk_widget_queue_draw()
...
the old function was a leftover from when GtkEntry had a window
and was now invalidating the entire toplevel on each entry change.
2011-02-06 11:17:58 +01:00
Michael Natterer
c1bc521e92
gtk: get rid of two cases of invalidating the spinbutton when not needed
2011-02-06 11:17:58 +01:00
Matthias Clasen
bfaf472e70
Avoid tons of warnings from stylecontext initialization without screen
...
This reverts part of commit 4dc9b29
.
2011-02-05 11:21:21 -05:00
Carlos Garnacho
c0ba1c96d4
Ensure gtk_render_background()/frame() yield the same shape
...
On rounded boxes the background and the frame wouldn't fit in
perfectly, leaving some visual noise in the corners. This is now
gone.
2011-02-05 15:26:40 +01:00
Carlos Garnacho
4c40349b92
Use cairo_push_group() to mix backgrounds during transitions
...
It also helps remove the cairo_clip() call to achieve the rounded
shape.
2011-02-05 15:26:40 +01:00
Michael Natterer
c990699922
gtk: don't style GtkLabel:selected's color separately
...
or labels in selected state will not have a different color. Reviewed
by Carlos.
2011-02-05 14:10:18 +01:00
Matthias Clasen
ceeb50be9a
Don't leak a cell area context
2011-02-05 02:03:35 -05:00
Matthias Clasen
4dc9b294d8
Don't assume a screen exists before realize()
...
Fix for https://bugzilla.gnome.org/show_bug.cgi?id=641429
2011-02-04 22:03:11 -05:00
Matthias Clasen
3c1ff82b21
Fix a memory leak in GtkCSSProvider
...
Found by Felix Riemann
https://bugzilla.gnome.org/show_bug.cgi?id=641558
2011-02-04 21:13:56 -05:00
Matthias Clasen
b6783933c9
Strip XF86 prefix from untranslated keysyms
...
When we don't have translations, at least remove the
ugly XF86 prefix.
2011-02-04 15:34:36 -05:00
Javier Jardón
03df034684
Remove latest bits of GtkItemFactory
2011-02-04 17:30:11 +00:00
Tristan Van Berkom
012bc98936
Fixed gtk_recent_chooser_menu_set_current_filter to update the local pointer.
...
Before this patch, unsetting the filter manually before disposing
the recent chooser menu (or unsetting the filter twice), would cause
warnings (or invalid memory accesses).
2011-02-05 01:00:55 +09:00
Matthias Clasen
99691ab7aa
Protect against tree_view being NULL
...
This apparently happens when setting the "visible" property
from ui files.
https://bugzilla.gnome.org/show_bug.cgi?id=640801
2011-02-03 14:40:53 -05:00
Laszlo Pandy
395b13bbce
[GI] Add method annotation for gtk_grab_add and gtk_grab_remove.
2011-02-03 15:20:51 +01:00
Laszlo Pandy
295c2fe8d1
[GI] Add method annotations to remaining gtk_drag_* functions.
...
https://bugzilla.gnome.org/show_bug.cgi?id=639945
2011-02-03 15:10:43 +01:00
Tristan Van Berkom
d799d6d4f0
Fixing GtkColorButton to redraw itself when gtk_color_button_set_rgba() is called.
2011-02-03 23:02:15 +09:00