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
Tristan Van Berkom
b01fc35c18
Added default implementations of various GtkCellArea vfuncs.
...
Having default implementations on abstract classes that do nothing
or print errors make life easier for language bindings implementors,
inside GTK+ this makes little or no difference.
2011-02-03 19:03:49 +09:00
Tristan Van Berkom
ce000db7f6
Added default implementation of GtkCellRendererClass.get_request_mode()
...
Having default implementations on abstract classes that do nothing
or print errors make life easier for language bindings implementors,
inside GTK+ this makes little or no difference.
2011-02-03 19:01:55 +09:00
Matthias Clasen
7894ff4bcb
Don't g_object_unref cairo surfaces
...
This was causing warnings when dragging text from labels.
2011-02-02 22:05:26 -05:00
Martin Pitt
1bd36ce723
[GI] Annotate gtk_drag_{dest,source}* as methods
...
As these do not start with gtk_widget_*, the GI scanner does not recognize them
as methods. With the recently added (method) annotation [1] it is now possible
to mark them as proper methods of GtkWidget.
https://bugzilla.gnome.org/show_bug.cgi?id=639945
[1] http://git.gnome.org/browse/gobject-introspection/commit/?id=09bca85dd4
2011-02-02 17:51:48 +01:00
Martin Pitt
0e795b67c3
[GI] Mark mis-detected constructors as such
...
constructors which take an object of the same class as its first argument are
mis-detected as method call with "self" argument by the GIR scanner. Using the
new (constructor) annotation from bug 561264, mark some of them as proper
constuctors, so that you can call them with NULL as first argument from
bindings; in particular, this fixes gdk_window_new() and the
gtk_radio_button_new_with*() constructors.
2011-02-02 15:11:06 +01:00
Matthias Clasen
3067ef4a9b
Fix the build with --enable-gtk2-dependency
2011-02-02 01:30:21 -05:00
Tristan Van Berkom
2e34842b1a
Fixed GtkCellLayout buildable implementation to set cell properties explicitly set to "" (i.e. explicitly set to nothing).
2011-02-02 15:22:31 +09:00
Tristan Van Berkom
fb3e221559
Fixed GtkContainer buildable implementation to set packing properties explicitly set to "" (i.e. explicitly set to nothing).
2011-02-02 15:22:31 +09:00
Matthias Clasen
54c97f3ba2
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
2011-02-02 00:40:02 -05:00
Vincent Untz
62d7593fc2
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
2011-02-01 20:08:52 +01:00
Matthias Clasen
1b25489cba
Remove accidentally exported symbol
2011-02-01 13:54:27 -05:00
Benjamin Otte
44c02fcbb1
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().
2011-02-01 18:51:57 +01:00
Benjamin Otte
5bc04bc07b
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.
2011-02-01 18:51:57 +01:00
Matthias Clasen
8448780a6c
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
2011-02-01 01:32:02 -05:00
Benjamin Otte
fac914d70c
API: gtk: Remove client_event vfunc from GtkWidget
...
Also remove the (de-facto unused) implementation from GtkWindow that was
only used for sockets/plugs.
2011-02-01 06:33:01 +01:00
Dan Winship
fc43e42bf2
Fix several bugs handling GtkTrayIcon symbolic colors
...
https://bugzilla.gnome.org/show_bug.cgi?id=641059
2011-01-31 19:13:29 -05:00
Matthias Clasen
6d218084c3
Clarify models vs callbacks in entry completion docs
...
See https://bugzilla.gnome.org/show_bug.cgi?id=641073
2011-01-31 19:01:16 -05:00
Kristian Rietveld
9dcdca2501
Don't use GTK_IS_PLUG for non-X11 backends
2011-02-01 00:26:04 +01:00
Kristian Rietveld
119d29dcb9
Only include gtktrayicon.h when building for X11
...
GtkTrayIcon depends on GtkPlug which is X11-specific. This fixes the
build for Quartz.
2011-01-31 23:54:38 +01:00
Matthias Clasen
726b0d8736
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
2011-01-31 17:39:42 -05:00
Stefan Kost
1f3a5a8d92
Clarify key-{press,release}-event docs.
...
Mention key-repeat in key-press and fix a copy'n'paste in key-release docs.
2011-01-31 23:10:10 +02:00
Tristan Van Berkom
a37976dae0
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).
2011-02-01 05:02:56 +09:00
Tristan Van Berkom
ddb4b3ebe2
Added "shift" modifier versions of keybings for GtkFileChooser "folder-up"/"folder-down" bindings.
...
Also updated documentation, closes bug 322926
2011-02-01 05:02:56 +09:00
Matthias Clasen
30958ea8ad
Fix a segfault in gtk_statusbar_remove_all
...
https://bugzilla.gnome.org/show_bug.cgi?id=640487
2011-01-31 11:50:23 -05:00
Emmanuele Bassi
d51c617e13
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.
2011-01-31 16:21:36 +00:00
Matthias Clasen
cb498c2101
Speed up expander animation
...
Go back to 200ms, which is what we had in GTK+ 2.x.
Themes can change this, of course.
2011-01-31 10:51:09 -05:00
Matthias Clasen
38f6065b2b
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
2011-01-31 10:48:40 -05:00
Matthias Clasen
fb860a9527
Add a note to ::fill and ::expand docs
2011-01-31 10:26:28 -05:00
Matthias Clasen
a26ffdc740
Prevent a segfault in GtkPlug
...
The grabbed_keys might be NULL, so deal with that.
https://bugzilla.gnome.org/show_bug.cgi?id=641023
2011-01-31 10:17:21 -05:00
Matthias Clasen
0208539c4b
Remove RC file references from docs where appropriate
2011-01-31 09:34:46 -05:00
Matthias Clasen
6a8d494ba1
Fix GTK_SPINNER_CLASS macro
...
https://bugzilla.gnome.org/show_bug.cgi?id=640999
2011-01-31 07:39:06 -05:00
Matthias Clasen
09a52de478
Add a missing id to the docs
2011-01-31 07:39:06 -05:00
Matthias Clasen
175c57ebd7
Small optimization
...
We can use the fact that all involved strings are interned; also
deprecate gtk_binding_set_add_path() in the headers, too.
2011-01-30 23:35:25 -05:00
Matthias Clasen
f67ab808fd
doc fixes
2011-01-30 23:35:25 -05:00
Matthias Clasen
b448bb81ce
Move GtkBindings docs inline
2011-01-30 23:00:12 -05:00
Matthias Clasen
dcf3430e17
Add a gtkbindingsprivate.h header
2011-01-30 21:50:54 -05:00
Matthias Clasen
8bb0d552f1
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.
2011-01-30 21:27:56 -05:00
Matthias Clasen
a04e721473
Add binding-set tests
2011-01-30 21:27:55 -05:00
Matthias Clasen
2ea010bca0
Convert remaining rc files to css
2011-01-30 21:27:55 -05:00
Matthias Clasen
f16dbe0db3
Convert the mac key theme to css
2011-01-30 21:27:55 -05:00
Matthias Clasen
c770f441ca
Convert the Emacs key theme to css
2011-01-30 21:27:55 -05:00
Matthias Clasen
bf9e59e392
Make documentation match behaviour
2011-01-30 21:27:55 -05:00
Carlos Garnacho
c0b8053089
Move key/theme CSS providers to GtkSettingsPrivate
2011-01-30 21:27:55 -05:00
Carlos Garnacho
a03e33b10b
Parse the gtk-keys.css file in the GtkSettings::gtk-key-theme-name theme path
2011-01-30 21:25:42 -05:00
Carlos Garnacho
c70b65f0eb
Document @binding-set and the gtk-key-bindings css parser property
2011-01-30 21:24:52 -05:00
Carlos Garnacho
b5bee0a827
Remove unneeded code from GtkBindingSet
2011-01-30 21:24:52 -05:00
Carlos Garnacho
9a3466832c
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.
2011-01-30 21:24:52 -05:00
Carlos Garnacho
d39f0411be
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.
2011-01-30 21:24:51 -05:00
Carlos Garnacho
dbff92fd9f
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"
}
2011-01-30 21:24:51 -05:00
Carlos Garnacho
53ca6eb0b5
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.
2011-01-30 21:24:51 -05:00
Bastien Nocera
b98caf9385
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
2011-01-30 21:22:12 -05:00
Bastien Nocera
7f3aa92086
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
2011-01-30 20:48:29 -05:00
Matthias Clasen
ec37512f64
Add a gtkscaleprivate.h header
2011-01-30 03:17:05 -05:00
Matthias Clasen
4a0aa41742
Add gtkorientableprivate.h header
2011-01-30 03:12:49 -05:00
Matthias Clasen
4b5b1ab43a
Fix build
...
We must build gtk before gtk/tests
2011-01-30 02:49:31 -05:00
Matthias Clasen
b71134fc77
Drop unused theme-bits
2011-01-30 02:47:27 -05:00
Matthias Clasen
572441f94f
Drop unused file circles.xml
2011-01-30 02:45:01 -05:00
Matthias Clasen
6c3ce36f63
Remove GTK+ 1 era xbm icons
2011-01-30 02:43:38 -05:00
Matthias Clasen
242c2a389d
Whitespace fixes
2011-01-30 02:36:17 -05:00
Matthias Clasen
837c504a11
Move GtkPrintOperation docs inline
2011-01-30 02:34:59 -05:00
Matthias Clasen
cb6e036d67
More compiler warnings silenced
2011-01-30 01:59:12 -05:00
Matthias Clasen
2b631739c0
Fix another compiler warning about unused variables
2011-01-30 01:53:49 -05:00
Matthias Clasen
6dc142a50a
Silence more compiler warnings
2011-01-30 01:52:55 -05:00
Matthias Clasen
5caa76c5df
Fix compiler warnings about unused variables
2011-01-30 01:50:58 -05:00
Matthias Clasen
0c2e16f04b
Include gtkx.h here
...
When building under X11, gtktypefuncs.c includes references to gdk
X11 backend functions, so we need to include the header.
2011-01-30 01:45:18 -05:00
Matthias Clasen
10b6afa1f5
Improve some deprecation notes
2011-01-29 23:09:51 -05:00
Matthias Clasen
f6cd9c1553
Documentation tweaks
2011-01-29 22:47:33 -05:00
Matthias Clasen
d39f98fff4
Go back to using the image/* example
2011-01-29 22:42:14 -05:00
Paolo Borelli
350d0b54e3
Do not use old functions in the docs.
2011-01-29 21:32:56 +01:00
Matthias Clasen
f783a75d61
Add a gtkx.h header for X11-specific GTK+ api
...
This keeps us from pulling gdkx.h into gtk.h
https://bugzilla.gnome.org/show_bug.cgi?id=640902
2011-01-29 14:16:47 -05:00
Carlos Garnacho
8a056d4774
Move "widget/window under device" accounting to be per-widget
...
This management is better done per-widget rather than per-screen,
as windows being destroyed won't trigger a leave notify for the
devices on top of it, and this information is too transitive
to keep weak refs and such.
This fixes the critical warning seen in gtk/tests/testing.
2011-01-29 14:45:05 +01:00
Paolo Borelli
55713025c0
Add padding to the themingengine class.
2011-01-29 14:34:29 +01:00
Paolo Borelli
001697a22a
Move the get_cursor_color in GtkStyleContext
...
Move the private get_cursor_color method belongs to StyleContext. Change
the api so that retrieving both primary and secondary color is possible.
I left the method private for now, though it should probably be public
as all the other getters.
2011-01-29 13:13:42 +01:00
Paolo Borelli
9e20341775
Use GtkRGBA for the cursor color priv api.
2011-01-29 12:38:50 +01:00
Paolo Borelli
469f4592d4
Fix typo in calculating secondary cursor color
2011-01-29 12:24:37 +01:00
William Jon McCann
32f6070bc8
Don't call object notify for something that isn't a property
2011-01-28 17:00:59 -05:00
Krzesimir Nowak
d688343a31
Check if buffer is NULL after setting it to NULL, not before.
...
This catches cases when "notify::buffer" handler does not recreate
the buffer again, which could end in reference leak.
https://bugzilla.gnome.org/show_bug.cgi?id=634677
2011-01-28 20:49:47 +01:00
Benjamin Otte
83927a61fc
recentfilter: Fix gcc warnings
...
gtkrecentfilter.c:37:47: error: "/*" within comment
gtkrecentfilter.c:61:24: error: "/*" within comment
2011-01-28 17:06:07 +01:00
Benjamin Otte
ce33daaff6
gtk: gtkfilefilter.c:57:24: error: "/*" within comment
2011-01-28 17:06:07 +01:00
Benjamin Otte
56c6c63cce
plug: Move private functions to gtksocketprivate.h
2011-01-28 17:06:07 +01:00
Benjamin Otte
4aa67439f3
plug: Use Window instead of GdkNativeWindow
2011-01-28 17:06:07 +01:00
Benjamin Otte
ad1f9cc0c6
socket: Use Window instead of GdkNativeWindow
2011-01-28 17:06:07 +01:00
Benjamin Otte
1b18916a74
win32: Make GtkWin32EmbedWidget use HWND instead of GdkNativeWindow
2011-01-28 17:06:07 +01:00
Benjamin Otte
63aa56bcc4
window: Get rid of GdkNativeWindow usage
...
Make _gtk_window_add_embedded_xid() and
_gtk_window_remove_embedded_xid() take a Window.
2011-01-28 17:06:07 +01:00
Benjamin Otte
e1f6a24da9
window: Make embedded xid specific to the X11 backend
2011-01-28 17:06:07 +01:00
Benjamin Otte
5a1755bc50
gtk: Prefix gtk_window_add_embedded_xid() with underscore
...
It's a private API after all.
Same thing for gtk_window_remove_embedded_xid().
2011-01-28 17:06:07 +01:00
Benjamin Otte
e339c6276d
API: Don't export gtk_window_add_embedded_xid()
...
Same thing for gtk_window_remove_embedded_xid()
2011-01-28 17:06:07 +01:00
Benjamin Otte
b8895cf910
socket: Merge gtksocket-x11.c back into gtksocket.c
2011-01-28 17:06:07 +01:00
Benjamin Otte
1d80400478
plug: Merge gtkplug-x11.c back into gtkplug.c
2011-01-28 17:06:07 +01:00
Benjamin Otte
c7f0cffd8a
plug/socket: Remove x11 checks and non-x11 code
2011-01-28 17:06:06 +01:00
Benjamin Otte
50e1589a19
plug/socket: Clarify docs about availablility of widgets
2011-01-28 17:06:06 +01:00
Benjamin Otte
89722d41c4
win32: Fix Makefile for plug/socket removal.
2011-01-28 17:06:06 +01:00
Benjamin Otte
8dc932bbe0
plug/socket: Remove plug/socket backend implementations for win32 and stub
2011-01-28 17:06:06 +01:00
Benjamin Otte
3860af516c
plug/socket: Make GtkPlug and GtkSocket X11-specific
...
People agreed that it doesn't make sense to make an xembed
implementation like plug/socket does not make sense on anything but X11.
And as GdkNativeWindow is going away for multibackend portability
reasons, we'd either need API fixes in the plug-socket codee or
constrain the widgets to a single backend. We chose the latter.
2011-01-28 17:06:06 +01:00
Cosimo Cecchi
d254089308
mount-operation: don't show the dialog until the tree is populated
...
Otherwise it won't show up properly, and GTK+ will trigger a warning.
Don't know why this did not show up before.
https://bugzilla.gnome.org/show_bug.cgi?id=640744
2011-01-28 09:59:58 -05:00
Ignacio Casal Quinteiro
b7de18ab35
Remove gtk_paste_point_override mark if we don't insert any text.
...
This patch fixes bug #590459 .
2011-01-28 13:26:00 +01:00
Murray Cumming
1cd82eff4b
Move gtk_widget_reset_style() out of the deprecation ifdef.
...
This new function was not apparently meant to be inside the deprecation
guards.
2011-01-28 10:17:06 +01:00
Murray Cumming
3efc06a659
Tiny typo fix.
2011-01-28 10:10:23 +01:00
Tristan Van Berkom
5a5854f6f6
Add default class implementation of gtk_widget_get_request_mode().
...
Instead of checking if klass->get_request_mode is != NULL from
the gtk_widget_get_request_mode() api, this allows classes to
trust that there is a default implementation and chain up (specifically
added this for gtkmm wrapper objects).
2011-01-28 15:58:07 +09:00
Matthias Clasen
ea6e57412f
Protect against giant title fonts
...
We don't want repeated calls to set_title_font to blow up the
font size ever more, so reset the font each time.
https://bugzilla.gnome.org/show_bug.cgi?id=640712
2011-01-27 23:23:43 -05:00
Matthias Clasen
ef7433e7f1
Make the places in the file chooser come up with a reasonable size
2011-01-27 21:50:00 -05:00
Matthias Clasen
b5c09b9e39
Fix the new filechooser buttons to work without symbolic icons
2011-01-27 21:04:32 -05:00
William Jon McCann
b64c6f2fd3
Use a toolbar with symbolic icons under scrolled lists
2011-01-27 20:24:57 -05:00
Carlos Garnacho
ea7fd526f9
Remove GTK_RBNODE_IS_SEMI_[COLLAPSED|EXPANDED] flags.
...
These aren't used anymore.
2011-01-27 20:57:14 +01:00
Carlos Garnacho
3d57787d6e
Set "cell" class and state before rendering a cellrenderer.
2011-01-27 20:57:13 +01:00
Carlos Garnacho
e3a77b9db8
Make GtkCellRendererAccel use GtkStyleContext
2011-01-27 20:57:13 +01:00
Carlos Garnacho
c59a05b0d4
Make GtkCellRendererPixbuf use GtkStyleContext
2011-01-27 20:57:13 +01:00
Carlos Garnacho
3285eff289
Make GtkCellRendererProgress use GtkStyleContext
2011-01-27 20:57:12 +01:00
Carlos Garnacho
9b091ae330
Make GtkCellRendererToggle use GtkStyleContext
2011-01-27 20:57:12 +01:00
Carlos Garnacho
7c2f35d7c1
Make GtkCellRendererText use GtkStyleContext
2011-01-27 20:57:12 +01:00
Carlos Garnacho
3efc1b0b4f
Make GtkIconView use GtkStyleContext
2011-01-27 20:57:11 +01:00
Carlos Garnacho
08af1783c5
Make GtkTreeView use GtkStyleContext
...
Expander animation has been replaced by implicit animations
from the style context.
Column headers are also properly themed, GtkContainer::get_path_for_child()
is implemented and the treeview resets column buttons style on columns
being reordered.
The default CSS has changed to theme treeviews sensibly.
2011-01-27 20:57:11 +01:00
Carlos Garnacho
41d6837fa2
Make GtkCellArea use GtkStyleContext
...
gtk_cell_area_[gs]et_style_detail() is no longer needed, as
the passed widget's context would already have all necessary
info.
2011-01-27 19:32:07 +01:00
Carlos Garnacho
f96aae68f4
Add gtk_cell_renderer_get_state()
...
This is a helper function to help retrieve a GtkStateFlags
from a GtkCellRendererState, also given the cell renderer
and widget sensitivities.
2011-01-27 19:32:07 +01:00
Tristan Van Berkom
031a092254
Added <mime-types> and <patterns> parsing support to GtkFileFilter.
2011-01-27 22:53:24 +09:00
Tristan Van Berkom
2944af00d0
Removed a useless redundant line of code in gtkcellview.c
2011-01-27 16:04:46 +09:00
Tristan Van Berkom
35e7e65bcb
Added links to the GtkTextTagTable and GtkMenuToolButton GtkBuildable documentation from GtkBuilder documentation.
2011-01-27 16:04:46 +09:00
Matthias Clasen
008de2bafd
Document new default handling
2011-01-27 00:32:07 -05:00
Matthias Clasen
064e48f846
Rename GTK_SETTINGS_SOURCE_RC_FILE to _THEME
...
This makes more sense, since we don't parse rc files anymore.
This is private api inside gtksettings.c, anyway.
2011-01-27 00:32:07 -05:00
Matthias Clasen
5501569354
Parse a per-theme settings.ini file
...
This lets themes override settings values again. We are using
the same priority that was used from the rc file parser, so things
are largely unchanged, relative to other settings sources.
2011-01-27 00:32:07 -05:00
Matthias Clasen
ea24fa62c8
Privately export css_provider_get_theme_dir
2011-01-27 00:32:07 -05:00
Matthias Clasen
368a5c8937
Break out into a separate function
...
Move key file parsing to gtk_settings_load_from_key_file(), in
preparation for loading per-theme files. Load key files from both
/etc and ~/.config, with the latter overriding the former. Support
parsing enum values.
2011-01-27 00:32:07 -05:00
Matthias Clasen
8f3a3fda0b
First pass a parsing a keyfile for default settings
2011-01-27 00:32:07 -05:00
Matthias Clasen
96af68529b
Document that gtk_widget_queue_draw_area is in widget coordinates
2011-01-26 18:20:51 -05:00
Tristan Van Berkom
93f825592e
Added links to the GtkComboBox/GtkRecentFilter GtkBuildable documentation from GtkBuilder documentation.
2011-01-26 23:58:47 +09:00
Tristan Van Berkom
e7354bd3f3
Fixed GtkCellLayout to parse <cell-packing> property text accumulatively.
2011-01-26 23:55:01 +09:00
Tristan Van Berkom
5ebc6f4df2
Fixed GtkContainer to parse <packing> property text accumulatively.
2011-01-26 23:55:01 +09:00
Tristan Van Berkom
9487ce77c4
Changed GtkComboBoxText <items> builder parser to use g_string_append_len().
2011-01-26 23:55:01 +09:00
Tristan Van Berkom
2081ade640
Changed GtkRecentFilter builder parsing to use g_string_append_len
2011-01-26 23:55:01 +09:00
Tristan Van Berkom
26b326b704
Fix GtkRecentFilter GtkBuildable parsing to handle incomming text accumulatively
2011-01-26 23:55:01 +09:00
Tristan Van Berkom
e8157126d8
Fix GtkComboBoxText GtkBuildable <items> parsing to handle incomming text accumulatively
2011-01-26 23:55:01 +09:00
Tristan Van Berkom
8397a79b7d
Added a line to the documentation example of GtkRecentFilter
2011-01-26 23:55:01 +09:00
Tristan Van Berkom
a6a7b7e9cf
Added GtkBuildable support for adding rules to GtkRecentFilter
...
Also added documentation section for this. Since the GtkRecentFilter
documentation was still living in sgml, as a side-effect I migrated these
docs to the gtkrecentfilter.[ch] sources.
2011-01-26 23:55:01 +09:00
Martin Pitt
d7b71be49b
[GI] Fix gtk_tree_view_get_cursor() transfer annotation
2011-01-26 14:39:50 +01:00
Christian Dywan
205ee834ec
State that _add_button functions return a "#GtkButton widget"
...
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=586635
2011-01-26 10:33:49 +01:00
Michael Natterer
3933f99ed7
gtk: add missing class padding
...
Sorry for this late ABI break, but the newly added style classes
definitely need padding, so I can just as well add missing padding
globally.
2011-01-25 22:29:00 +01:00
Carlos Garnacho
e521158973
Make gtk_widget_get_state() only handle GtkStateType values available in 2.x
...
GtkStateType was generally used as an index in GtkStyle color arrays, so
bigger values will cause invalid memory accesses in widgets that are still
doing that. this was seen in focused GtkIconViews for example
2011-01-25 13:36:13 +01:00
Matthias Clasen
7db4bee4b6
Clarify documentation about application vs window lifecycle
...
https://bugzilla.gnome.org/show_bug.cgi?id=639931
2011-01-24 22:20:35 -05:00
Matthias Clasen
9be8bbc9a0
Add gtk_app_chooser_button_get/set_heading
2011-01-24 19:25:08 -05:00
Carlos Garnacho
e3be6fc24f
Unset border-width for treeview rows in default CSS
...
Fixes bug #640391 - Display lines between rows when window is focused.
Reported by Guillaume Desmottes.
2011-01-24 18:14:05 +01:00
Matthias Clasen
98346cc219
Avoid passing widgets around here
...
The style context is enough.
2011-01-24 07:46:15 -05:00
Matthias Clasen
b42b47e7d3
Port gtk_draw_insertion_cursor to GtkStyleContext
2011-01-24 00:24:12 -05:00
Matthias Clasen
6619aa58b1
Kill one more unused variable
2011-01-23 23:48:32 -05:00
Matthias Clasen
3413438d37
Don't leak CursorInfo structs
2011-01-23 23:20:57 -05:00
Matthias Clasen
d9fcc4c630
Silence new gcc warnings
...
gcc 4.6.0 has started to warn about set-but-unused variables.
So don't do that, then.
2011-01-23 21:51:38 -05:00