Carlos Garnacho
e2e7075533
Redo patch in efae64b
(Set vertical/horizontal class...)
...
Add a _gtk_orientable_set_style_classes() function so all
orientation changes to style happen in a single place.
2011-01-12 22:58:41 +01:00
Christian Persch
b6464b6c0a
Add target version handling to gtk-builder-convert
...
When converting to gtk3, replace GtkComboBoxEntry with GtkComboxBox
has-entry=True, and remove the has-separator property from GtkDialogs.
Bug #639327 .
2011-01-12 22:45:57 +01:00
Carlos Garnacho
efae64be66
Set vertical/horizontal class on all widgets overriding GtkOrientable::orientation
...
This is so g_object_set() on that property leaves widgets' style in
a meaningful state. Fully fixes bug 639157.
2011-01-12 22:28:43 +01:00
Carlos Garnacho
8ad724ebcc
Deal with the abscence of horizontal/vertical class when rendering an expander
2011-01-12 22:07:34 +01:00
Carlos Garnacho
26db0b7276
Make GtkMenu(Shell) use GtkStyleContext
...
The default CSS has also been modified to theme these sensibly
2011-01-12 20:55:36 +01:00
Carlos Garnacho
4b61182521
Make GtkCheckMenuItem use GtkStyleContext
2011-01-12 20:54:35 +01:00
Carlos Garnacho
b7caeb7adb
Fix rendering glitch in menu radiobuttons
...
The arcs needed a new subpath.
2011-01-12 20:54:35 +01:00
Carlos Garnacho
f4714ccae2
Make GtkTearoffMenuItem use GtkStyleContext
2011-01-12 20:54:35 +01:00
Carlos Garnacho
7f5349b75a
Make GtkImageMenuItem use GtkStyleContext
2011-01-12 20:54:34 +01:00
Carlos Garnacho
c42f20efe3
Make GtkMenuItem use GtkStyleContext
2011-01-12 20:54:34 +01:00
Carlos Garnacho
6ff7a8daf2
Make GtkToolItemGroup use GtkStyleContext
2011-01-12 20:54:34 +01:00
Tristan Van Berkom
3492b1567d
Fixed assertions in gtk_cell_renderer_get_aligned_area().
...
The assertions here were not accounting for the possiblility of
zero width visible renderers that are aligned completely to the
right (i.e. renderers with no content set for a said row).
2011-01-13 01:16:19 +09:00
Guillaume Desmottes
aa1f58b731
_gtk_cell_area_set_cell_data_func_with_proxy: set the proxy when creating a new CellInfo ( #637965 )
2011-01-12 14:33:27 +01:00
Benjamin Otte
2b0b08a861
stylecontext: Protect the cairo contexts with cairo_save/cairo_restore()
...
We don't want theme engines to mess up the context we are currently
drawing with.
2011-01-12 11:40:09 +01:00
Fridrich Štrba
2f3c3ca7d3
Fix windows build from git clean and a minor linking issue
2011-01-11 22:45:40 +01:00
Florian Müllner
5616ad0e19
[build] Add gtktextattributes.h
...
Commit 7fae37ecd5
factored out GtkTextAttributes, but did not add
the new header to the build system.
2011-01-11 18:10:26 +01:00
Fridrich Štrba
a606ea62a1
Fix win32 build
2011-01-11 17:28:37 +01:00
Benjamin Otte
a25813cc24
gtk: Add --c-include to gir build
2011-01-11 16:46:59 +01:00
Benjamin Otte
b30b33998f
gtk: Prefix GtkCellAreaBoxContext symbols with an underscore
...
They are private.
2011-01-11 16:46:59 +01:00
Benjamin Otte
8899ab3f91
gtk: Remove private GtkCellAreaBoxContext symbols from gtk.symbols
2011-01-11 16:46:59 +01:00
Benjamin Otte
04c773c94d
gtk: Rename private header to private name
...
gtk/gtkcellareaboxcontext.h -> gtk/gtkcellareaboxcontextprivate.h
2011-01-11 16:46:59 +01:00
Benjamin Otte
b43bafff52
textview: Move text attributes code into its own .c file
2011-01-11 16:46:59 +01:00
Benjamin Otte
7fae37ecd5
textview: Move GtkTextAttributes to its own header
2011-01-11 16:46:59 +01:00
Milan Bouchet-Valat
44da5a0094
Improve docs about GtkStyleContext padding/border/margin
...
GTK_STYLE_PROPERTY_BORDER_WIDTH is of style GtkBorder, not gint.
Also make it clearer what the definition and ordering of these 3
properties is. Reorder them in the header to be more logical.
2011-01-11 12:28:54 +01:00
Cosimo Cecchi
27ee3fec96
numerableicon: fix a typo in the gtk-doc annotation
2011-01-11 10:55:42 +01:00
Matthias Clasen
6d9191f601
Revert accidental gtk.symbols changes
2011-01-10 22:59:13 -05:00
Sébastien Granjoux
8f6cd8d86d
Fix bgo #638017 Crash in gtk_text_view_set_tabs()
2011-01-10 21:07:32 -05:00
Carlos Garnacho
48a4f88ab1
Mark orientable widgets with the vertical/horizontal css classes
...
This can be used to theme widgets differently depending on the
orientation. Bug 639157, reported by Christian Dywan.
2011-01-10 23:53:29 +01:00
Carlos Garnacho
4c4df23d12
GtkThemingEngine: Fix handles rendering
...
The wrong class was being used, so the theming engine didn't
match it properly.
2011-01-10 23:52:36 +01:00
Carlos Garnacho
d5b0ccacce
GtkStyleContext: Do not cancel possibly unstarted transitions
...
It might happen that this overcautious check is done on an animation
that didn't have time to gather invalidation rectangles.
2011-01-10 23:52:21 +01:00
Carlos Garnacho
733cb5e43d
Cleanup leftover code in gtkplug-x11
...
This code was part of the GdkDeviceManagerCore hack
2011-01-10 23:52:02 +01:00
Carlos Garnacho
42ad651914
Mark gtk_widget_style_attach() as deprecated.
...
This isn't needed anymore.
2011-01-10 23:51:48 +01:00
Carlos Garnacho
e426f76e57
Fix compiler warning.
2011-01-10 23:51:14 +01:00
Carlos Garnacho
fa2bfd93f8
Add gtk_widget_set_device_enabled()
...
This function is a more convenient variant than
gtk_widget_set_device_events(), as it will
1) perform changes down a widget hierarchy, to
all windows.
1) use the same event mask than gdk_window_get_events()
2011-01-10 23:01:02 +01:00
Carlos Garnacho
c94912afd5
GtkTextUtil: Fix typo
...
Use the right "context" object around in GtkStyleContext methods.
2011-01-10 23:01:01 +01:00
Paolo Borelli
a67507a53e
Set the proper css class when getting attributes.
2011-01-10 21:58:29 +01:00
Hans Breuer
0a9abb0222
[portability] Use G_PI rather than M_PI
2011-01-10 21:39:34 +01:00
Hans Breuer
f605d3d698
Bug 639127 - Add missing gdkdisplaymanager-win32.c
2011-01-10 21:39:33 +01:00
Carlos Garnacho
de36dda925
Add gtk_style_context_scroll_animations()
...
This function will be needed in widgets like GtkTreeView,
since gdk_window_scroll() doesn't trigger the usual
mechanisms to update the invalidation area, this function
is needed together with it.
2011-01-10 20:49:41 +01:00
Carlos Garnacho
162380fca5
Make GtkCalendar use GtkStyleContext
2011-01-10 20:49:34 +01:00
Carlos Garnacho
12944d9c23
Do not set any padding for scrolled window children.
2011-01-10 20:49:27 +01:00
Carlos Garnacho
d9dab98ad6
GtkCssProvider: enable parsing negative GtkBorders
...
this can be used as in regular CSS under some situations,
so child items overlap the parent element's border.
2011-01-10 20:49:14 +01:00
Carlos Garnacho
2ec40cac8c
Make GtkTextUtil use GtkStyleContext.
2011-01-10 20:48:59 +01:00
Paolo Borelli
c5a8584c3e
CSS styles for the selection in a TextView.
...
https://bugzilla.gnome.org/show_bug.cgi?id=639106
2011-01-10 18:52:35 +01:00
Paolo Borelli
2290ec6bd8
Port GtkTextDisplay to StyleContext.
...
Use the new StyleContext and StateFlags to draw the text
https://bugzilla.gnome.org/show_bug.cgi?id=639105
2011-01-10 18:52:35 +01:00
Matthias Clasen
efd0e6ec1f
Add a setter for GtkWindow.has_user_ref_count
...
This is needed for some language bindings.
https://bugzilla.gnome.org/show_bug.cgi?id=638880
2011-01-10 11:49:06 -05:00
Matthias Clasen
061d48b68d
More doc build fixes
...
Grr, our mixture of xml and plain text in long descriptions is
a mess.
2011-01-10 10:59:50 -05:00
Matthias Clasen
f758385353
Fix doc syntax
2011-01-10 09:47:09 -05:00
Javier Jardón
63bb0c73bc
build: Use mkdir_p instead mkinstalldirs
...
As we don't use mkinstalldirs, $(mkinstalldirs) is simply an
alias for $(mkdir_p)
2011-01-10 13:55:29 +00:00
Tristan Van Berkom
3f911b2516
Fixed GtkEntry to report the proper default value for "primary/secondary-icon-activatable"
2011-01-10 22:26:46 +09:00