Tristan Van Berkom
4038cd76b3
Removed GtkTreeViewPrivate from gtktreeprivate.h and added a few more accessors.
...
This actually much simplifies interaction with GtkTreeSelection
(at least reduces code size where dealing width the treeview anchor path).
2010-12-05 22:11:37 +09:00
Tristan Van Berkom
4b5c80dc0f
Removed the private sharing of internal treeview macros from gtktreeprivate.h
...
Added them directly to gtktreeview.c.
2010-12-05 22:11:21 +09:00
Tristan Van Berkom
9f4f22faf1
Removed all variables from GtkTreeViewColumn and created GtkTreeViewColumnPrivate
...
Some details:
- button_request was not needed, consult the minimum request of the button
- gtk_tree_view_column_get_button() needed to be public as people can set
tooltips on the button (and libgail accesses the button).
2010-12-05 22:11:08 +09:00
Kristian Rietveld
137f16c4c5
Do not bother starting a draw call if bar_size <= 0
2010-12-05 13:57:04 +01:00
Yaron Shahrabani
86c8ce1cc0
Updated Hebrew translation
2010-12-05 14:14:03 +02:00
Paolo Borelli
e0efd067e4
Avoid memory corruption in the color_properties hashtable.
2010-12-05 12:30:28 +01:00
Tristan Van Berkom
f24c21f1f0
Added proper handling of right to left layouting of cells to GtkCellAreaBox.
2010-12-05 15:24:19 +09:00
Tristan Van Berkom
c6e1463d1e
Added different icon at the end of testtreeedit to see if RTL is actually working.
2010-12-05 15:24:05 +09:00
Tristan Van Berkom
7b61cd8257
Merge branch 'master' into treeview-refactor
2010-12-05 13:14:39 +09:00
Javier Jardón
d351b40a0b
Add internal accessor for GtkEntry->is_cell_renderer
...
This fixes commit fb3429e507
2010-12-04 22:06:02 -05:00
Matthias Clasen
5fdc140dd8
Fix a segfault in gdk_window_beep
...
Not a good idea to cast an instance to a class...
2010-12-04 17:25:40 -05:00
Matthias Clasen
afcd50d607
Try again to fix the gdk symbol list
...
Grr, gdk_window_class_class_get_type should have been
gdk_window_window_class_get_type.
2010-12-04 16:32:02 -05:00
Matthias Clasen
144c3fd478
Fix gdk_rgba_parse call
2010-12-04 16:16:29 -05:00
Carlos Garnacho
37719380ae
Fix call to gtk_widget_override_cursor()
2010-12-04 18:26:34 +01:00
Carlos Garnacho
3d28adf317
Make gtk_widget_override_cursor() take GdkRGBAs
...
Even though the style properties have the GdkColor type, the other
gtk_widget_override_* API takes RGBA colors, so it is consistent
now.
2010-12-04 17:49:28 +01:00
Tristan Van Berkom
0d786985a3
Merge branch 'master' into treeview-refactor
...
Conflicts:
gtk/gtkmarshalers.list
tests/Makefile.am
2010-12-05 00:36:37 +09:00
Paolo Borelli
cd76b057e9
Annotate gdk_window_get_geometry, get_position and get_origin
2010-12-04 15:47:50 +01:00
Carlos Garnacho
1c87180d5d
GtkThemingEngine: Fix parameters for gtk_theming_engine_lookup_color()
2010-12-04 15:39:58 +01:00
Carlos Garnacho
8c02445bc5
testgtk: Fix gdk_rgba_parse() arguments.
2010-12-04 15:39:58 +01:00
Carlos Garnacho
0cba2dc726
GtkCssProvider: Improve error handling and reporting.
...
Nicer error reports are provided, and a GError can be spread from
anywhere in parsing, so over time more precise and meaningful
messages can be produced.
2010-12-04 15:39:57 +01:00
Carlos Garnacho
06d8676354
GtkThemingEngine: Be a bit more robust against missing essential properties.
2010-12-04 15:39:57 +01:00
Carlos Garcia Campos
07eeae1582
GtkWidget: add gtk_widget_render_icon_pixbuf()
...
and deprecate gtk_widget_render_icon()
2010-12-04 15:39:57 +01:00
Carlos Garcia Campos
905ba2f198
GtkIconFactory: add gtk_icon_set_render_icon_pixbuf()
...
and deprecate gtk_icon_set_render_icon().
2010-12-04 15:39:57 +01:00
Carlos Garcia Campos
b75972d0ce
GtkStyle: set style context state before calling gtk_render_icon_pixbuf()
2010-12-04 15:39:56 +01:00
Carlos Garcia Campos
ca59b042df
GtkStyle: make context property readable
2010-12-04 15:39:56 +01:00
Carlos Garcia Campos
15d997d58a
GtkWidget: queue a resize when style context changed
2010-12-04 15:39:56 +01:00
Carlos Garcia Campos
f261d56da3
GtkStyleContext: invalidate icon caches when resetting widgets
2010-12-04 15:39:56 +01:00
Carlos Garcia Campos
3b3307b946
Use gtk_style_context_reset_widgets() instead of gtk_rc_reset_styles()
2010-12-04 15:39:56 +01:00
Carlos Garcia Campos
a8c8c23c77
GtkSettings: add _gtk_settings_get_screen() private method
2010-12-04 15:39:55 +01:00
Carlos Garnacho
47add6c7c3
Block direct #including in style headers
2010-12-04 15:39:55 +01:00
Carlos Garnacho
bacb7906f2
Add helper API for getting colors/borders in GtkStyleContext/GtkThemingEngine
2010-12-04 15:39:55 +01:00
Carlos Garnacho
3e8d138ed6
GtkStyleProperties: Refactor color/gradient resolution
2010-12-04 15:39:55 +01:00
Carlos Garnacho
9aca6c8071
GtkWidget: Add gtk_widget_override_cursor().
...
This function replaces gtk_widget_modify_cursor().
2010-12-04 15:39:54 +01:00
Carlos Garnacho
b0c87faa50
Add GtkModifierStyle as a private object
...
This object backs up gtk_widget_override_* operations. This object
is not meant to be public because any intention to modify widgets'
style in a themeable way should involve using regions/classes, so
they're modifiable through CSS. As such, the API is really
short-scoped.
2010-12-04 15:39:54 +01:00
Carlos Garnacho
0d2d60cf8a
Gtk9Slice: Fix stretch rendering.
...
"Nearest" filter used when scaling the image, so image borders
aren't blurred.
2010-12-04 15:39:54 +01:00
Carlos Garnacho
afeac82fbd
GtkThemingEngine: Add gtk_theming_engine_lookup_color()
...
It could also be handy for theme engines...
2010-12-04 15:39:53 +01:00
Carlos Garnacho
066f35bf28
Parse user CSS from $XDG_CONFIG_HOME/gtk-3.0/gtk.css
2010-12-04 15:39:53 +01:00
Carlos Garnacho
9bdb7e6945
GtkThemingEngine: Remove unused variables
2010-12-04 15:39:53 +01:00
Carlos Garnacho
901af8fec8
Fix compiler warnings.
2010-12-04 15:39:52 +01:00
Carlos Garnacho
cf0bd12e6c
GtkStyleProperties: Turn border-width into a GtkBorder property.
...
All current users of this CSS property have been updated to deal
with a GtkBorder.
Also a 0 border width has been set in the default CSS to ensure
GtkStyleContext and GtkThemingEngine always provide a non-NULL
pointer for this property.
2010-12-04 15:39:52 +01:00
Carlos Garnacho
f7e7201f11
Fix docs typo.
2010-12-04 15:39:51 +01:00
Carlos Garnacho
daab45565a
GtkCssProvider: Fix up state matching when looking up style properties.
2010-12-04 15:39:51 +01:00
Carlos Garnacho
297fa7a3dd
GtkStyleProvider: Add GtkStateFlags parameter to get_style_property().
...
Widget style properties can now have different values depending on the
current state.
2010-12-04 15:39:51 +01:00
Carlos Garnacho
2ca905db5e
GtkStyleContext: Handle directionality when picking next provider.
2010-12-04 15:39:50 +01:00
Carlos Garnacho
46de2130d3
GtkWidget: unset NULL properties when overriding style.
2010-12-04 15:39:50 +01:00
Carlos Garnacho
64b7d9e5c1
GtkThemingEngine: Render gradients in tabs.
...
Background will be actually rotated in tabs, so the "bottom" side coincides
with the junction point, this makes gradients work as expected in rotated tabs.
2010-12-04 15:39:50 +01:00
Carlos Garnacho
32c2b13969
GtkThemingEngine: split background rendering to a private function.
2010-12-04 15:39:50 +01:00
Carlos Garnacho
4c1a2426d4
GtkStyle: Commit a few typos when translating states.
2010-12-04 15:39:49 +01:00
Carlos Garcia Campos
4aaf193602
docs: gtk_style_context_get_screen() always returns a valid screen
2010-12-04 15:39:49 +01:00
Carlos Garcia Campos
7a5a622998
Check screen really changed before notifying it and invalidating the context
2010-12-04 15:39:49 +01:00