commit fae1e7481232741a1957e4d0791d6dd2e5709212 Author: Matthias Clasen Date: Mon Dec 6 19:05:18 2010 -0500 More !srcdir fixes for the stylecontext test gtk/tests/stylecontext.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 26f6b48ccb17910e1593753ea21b221290373a6f Author: Matthias Clasen Date: Mon Dec 6 17:44:12 2010 -0500 Update for the removal of gtk_decorated_window_ apis NEWS | 2 ++ gtk/gtk.symbols | 4 ---- 2 files changed, 2 insertions(+), 4 deletions(-) commit fe008de12c2cd5e30cc41535527d574e368ab32d Author: Matthias Clasen Date: Mon Dec 6 14:35:13 2010 -0500 Fix POTFILES for recent changes po-properties/POTFILES.in | 1 - po/POTFILES.in | 1 - 2 files changed, 0 insertions(+), 2 deletions(-) commit f2ab9e497dc634ec10bfbb0b6d6fcfdfe2f20bc2 Author: Matthias Clasen Date: Mon Dec 6 14:11:46 2010 -0500 Prepare the stylecontext test to run out-of-srcdir This is necessary to make distcheck work. gtk/tests/Makefile.am | 1 + gtk/tests/stylecontext.c | 16 +++++++++------- 2 files changed, 10 insertions(+), 7 deletions(-) commit ad80cb627928f1e3b94dc53f3a9750b3ccd88f36 Author: Matthias Clasen Date: Mon Dec 6 14:10:42 2010 -0500 Allow + in identifiers This is necessary since we treat paths as identifiers in @import rules, and it is common to have a + in there (at least when distchecking gtk+ ...) gtk/gtkcssprovider.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) commit 9b042e39ecd7c386031addbac5475387b06e004e Author: Benjamin Otte Date: Mon Dec 6 18:56:11 2010 +0100 gdk: Add section docs for GdkRGBA gdk/gdkrgba.c | 20 ++++++++++++++++++++ 1 files changed, 20 insertions(+), 0 deletions(-) commit fc711434bc6c436d996e582e4f0b658eb449acb0 Author: Benjamin Otte Date: Mon Dec 6 17:20:13 2010 +0100 gtk: Remove old DirectFB code for drawing window decorations I'm not sure it'd even compile. gtk/Makefile.am | 2 - gtk/gtkwindow-decorate.c | 808 ---------------------------------------------- gtk/gtkwindow-decorate.h | 41 --- gtk/gtkwindow.c | 18 +- 4 files changed, 4 insertions(+), 865 deletions(-) commit 8f8aeb7dfe396723bdeb24b1e2d6905c4af66d96 Author: Benjamin Otte Date: Mon Dec 6 17:19:56 2010 +0100 gdk: Remove GdkWindowObject typedef It's unused by now. gdk/gdkwindow.h | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) commit 48e92c6939e9038deba217a25f56e2a2d9c2d124 Author: Kjartan Maraas Date: Mon Dec 6 18:13:24 2010 +0100 Updated Norwegian bokmål translation po/nb.po | 169 ++++++++++++++++++++++++++++++++++++-------------------------- 1 files changed, 98 insertions(+), 71 deletions(-) commit 65e3c09139a5df904fb024dc6acf0a519d742d75 Author: Colin Walters Date: Mon Dec 6 11:42:47 2010 -0500 introspection: Fix (out) for gdk_screen_get_monitor_geometry Scanner doesn't detect this case correctly because it's a typedef; work around it here by explicitly specifying that it's caller allocates. See bug 636393 for the scanner issue. gdk/x11/gdkscreen-x11.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 66f0f55b628a0c756bb022f3093b576bafbdc2dc Author: Colin Walters Date: Mon Dec 6 11:27:57 2010 -0500 configure: Drop AC_PREREQ back down to 2.62 Commit 39f57407639b85c7e929d349ee95eabc46d083e bumped the autoconf version to 2.64 with no explicit rationale. It looks to me like a copy-and-paste error. Reverting back to 2.62 (the previous version). 2.63 at least (RHEL6) works here. configure.ac | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 96139cbb003058c78dc7a57ae3f6f9c25561d848 Author: Matthias Clasen Date: Mon Dec 6 10:56:03 2010 -0500 Update NEWS for 2.91.6 NEWS | 40 ++++++++++++++++++++++++++++++++++++++++ 1 files changed, 40 insertions(+), 0 deletions(-) commit 48dba326c2794dcb998b77955ec0e00cd1780ca4 Author: Matthias Clasen Date: Mon Dec 6 10:12:22 2010 -0500 Disable theme engines for now They need to be ported to GtkThemingEngine. modules/engines/Makefile.am | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) commit d23fb64d972ee184ab39e9e4ed90230f0faee287 Author: Murray Cumming Date: Mon Dec 6 16:01:55 2010 +0100 Fix a typo to fix the build. gtk/gtkwidgetpath.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 5f75ffc97436b84a99ed450a0e8810f291a9237a Author: Matthias Clasen Date: Mon Dec 6 09:50:01 2010 -0500 Add gtk_widget_path_get_type to the headers Bug 636591 docs/reference/gtk/gtk3-sections.txt | 6 ++++++ gtk/gtkwidgetpath.h | 4 +++- 2 files changed, 9 insertions(+), 1 deletions(-) commit fd6e57687de49ac2c8e51923a3ccc471e5cc97b5 Author: Kristian Rietveld Date: Mon Dec 6 14:13:40 2010 +0100 Port Quartz backend to latest rendering-cleanup changes gdk/quartz/GdkQuartzView.c | 8 +- gdk/quartz/GdkQuartzWindow.c | 40 +-- gdk/quartz/Makefile.am | 2 - gdk/quartz/gdkdevice-core.c | 10 +- gdk/quartz/gdkdrawable-quartz.c | 232 ------------ gdk/quartz/gdkdrawable-quartz.h | 71 ---- gdk/quartz/gdkevents-quartz.c | 58 +--- gdk/quartz/gdkgeometry-quartz.c | 3 +- gdk/quartz/gdkinput.c | 14 +- gdk/quartz/gdkprivate-quartz.h | 6 +- gdk/quartz/gdkwindow-quartz.c | 742 +++++++++++++++++++++------------------ gdk/quartz/gdkwindow-quartz.h | 19 +- 12 files changed, 467 insertions(+), 738 deletions(-) commit 3b753aa05e5f1de7e6a17bef106eba8d23c64b9b Author: Matthias Clasen Date: Mon Dec 6 07:26:00 2010 -0500 Fix Makefile syntax docs/reference/gtk/Makefile.am | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit f1fafca6ca94c864b791399d1989edd41caaa02c Author: Matthias Clasen Date: Mon Dec 6 00:44:58 2010 -0500 Make invalid stylesheets fail to parse again The recent improvements to error reporting caused gtk_css_provider_load... to always return TRUE and leave the error unset. Error messages were instead dumped out with g_message, which is not helpful. This commit changes things back to the way they were before: If a GError is passed in, parsing will fail at the first error, reporting it in the given GError. If no GError is passed in, we keep going and just issue the warning messages. This fixes the parser tests. gtk/gtkcssprovider.c | 110 ++++++++++++++++++++++++++++++++----------------- 1 files changed, 72 insertions(+), 38 deletions(-) commit 94c9eb72ce4be9632f78c587bd19e8af474452f7 Author: Matthias Clasen Date: Mon Dec 6 00:44:01 2010 -0500 Don't use g_warning when loading an engine fails This causes the tests to abort if clearlooks can't be found. gtk/gtkthemingengine.c | 11 ++--------- 1 files changed, 2 insertions(+), 9 deletions(-) commit d378470e8795b16f14639ba52524e62aa05c4fa5 Author: Benjamin Otte Date: Mon Dec 6 01:30:19 2010 +0100 appchooser: Remove bogus function declaration gtk/gtkappchooseronline.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) commit 6d6ee9a26ab515e5a872984dd28c964c7788f2ac Author: Benjamin Otte Date: Sun Dec 5 15:05:00 2010 +0100 style: Remove unused code gtk/gtkstyle.c | 303 -------------------------------------------------------- 1 files changed, 0 insertions(+), 303 deletions(-) commit e4c9d1a3214052edffe9cf5376ecc76e958758f4 Author: Benjamin Otte Date: Sun Dec 5 14:54:43 2010 +0100 gdk: Constify argument to gdk_rgba_copy() gdk/gdkrgba.c | 2 +- gdk/gdkrgba.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit d55073fde64a7d1ed8bb8c484c725e30c2b7e473 Author: Benjamin Otte Date: Sun Dec 5 14:40:35 2010 +0100 gdk: Remove depth argument from GdkWindowImpl->get_geometry() gdk/gdkoffscreenwindow.c | 5 +---- gdk/gdkwindow.c | 3 +-- gdk/gdkwindowimpl.h | 3 +-- gdk/quartz/gdkwindow-quartz.c | 6 +----- gdk/win32/gdkwindow-win32.c | 5 +---- gdk/x11/gdkwindow-x11.c | 5 +---- 6 files changed, 6 insertions(+), 21 deletions(-) commit 645d0ac403f6c707d22307d86cc5732c9c20118a Author: Benjamin Otte Date: Sun Dec 5 14:36:59 2010 +0100 API: gdk: Remove depth argument from gdk_window_get_geometry() We don't want to expose depth anymore. If you need it, query the visual. gdk/gdkscreen.c | 2 +- gdk/gdkwindow.c | 8 ++------ gdk/gdkwindow.h | 3 +-- gdk/x11/gdkdnd-x11.c | 2 +- gdk/x11/gdkwindow-x11.c | 4 ++-- gtk/gtkiconview.c | 2 +- gtk/gtkwindow-decorate.c | 4 ++-- 7 files changed, 10 insertions(+), 15 deletions(-) commit 84fd9b166c6088d0bed62dfe7da3ba21f963a328 Author: Benjamin Otte Date: Sun Dec 5 14:32:59 2010 +0100 gdk: Remove nonexisting function from internal header gdk/gdkinternals.h | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-) commit b36cb87df95f9e89fec35db794b008082303480e Author: Paolo Borelli Date: Sun Dec 5 22:05:29 2010 +0100 Use the new style context API in GtkButton Mostly replaces gtk_widget_style_get with gtk_style_context_get_style gtk/gtkbutton.c | 118 ++++++++++++++++++++++++++++++++----------------------- 1 files changed, 69 insertions(+), 49 deletions(-) commit 4a7e746bbcbdf511ba79dce1b9de100bbce6126c Author: Paolo Borelli Date: Sun Dec 5 21:00:59 2010 +0100 Use the new style context API in GtkLabel. gtk/gtklabel.c | 54 ++++++++++++++++++++++++++++++++---------------------- 1 files changed, 32 insertions(+), 22 deletions(-) commit 561346bd4060a6ce08b10edd683f2e559d9226a5 Author: Paolo Borelli Date: Sun Dec 5 21:11:34 2010 +0100 Remove unused function modify_color_property gtk/gtkwidget.c | 30 ------------------------------ 1 files changed, 0 insertions(+), 30 deletions(-) commit 4cca7554b8f4f4fb352e2a8815052c03d6ea1ab0 Author: Carlos Garnacho Date: Sun Dec 5 20:18:03 2010 +0100 GtkStyleContext: warn on meaningless coords in gtk_render_* calls gtk/gtkstylecontext.c | 32 ++++++++++++++++++++++++++++++++ 1 files changed, 32 insertions(+), 0 deletions(-) commit 5361490db88974b529bf5a1ba79711fcb1c7249b Author: Carlos Garnacho Date: Sun Dec 5 20:00:44 2010 +0100 Bug 636511 - New style override functions do not work on textview Emit ::style-set on overrider style changes, this is necessary in the mean time so widgets not listening yet to ::style-updated get the style changes. gtk/gtkwidget.c | 25 +++++-------------------- 1 files changed, 5 insertions(+), 20 deletions(-) commit 059aa89cbd2e0b998339eca4d3fc4d108355355c Author: Jorge González Date: Sun Dec 5 18:33:31 2010 +0100 Updated Spanish translation po-properties/es.po | 906 +++++++++++++++++++++++++------------------------- 1 files changed, 453 insertions(+), 453 deletions(-) commit d5df33c75f8a5be6ecf194e48d0f2ac174a3afb0 Author: Matthias Clasen Date: Sun Dec 5 12:18:30 2010 -0500 Fix abi check after recent merges gtk/gtk.symbols | 181 +++++++++++++++++++++++++++++++++ gtk/gtk9slice.c | 34 +++--- gtk/gtk9slice.h | 40 ++++---- gtk/gtkanimationdescription.c | 26 +++--- gtk/gtkanimationdescription.h | 22 ++-- gtk/gtkappchooserdialog.c | 16 ++-- gtk/gtkappchooseronline.c | 31 +++--- gtk/gtkappchooseronline.h | 24 ++-- gtk/gtkappchooseronlinepk.c | 4 +- gtk/gtkassistant.c | 10 +- gtk/gtkcssprovider.c | 10 +- gtk/gtkspinner.c | 8 +- gtk/gtkstylecontext.c | 42 ++++---- gtk/gtkthemingengine.c | 4 +- gtk/gtktimeline.c | 222 ++++++++++++++++++++-------------------- gtk/gtktimeline.h | 56 +++++----- gtk/gtkwidget.c | 4 +- 17 files changed, 457 insertions(+), 277 deletions(-) commit 4701aeb3bc81771654f6c6e6f5ecb994125f072f Author: Fran Diéguez Date: Sun Dec 5 14:57:08 2010 +0100 Updated Galician translations po-properties/gl.po | 2350 ++++++++++++++++++++++++++------------------------- po/gl.po | 398 +++++---- 2 files changed, 1401 insertions(+), 1347 deletions(-) commit 137f16c4c50f9b7f132d74ffa95e562c29a50651 Author: Kristian Rietveld Date: Sun Dec 5 13:56:24 2010 +0100 Do not bother starting a draw call if bar_size <= 0 gtk/gtkcellrendererprogress.c | 13 +++++++------ 1 files changed, 7 insertions(+), 6 deletions(-) commit 86c8ce1cc0de6b9529462ab1f1840c3439677957 Author: Yaron Shahrabani Date: Sun Dec 5 14:14:03 2010 +0200 Updated Hebrew translation po-properties/he.po | 870 ++++++++++++++++++++++++++------------------------- 1 files changed, 439 insertions(+), 431 deletions(-) commit e0efd067e47e964bd60ad34ab331497867b49fd4 Author: Paolo Borelli Date: Sun Dec 5 12:30:28 2010 +0100 Avoid memory corruption in the color_properties hashtable. gtk/gtkmodifierstyle.c | 12 ++++++++---- 1 files changed, 8 insertions(+), 4 deletions(-) commit d351b40a0bd9ee247c5f64858c377378a1eccdbe Author: Javier Jardón Date: Sat Nov 27 04:38:17 2010 +0100 Add internal accessor for GtkEntry->is_cell_renderer This fixes commit fb3429e5072508570d78dcc7cccb6ef425586bb2 gtk/gtkcombobox.c | 6 ++++++ gtk/gtkentry.c | 18 ++++++++++++++++++ gtk/gtkentryprivate.h | 4 ++++ 3 files changed, 28 insertions(+), 0 deletions(-) commit 5fdc140dd8f86bdcd25ec6b596b6c92ddfe661ed Author: Matthias Clasen Date: Sat Dec 4 17:25:40 2010 -0500 Fix a segfault in gdk_window_beep Not a good idea to cast an instance to a class... gdk/gdkwindow.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit afcd50d6079f6574f14a1fa0b863ce4b2a1d4fb1 Author: Matthias Clasen Date: Sat Dec 4 16:32:02 2010 -0500 Try again to fix the gdk symbol list Grr, gdk_window_class_class_get_type should have been gdk_window_window_class_get_type. gdk/gdk.symbols | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 144c3fd4782a1f25fe207329e060661cb31d2c37 Author: Matthias Clasen Date: Sat Dec 4 16:16:29 2010 -0500 Fix gdk_rgba_parse call tests/testgrid.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 37719380aed87da3c347d1ab1f5ee74478fa452a Author: Carlos Garnacho Date: Sat Dec 4 18:26:02 2010 +0100 Fix call to gtk_widget_override_cursor() gtk/gtkwidget.c | 14 +++++++++++++- 1 files changed, 13 insertions(+), 1 deletions(-) commit 3d28adf31779632d980097b92c472904b258a520 Author: Carlos Garnacho Date: Sat Dec 4 17:44:53 2010 +0100 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. docs/reference/gtk/tmpl/gtkenums.sgml | 48 +++++++++++++++++++++++++++ docs/reference/gtk/tmpl/gtkiconfactory.sgml | 11 ++++++ docs/reference/gtk/tmpl/gtkicontheme.sgml | 12 +++++++ gtk/gtkmodifierstyle.c | 21 +++++++---- gtk/gtkmodifierstyle.h | 2 +- gtk/gtkwidget.c | 9 +++-- gtk/gtkwidget.h | 4 +- 7 files changed, 93 insertions(+), 14 deletions(-) commit cd76b057e9693b6919f4ccbe40ce205efc8d3caf Author: Paolo Borelli Date: Sat Dec 4 14:55:11 2010 +0100 Annotate gdk_window_get_geometry, get_position and get_origin gdk/gdkwindow.c | 18 +++++++++--------- 1 files changed, 9 insertions(+), 9 deletions(-) commit 1c87180d5d22fd52a870d8dcf51cddc146eda2e0 Author: Carlos Garnacho Date: Sat Dec 4 15:08:35 2010 +0100 GtkThemingEngine: Fix parameters for gtk_theming_engine_lookup_color() gtk/gtkthemingengine.c | 9 ++++----- gtk/gtkthemingengine.h | 6 +++--- 2 files changed, 7 insertions(+), 8 deletions(-) commit 8c02445bc5192d0cd47e21466e514611fd56e0f7 Author: Carlos Garnacho Date: Sat Dec 4 14:29:16 2010 +0100 testgtk: Fix gdk_rgba_parse() arguments. tests/testgtk.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 0cba2dc726ae91ecf73459ca6d0e40a78707d31d Author: Carlos Garnacho Date: Fri Dec 3 21:56:39 2010 +0100 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. gtk/gtkcssprovider.c | 376 ++++++++++++++++++++++++++++---------------------- 1 files changed, 212 insertions(+), 164 deletions(-) commit 06d8676354f7752ce68fe55b2d5b0b14eea0cfe9 Author: Carlos Garnacho Date: Fri Dec 3 12:25:12 2010 +0100 GtkThemingEngine: Be a bit more robust against missing essential properties. gtk/gtkthemingengine.c | 14 +++++++++----- 1 files changed, 9 insertions(+), 5 deletions(-) commit 07eeae15825403037b7df139acf9bfa104d5559d Author: Carlos Garcia Campos Date: Fri Dec 3 21:14:48 2010 +0100 GtkWidget: add gtk_widget_render_icon_pixbuf() and deprecate gtk_widget_render_icon() docs/reference/gtk/gtk3-sections.txt | 1 + gtk/gtk.symbols | 1 + gtk/gtkwidget.c | 64 +++++++++++++++++++++++---------- 3 files changed, 46 insertions(+), 20 deletions(-) commit 905ba2f1983877bf45bc541cf3aa9a7c5cb0936d Author: Carlos Garcia Campos Date: Fri Dec 3 20:39:58 2010 +0100 GtkIconFactory: add gtk_icon_set_render_icon_pixbuf() and deprecate gtk_icon_set_render_icon(). docs/reference/gtk/gtk3-sections.txt | 1 + gtk/gtk.symbols | 1 + gtk/gtkiconfactory.c | 222 +++++++++++++++++++--------------- gtk/gtkiconfactory.h | 1 - gtk/gtkstylecontext.h | 3 + 5 files changed, 132 insertions(+), 96 deletions(-) commit b75972d0cea9243f14ed15c98a2e89552cbe560a Author: Carlos Garcia Campos Date: Fri Dec 3 20:31:13 2010 +0100 GtkStyle: set style context state before calling gtk_render_icon_pixbuf() gtk/gtkstyle.c | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-) commit ca59b042df53ba792cb33b430c317b68464fa592 Author: Carlos Garcia Campos Date: Fri Dec 3 20:30:13 2010 +0100 GtkStyle: make context property readable gtk/gtkstyle.c | 28 +++++++++++++++++++++++++++- 1 files changed, 27 insertions(+), 1 deletions(-) commit 15d997d58a306638df0b81a17d60965623fdb774 Author: Carlos Garcia Campos Date: Fri Dec 3 14:10:32 2010 +0100 GtkWidget: queue a resize when style context changed gtk/gtkwidget.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit f261d56da32418ee6aa534a3fc08c76bb5a67f11 Author: Carlos Garcia Campos Date: Fri Dec 3 14:09:35 2010 +0100 GtkStyleContext: invalidate icon caches when resetting widgets gtk/gtkstylecontext.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) commit 3b3307b946ed3fb7e3669ed98ec154d4b161bb1d Author: Carlos Garcia Campos Date: Fri Dec 3 14:08:33 2010 +0100 Use gtk_style_context_reset_widgets() instead of gtk_rc_reset_styles() gtk/gtkiconfactory.c | 2 +- gtk/gtkicontheme.c | 5 +---- gtk/gtksettings.c | 6 +++--- 3 files changed, 5 insertions(+), 8 deletions(-) commit a8c8c23c779106a0c45d55d2efbbba516de101b3 Author: Carlos Garcia Campos Date: Fri Dec 3 14:00:16 2010 +0100 GtkSettings: add _gtk_settings_get_screen() private method gtk/gtksettings.c | 6 ++++++ gtk/gtksettings.h | 2 ++ 2 files changed, 8 insertions(+), 0 deletions(-) commit 47add6c7c3b7055632359f17f1fc7f3fe10f4e3b Author: Carlos Garnacho Date: Thu Dec 2 23:45:14 2010 +0100 Block direct #including in style headers gtk/gtkgradient.h | 4 ++++ gtk/gtkstylecontext.h | 4 ++++ gtk/gtkstyleproperties.h | 4 ++++ gtk/gtkstyleprovider.h | 6 +++++- gtk/gtksymboliccolor.h | 4 ++++ gtk/gtkthemingengine.h | 4 ++++ gtk/gtkwidgetpath.h | 4 ++++ 7 files changed, 29 insertions(+), 1 deletions(-) commit bacb7906f238c716dac395b923e41897428a263a Author: Carlos Garnacho Date: Thu Dec 2 23:41:24 2010 +0100 Add helper API for getting colors/borders in GtkStyleContext/GtkThemingEngine docs/reference/gtk/gtk3-sections.txt | 12 ++ gtk/gtkstylecontext.c | 192 ++++++++++++++++++++++++++++++++++ gtk/gtkstylecontext.h | 21 ++++ gtk/gtkstyleproperties.c | 37 +++++++ gtk/gtkstyleproperties.h | 5 + gtk/gtkthemingengine.c | 139 ++++++++++++++++++++++++ gtk/gtkthemingengine.h | 22 ++++ 7 files changed, 428 insertions(+), 0 deletions(-) commit 3e8d138ed6310e795c4a9c34cd7e82c232b797ec Author: Carlos Garnacho Date: Thu Dec 2 23:37:15 2010 +0100 GtkStyleProperties: Refactor color/gradient resolution gtk/gtkstyleproperties.c | 92 +++++++++++++++++++-------------------------- 1 files changed, 39 insertions(+), 53 deletions(-) commit 9aca6c8071e5d00d4d43d2528e79d4eabcab2b9c Author: Carlos Garnacho Date: Thu Dec 2 22:03:57 2010 +0100 GtkWidget: Add gtk_widget_override_cursor(). This function replaces gtk_widget_modify_cursor(). docs/reference/gtk/gtk3-sections.txt | 1 + gtk/gtkwidget.c | 50 +++++++++++++++++++++++++++++----- gtk/gtkwidget.h | 4 +++ 3 files changed, 48 insertions(+), 7 deletions(-) commit b0c87faa50f792b4297dd92c29686eca7f26346f Author: Carlos Garnacho Date: Thu Dec 2 20:28:09 2010 +0100 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. gtk/Makefile.am | 2 + gtk/gtkmodifierstyle.c | 287 ++++++++++++++++++++++++++++++++++++++++++++++++ gtk/gtkmodifierstyle.h | 74 ++++++++++++ gtk/gtkwidget.c | 131 ++++++++-------------- 4 files changed, 412 insertions(+), 82 deletions(-) commit 0d2d60cf8a93b0599220fb44355d2965c3698852 Author: Carlos Garnacho Date: Wed Dec 1 20:25:52 2010 +0100 Gtk9Slice: Fix stretch rendering. "Nearest" filter used when scaling the image, so image borders aren't blurred. gtk/gtk9slice.c | 29 +++++++++++++++-------------- 1 files changed, 15 insertions(+), 14 deletions(-) commit afeac82fbdcd169ed06990b3959ca8508551f121 Author: Carlos Garnacho Date: Wed Dec 1 19:19:26 2010 +0100 GtkThemingEngine: Add gtk_theming_engine_lookup_color() It could also be handy for theme engines... docs/reference/gtk/gtk3-sections.txt | 1 + gtk/gtkthemingengine.c | 25 +++++++++++++++++++++++++ gtk/gtkthemingengine.h | 3 +++ 3 files changed, 29 insertions(+), 0 deletions(-) commit 066f35bf2883edcb394f55bbb24fd2a326b99ddc Author: Carlos Garnacho Date: Wed Dec 1 02:55:31 2010 +0100 Parse user CSS from $XDG_CONFIG_HOME/gtk-3.0/gtk.css gtk/gtkcssprovider.c | 2 +- gtk/gtksettings.c | 17 +++++++++-------- gtk/gtkstylecontext.c | 3 ++- gtk/gtkstyleprovider.h | 2 +- 4 files changed, 13 insertions(+), 11 deletions(-) commit 9bdb7e6945a8850f4796c0d59aa1f89e1bde929a Author: Carlos Garnacho Date: Wed Dec 1 01:26:03 2010 +0100 GtkThemingEngine: Remove unused variables gtk/gtkthemingengine.c | 15 +++------------ 1 files changed, 3 insertions(+), 12 deletions(-) commit 901af8fec86a3d41406f23c51190b6f157a28786 Author: Carlos Garnacho Date: Wed Dec 1 01:19:24 2010 +0100 Fix compiler warnings. gtk/gtkcssprovider.c | 4 ++-- gtk/gtkicontheme.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) commit cf0bd12e6caf5cac37d7a25430d638d30fad7f39 Author: Carlos Garnacho Date: Wed Dec 1 00:55:14 2010 +0100 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. gtk/gtkbutton.c | 45 +++++++------ gtk/gtkcombobox.c | 171 ++++++++++++++++++++++------------------------ gtk/gtkcssprovider.c | 3 +- gtk/gtkmenu.c | 130 ++++++++++++++++++++--------------- gtk/gtkmenubar.c | 19 +++-- gtk/gtkstyleproperties.c | 8 +- gtk/gtkthemingengine.c | 51 ++++++++++---- 7 files changed, 237 insertions(+), 190 deletions(-) commit f7e7201f11a4a378eee491bde6ff26bbad558a8b Author: Carlos Garnacho Date: Tue Nov 30 04:00:26 2010 +0100 Fix docs typo. gtk/gtkstyleprovider.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit daab45565a50b4b07fb5bbdd7a87f3db48ddfe9a Author: Carlos Garnacho Date: Tue Nov 30 03:59:39 2010 +0100 GtkCssProvider: Fix up state matching when looking up style properties. gtk/gtkcssprovider.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) commit 297fa7a3dd6f114cecc1c2f1306312599f392e23 Author: Carlos Garnacho Date: Tue Nov 30 02:14:00 2010 +0100 GtkStyleProvider: Add GtkStateFlags parameter to get_style_property(). Widget style properties can now have different values depending on the current state. gtk/gtkcssprovider.c | 5 ++++- gtk/gtkstylecontext.c | 34 +++++++++++++++++++++++----------- gtk/gtkstylecontext.h | 1 + gtk/gtkstyleprovider.c | 4 +++- gtk/gtkstyleprovider.h | 2 ++ gtk/gtkwidget.c | 9 +++++++-- 6 files changed, 40 insertions(+), 15 deletions(-) commit 2ca905db5ebeeb275e72629b535b8153f0ae9b01 Author: Carlos Garnacho Date: Tue Nov 30 02:13:10 2010 +0100 GtkStyleContext: Handle directionality when picking next provider. gtk/gtkstylecontext.c | 15 ++++++++------- 1 files changed, 8 insertions(+), 7 deletions(-) commit 46de2130d3bb6ad5dd0ffcefb9662b65d9db2690 Author: Carlos Garnacho Date: Mon Nov 29 11:27:43 2010 +0100 GtkWidget: unset NULL properties when overriding style. gtk/gtkwidget.c | 29 ++++++++++++++++++++--------- 1 files changed, 20 insertions(+), 9 deletions(-) commit 64b7d9e5c1f40b8f5bcf416bae8eadfad51e65af Author: Carlos Garnacho Date: Mon Nov 29 11:25:09 2010 +0100 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. gtk/gtkthemingengine.c | 33 +++++++++++++++++++++++---------- 1 files changed, 23 insertions(+), 10 deletions(-) commit 32c2b139695f0c62d35e95f85cae323252b30e52 Author: Carlos Garnacho Date: Mon Nov 29 11:24:04 2010 +0100 GtkThemingEngine: split background rendering to a private function. gtk/gtkthemingengine.c | 84 ++++++++++++++++++++++++++++++----------------- 1 files changed, 53 insertions(+), 31 deletions(-) commit 4c1a2426d4f09f28421a595e6e89f77576efbf92 Author: Carlos Garnacho Date: Fri Nov 26 01:27:19 2010 +0100 GtkStyle: Commit a few typos when translating states. gtk/gtkstyle.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) commit 4aaf193602b95f56fff4844ab72d133e6064070d Author: Carlos Garcia Campos Date: Fri Nov 26 09:07:41 2010 +0100 docs: gtk_style_context_get_screen() always returns a valid screen gtk/gtkstylecontext.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 7a5a622998a32ef4e420cddfa5369bd630dc8b30 Author: Carlos Garcia Campos Date: Fri Nov 26 09:01:17 2010 +0100 Check screen really changed before notifying it and invalidating the context gtk/gtkstylecontext.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) commit 7abf76fbc1da5fb3284c800c9837b7637aadd91f Author: Carlos Garcia Campos Date: Fri Nov 26 08:59:10 2010 +0100 Initialize screen of GtkStyleContext to default screen gtk/gtkstylecontext.c | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) commit 587c08a15105220a1bcf0cebf2d341c0a8fca071 Author: Matthias Clasen Date: Fri Nov 26 02:35:38 2010 -0500 Add explanation to failing test gtk/tests/stylecontext.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) commit 12d6b5889d99c9099a179ca5369c2a0e1641585a Author: Matthias Clasen Date: Fri Nov 26 02:29:56 2010 -0500 Add a testcase a problem with style property handling gtk/tests/stylecontext.c | 52 +++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 51 insertions(+), 1 deletions(-) commit f86e8f7512ac1acffca86863ff473601eb5c5734 Author: Matthias Clasen Date: Fri Nov 26 00:43:16 2010 -0500 Allow images for background-image In addition to -gtk-gradient(...), allow url(path), and create a pattern from the image. Still to do: allow stretch/repeat options. gtk/gtkcssprovider.c | 50 +++++++++++++++++++++++++++++++++++++++++++++++--- 1 files changed, 47 insertions(+), 3 deletions(-) commit ca143b13034faafd2cfc11712b09ebb12bf6467c Author: Matthias Clasen Date: Thu Nov 25 23:49:07 2010 -0500 Add list of classes and regions to the docs gtk/gtkcssprovider.c | 4 +- gtk/gtkstylecontext.c | 208 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 211 insertions(+), 1 deletions(-) commit 897c370f5fd7e8869981c8ddfc08c23156fe0540 Author: Matthias Clasen Date: Thu Nov 25 23:46:15 2010 -0500 Avoid compiler warnings gtk/gtkcssprovider.c | 25 ++++++++++++++----------- 1 files changed, 14 insertions(+), 11 deletions(-) commit 5adfe6029de005e538b296c2e6bb0370b87106bd Author: Matthias Clasen Date: Thu Nov 25 21:47:46 2010 -0500 Don't add class "scrollbar" for every trough Turns out "trough" as a detail string is used in a variety of widgets, not all of which are scrollbars. gtk/gtkscrollbar.c | 4 ++++ gtk/gtkstyle.c | 5 +---- 2 files changed, 5 insertions(+), 4 deletions(-) commit 2578f4f4c389845aab951fcbf9a1716a89403f06 Author: Matthias Clasen Date: Thu Nov 25 20:48:52 2010 -0500 Trivial doc fixes docs/reference/gtk/gtk3-sections.txt | 13 ++++++++++++- gtk/gtkwidget.h | 12 ++++++------ gtk/gtkwidgetpath.c | 2 +- 3 files changed, 19 insertions(+), 8 deletions(-) commit e598f17871086a233e9bfabae98c56908201e3e3 Author: Matthias Clasen Date: Thu Nov 25 20:39:53 2010 -0500 Some header cleanups Move GtkGradient to their own files, also move GtkBorder out of gtkstyle.h, so that header can be all deprecated. docs/reference/gtk/gtk-docs.sgml | 16 +- docs/reference/gtk/gtk3-sections.txt | 87 ++++++----- gtk/Makefile.am | 58 ++++---- gtk/gtk.h | 2 + gtk/gtkborder.c | 76 +++++++++ gtk/gtkborder.h | 68 ++++++++ gtk/gtkcssprovider.c | 6 +- gtk/gtkgradient.c | 282 ++++++++++++++++++++++++++++++++++ gtk/gtkgradient.h | 57 +++++++ gtk/gtksettings.c | 1 + gtk/gtkstyle.c | 50 +------ gtk/gtkstyle.h | 26 --- gtk/gtkstylecontext.c | 4 +- gtk/gtkstylecontext.h | 14 -- gtk/gtkstyleproperties.c | 6 +- gtk/gtkstyleproperties.h | 13 +- gtk/gtksymboliccolor.c | 262 +++----------------------------- gtk/gtksymboliccolor.h | 51 ++---- gtk/gtkwidget.c | 1 + gtk/gtkwidget.h | 1 + 20 files changed, 629 insertions(+), 452 deletions(-) commit 1915a19503a888e264d1c18ee2e0b10bbaac011a Author: Matthias Clasen Date: Thu Nov 25 14:38:02 2010 -0500 Add deprecation notes docs/reference/gtk/tmpl/gtkrc.sgml | 4 ++++ gtk/gtkstyle.c | 2 ++ 2 files changed, 6 insertions(+), 0 deletions(-) commit f8a874abb1d1d8925b0f841e95bbef6cdcb21ac4 Author: Matthias Clasen Date: Thu Nov 25 14:26:39 2010 -0500 Initial attempt at deprecating GtkStyle api This will probably need some finetuning. gtk/gtkrc.c | 49 ++++++++++++++++++++++---- gtk/gtkrc.h | 4 ++ gtk/gtkstyle.c | 103 ++++++++++++++++++++++++++++++++++++++++++------------ gtk/gtkstyle.h | 15 +++++--- gtk/gtkthemes.h | 4 ++ gtk/gtkwidget.c | 64 ++++++++++++++++++++++++++------- gtk/gtkwidget.h | 52 ++++++++++++++-------------- 7 files changed, 214 insertions(+), 77 deletions(-) commit e374f7e4b544a963dfd3ee795870517ad3e45412 Author: Matthias Clasen Date: Thu Nov 25 12:50:17 2010 -0500 Forgotten files tests/gtkoffscreenbox.c | 31 ++++++++++++++----------------- tests/testadjustsize.c | 14 +++++++------- 2 files changed, 21 insertions(+), 24 deletions(-) commit 757837b611e4dfb746892ef102ec63062fffcb21 Author: Matthias Clasen Date: Thu Nov 25 12:49:16 2010 -0500 Make tests compile without using GtkStyle api tests/testcalendar.c | 27 +++++------ tests/testcombochange.c | 27 ++++++---- tests/testexpand.c | 20 ++++---- tests/testframe.c | 84 +++++++++++++++++++++++++-------- tests/testgrid.c | 6 +- tests/testgtk.c | 119 +++++++++++++++++++++++++++++++---------------- tests/testtooltips.c | 4 +- tests/testwindows.c | 5 +- 8 files changed, 189 insertions(+), 103 deletions(-) commit 9b1118a35db12cafa0f9587f8748eac232a624e0 Author: Matthias Clasen Date: Wed Nov 24 22:40:19 2010 -0500 Port gtk3-demo to GtkStyleContext demos/gtk-demo/colorsel.c | 65 ++++++++++++++++++----------------- demos/gtk-demo/combobox.c | 6 ++-- demos/gtk-demo/main.c | 2 +- demos/gtk-demo/offscreen_window.c | 25 +++++++------- demos/gtk-demo/offscreen_window2.c | 19 +++++----- demos/gtk-demo/rotated_text.c | 50 ++++++++++++++-------------- demos/gtk-demo/textview.c | 6 ++-- 7 files changed, 86 insertions(+), 87 deletions(-) commit bbca96044e931638acc75b954b30482cc2571703 Author: Matthias Clasen Date: Wed Nov 24 21:28:42 2010 -0500 Fix memory handling when dealing with colors gtk/gtkicontheme.c | 27 +++++++++++---------------- 1 files changed, 11 insertions(+), 16 deletions(-) commit ab0a8fc17f91a18ecca64c50f41bed7e1a8ce4fb Author: Matthias Clasen Date: Wed Nov 24 21:09:23 2010 -0500 Improve the migration guide Add some hints about dealing with colors. docs/reference/gtk/migrating-GtkStyleContext.xml | 32 ++++++++++++++++++++++ 1 files changed, 32 insertions(+), 0 deletions(-) commit 53c2114356ed4e008519866946d5171d13dc0ff7 Author: Matthias Clasen Date: Wed Nov 24 19:57:10 2010 -0500 Deprecate gtk_icon_info_load_symbolic_for_style We might end removing it altogether since it is a bit silly to have Since: 3.0 Deprecated: 3.0 gtk/gtkicontheme.c | 4 +++- gtk/gtkicontheme.h | 2 ++ gtk/gtkimage.c | 24 ++++++++++++------------ 3 files changed, 17 insertions(+), 13 deletions(-) commit e9ef162d4cd5d79629659237af27c1507d4e7173 Author: Carlos Garnacho Date: Wed Nov 24 23:25:14 2010 +0100 GtkSpinner: Use style context for rendering. Animation is now handled by the theming layer, a looping animation has been defined in the default CSS to handle active spinners. gtk/gtkcssprovider.c | 4 + gtk/gtkspinner.c | 157 +++++++------------------------------------------- 2 files changed, 26 insertions(+), 135 deletions(-) commit 3d956b10ee15264f93758422755378e758f7e74b Author: Carlos Garnacho Date: Wed Nov 24 23:21:28 2010 +0100 GtkStyleContext: handle prelight transitions gtk/gtkthemingengine.c | 30 +++++++++++++++++++++++++++++- 1 files changed, 29 insertions(+), 1 deletions(-) commit c90bee16baf0b34b6aa30cba50a143d049dca836 Author: Carlos Garnacho Date: Wed Nov 24 23:21:03 2010 +0100 GtkThemingEngine: Handle prelight transitions in render_layout() gtk/gtkthemingengine.c | 29 +++++++++++++++++++++++++++++ 1 files changed, 29 insertions(+), 0 deletions(-) commit e696c24f08fc6d681197467398b65b430b5c767a Author: Carlos Garnacho Date: Wed Nov 24 23:20:15 2010 +0100 GtkThemingEngine: Also render topright and bottomleft corners if junction sides say so gtk/gtkthemingengine.c | 27 ++++++++++++++++----------- 1 files changed, 16 insertions(+), 11 deletions(-) commit 11004ef61dcda838c1d695abc72f34db85469b4b Author: Carlos Garnacho Date: Wed Nov 24 23:17:46 2010 +0100 Initialize all looping, active state transitions on map() This allows widgets to gtk_widget_set_state_flags() before mapping and have animations started anyway when this happens. gtk/gtkwidget.c | 110 ++++++++++++++++++++++++++++++++++++++++-------------- 1 files changed, 81 insertions(+), 29 deletions(-) commit 4027dceaa91339eba835864c863ce0e506be4069 Author: Carlos Garnacho Date: Wed Nov 24 23:00:47 2010 +0100 Add #define for the "spinner" style class gtk/gtkstylecontext.h | 7 +++++++ gtk/gtkthemingengine.c | 2 +- 2 files changed, 8 insertions(+), 1 deletions(-) commit 62e9188ff3bb6bd662a14658728da8c98d45e330 Author: Carlos Garnacho Date: Wed Nov 24 22:57:18 2010 +0100 GtkStyleContext: store layout extents for animation purposes. gtk/gtkstylecontext.c | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) commit 818aca5aee3ec99b2b702de66851b04837ad8087 Author: Carlos Garnacho Date: Wed Nov 24 22:56:53 2010 +0100 GtkStyleContext: Only allow looping transitions for states being turned on. gtk/gtkstylecontext.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) commit ad6da0cdb8701dc950c3066c4349b9edb399d2ba Author: Carlos Garnacho Date: Wed Nov 24 22:53:36 2010 +0100 GtkStyleContext: Stop animations if the window is gone. gtk/gtkstylecontext.c | 71 ++++++++++++++++++++++++++++++++++-------------- 1 files changed, 50 insertions(+), 21 deletions(-) commit cc18d659864903a7042bcb8e28308267f3dd4b44 Author: Carlos Garnacho Date: Wed Nov 24 16:23:37 2010 +0100 GtkThemingEngine: render square corner if the gap is too close on render_frame_gap() gtk/gtkthemingengine.c | 37 +++++++++++++++++++++++++++++++------ 1 files changed, 31 insertions(+), 6 deletions(-) commit f0eed4a5b14e7d55331cd58d14f857e789a401ed Author: Matthias Clasen Date: Wed Nov 24 15:37:36 2010 -0500 Use gtk_icon_info_load_symbolic_for_context gtk_icon_info_load_symbolic_for_style is going to be deprecated. gtk/gtkcellrendererpixbuf.c | 26 +++++++++++++------------- 1 files changed, 13 insertions(+), 13 deletions(-) commit f90881271f3af15c0e768b2b1b36c62f3344f4eb Author: Matthias Clasen Date: Wed Nov 24 14:40:31 2010 -0500 Add a GtkStyleContext-variant of symbolic icon loading gtk/gtkicontheme.c | 92 ++++++++++++++++++++++++++++++++++++++++++++++++++++ gtk/gtkicontheme.h | 5 +++ 2 files changed, 97 insertions(+), 0 deletions(-) commit 091c88299630fd8a00c6c63dbd34c2052c6adda3 Author: Matthias Clasen Date: Wed Nov 24 01:01:31 2010 -0500 Some tweaks for the GtkStyleContext migration guide docs/reference/gtk/migrating-GtkStyleContext.xml | 815 ++++++++++++---------- 1 files changed, 436 insertions(+), 379 deletions(-) commit 0f98b1509075b56d9742a3df4c32f8c453342da0 Author: Matthias Clasen Date: Tue Nov 23 23:16:22 2010 -0500 Add illustration to gtk_render_handle docs docs/reference/gtk/Makefile.am | 1 + docs/reference/gtk/images/handles.png | Bin 0 -> 660 bytes gtk/gtkstylecontext.c | 5 +++++ tests/styleexamples.c | 27 +++++++++++++++++++++++++++ 4 files changed, 33 insertions(+), 0 deletions(-) commit 3ddee2561b031272f58100025d90e64c7c4483da Author: Matthias Clasen Date: Tue Nov 23 23:02:30 2010 -0500 Small doc addition gtk/gtkstylecontext.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) commit d1f1af202b0d3389e049ff33cee2f8887f2ec585 Author: Matthias Clasen Date: Tue Nov 23 22:55:52 2010 -0500 Add a frame-gap illustration docs/reference/gtk/Makefile.am | 1 + docs/reference/gtk/images/frame-gap.png | Bin 0 -> 322 bytes gtk/gtkstylecontext.c | 13 ++++++++--- tests/styleexamples.c | 34 +++++++++++++++++++++++++++++++ 4 files changed, 44 insertions(+), 4 deletions(-) commit 1391a61bc56e802d2ce2f2b302ddc316e762edbb Author: Matthias Clasen Date: Tue Nov 23 22:51:40 2010 -0500 Improve frame-gap drawing Instead of overdrawing the gap with bg-color, clip it away. gtk/gtkthemingengine.c | 59 +++++++++++++++++++---------------------------- 1 files changed, 24 insertions(+), 35 deletions(-) commit 54eadfcefd7f4efe436e8c1b9e82fe0609087525 Author: Matthias Clasen Date: Tue Nov 23 20:50:45 2010 -0500 Fix another parameter mismatch gtk/gtkthemingengine.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit 4e3dabf5823ad3ff08d9a59cd7457557f463c7c4 Author: Matthias Clasen Date: Tue Nov 23 20:49:18 2010 -0500 Fix up symbol list for docs docs/reference/gtk/gtk3-sections.txt | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) commit b51c0f826a37cd673ef341668e72ae41b88793dc Author: Matthias Clasen Date: Tue Nov 23 20:46:20 2010 -0500 fix parameter name mismatch gtk/gtkstyleproperties.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 8abe9f300c4926b30614caa53e544da5fff8c6c2 Author: Matthias Clasen Date: Tue Nov 23 18:01:21 2010 -0500 Forgotten file docs/reference/gtk/Makefile.am | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) commit 9c0ef02ea56acce7232c91994ea4bce1d288893f Author: Carlos Garnacho Date: Wed Nov 24 03:04:20 2010 +0100 GtkButton: Remove unneeded gtk_style_context_notify_state_change() calls There is now code to handle this for one-item widgets (such as GtkButton) in gtk_widget_set_state_flags() gtk/gtkbutton.c | 36 ------------------------------------ 1 files changed, 0 insertions(+), 36 deletions(-) commit 2f0b5d8a9dd7db30a5ac7a40e4f3587854971782 Author: Carlos Garnacho Date: Wed Nov 24 03:02:49 2010 +0100 GtkCheckButton: Look active when the pointer button is pressed and hovering gtk/gtkcheckbutton.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit 037c982824a9e1353fd903ffe2bba0c97f23042e Author: Carlos Garnacho Date: Wed Nov 24 03:02:01 2010 +0100 GtkStyleContext: Handle empty areas when coalescing invalidation regions. gtk/gtkstylecontext.c | 19 +++++++++++++------ 1 files changed, 13 insertions(+), 6 deletions(-) commit 2fb9687f554681141fcb0314e1c6a1800b5f01f3 Author: Carlos Garnacho Date: Wed Nov 24 02:10:28 2010 +0100 GtkToggleButton: Make it able to be prelight and active at the same time. gtk/gtktogglebutton.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit 1d5a6b687edde9e23d3ef5a8599f6d1fdfbf32f9 Author: Carlos Garnacho Date: Wed Nov 24 01:31:53 2010 +0100 GtkComboBox: Use style context for rendering gtk/gtkcombobox.c | 157 +++++++++++++++++++++++++++++++++++------------------ 1 files changed, 105 insertions(+), 52 deletions(-) commit c6b2e47931264c575fbe98ce2da279be76200ccb Author: Carlos Garnacho Date: Wed Nov 24 01:30:59 2010 +0100 Let gtk_widget_get_path() correct early calls during init(). gtk/gtkwidget.c | 23 +++++++++++++++++++++++ 1 files changed, 23 insertions(+), 0 deletions(-) commit ebd8463007f044f8c01be7bbf9a9ef5a46729088 Author: Carlos Garnacho Date: Wed Nov 24 01:25:58 2010 +0100 GtkCssProvider: Handle unfocused label selections in default CSS. gtk/gtkcssprovider.c | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) commit 90dd2eb42b41c8509070d0569146667e387fa090 Author: Carlos Garnacho Date: Wed Nov 24 01:24:46 2010 +0100 GtkLabel: Use style context for rendering. gtk/gtklabel.c | 72 +++++++++++++++++++++++++++++++++++--------------------- 1 files changed, 45 insertions(+), 27 deletions(-) commit 0fce9342efb659b27ffffeec48827a4f4107ba52 Author: Carlos Garnacho Date: Wed Nov 24 01:19:06 2010 +0100 GtkThemingEngine: Draw 3D-like effects on square frames with lines. gtk/gtkthemingengine.c | 79 ++++++++++++++++++++++++++++------------------- 1 files changed, 47 insertions(+), 32 deletions(-) commit 3138cc767705b12d1749de3cdeb30ac72f7bc036 Author: Carlos Garnacho Date: Wed Nov 24 01:17:44 2010 +0100 GtkThemingEngine: Render rounded frames with light/shadow connections at 45° gtk/gtkthemingengine.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) commit 95ae1a0aa695f86ce1a76ac3e25b2418980c9c02 Author: Carlos Garnacho Date: Wed Nov 24 01:16:15 2010 +0100 GtkThemingEngine: don't overshoot when rendering frames. gtk/gtkthemingengine.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit e47c8e2490bff0ac41bd5ec54bfce2df6b018aa4 Author: Carlos Garnacho Date: Wed Nov 24 01:13:27 2010 +0100 GtkStyle: Return the default icon set if no context is attached. gtk/gtkstyle.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) commit 5d496aa7f3d05c7e449580c6f8d36154b66d2636 Author: Carlos Garnacho Date: Wed Nov 24 01:11:26 2010 +0100 GtkStyle: Do not warn if attach count == 0 This is going go happen more and more often now, as realize handlers start removing the gtk_widget_style_attach() calls. gtk/gtkstyle.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) commit 6bf04fbd949ca4840d63733eb30ac4172ddad86b Author: Carlos Garnacho Date: Wed Nov 24 01:10:38 2010 +0100 GtkCssProvider: Add a default border color for insensitive elements. gtk/gtkcssprovider.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit e57e0e978d5954ea11062db9353287133bf4d4cb Author: Matthias Clasen Date: Tue Nov 23 18:00:43 2010 -0500 Illustrate extension rendering docs/reference/gtk/images/extensions.png | Bin 0 -> 475 bytes docs/reference/gtk/images/focus.png | Bin 0 -> 371 bytes gtk/gtkstylecontext.c | 9 ++++++ tests/styleexamples.c | 41 ++++++++++++++++++++++++++++++ 4 files changed, 50 insertions(+), 0 deletions(-) commit 8589c5c65e70fce2ac415c5f3b9f9808e89ed440 Author: Matthias Clasen Date: Tue Nov 23 17:38:28 2010 -0500 Add slider illustration docs/reference/gtk/Makefile.am | 3 +- docs/reference/gtk/images/sliders.png | Bin 0 -> 470 bytes gtk/gtkstylecontext.c | 5 +++ tests/styleexamples.c | 45 ++++++++++++++++++++++++++++++--- 4 files changed, 48 insertions(+), 5 deletions(-) commit 8d951476bfc7c3886c383796f2c7a67141fe11cc Author: Matthias Clasen Date: Tue Nov 23 17:00:20 2010 -0500 Add an activity example This doesn't work, since it trips up on num-steps not being available for GtkEventBox. tests/styleexamples.c | 23 +++++++++++++++++++++++ 1 files changed, 23 insertions(+), 0 deletions(-) commit 7e96a519539ab87d522ef42b2a3dac71ef18c2b8 Author: Matthias Clasen Date: Tue Nov 23 16:35:28 2010 -0500 Add examples for frame rendering docs/reference/gtk/Makefile.am | 3 +- docs/reference/gtk/images/frames.png | Bin 0 -> 3393 bytes gtk/gtkstylecontext.c | 18 ++++++++++++++-- tests/styleexamples.c | 35 ++++++++++++++++++++++++++++++--- 4 files changed, 48 insertions(+), 8 deletions(-) commit 4c04d944e8c4c02a3a5fc2072ef8b7417a92fe38 Author: Matthias Clasen Date: Tue Nov 23 16:14:13 2010 -0500 Atempt to fix stretched 9slice rendering gtk/gtk9slice.c | 28 ++++++++++++++-------------- 1 files changed, 14 insertions(+), 14 deletions(-) commit 30fe4487506d2a90ddf9feef9708a96e925e3833 Author: Matthias Clasen Date: Tue Nov 23 16:13:15 2010 -0500 Fix handling of junctions in frame drawing code gtk/gtkthemingengine.c | 24 ++++++++---------------- 1 files changed, 8 insertions(+), 16 deletions(-) commit e52238118332c3089b1663f6399c8a067ee7f292 Author: Matthias Clasen Date: Tue Nov 23 13:36:44 2010 -0500 Add a background example to the docs docs/reference/gtk/Makefile.am | 3 +- docs/reference/gtk/gtk-docs.sgml | 2 + docs/reference/gtk/images/background.png | Bin 0 -> 1400 bytes gtk/gtkstylecontext.c | 6 +++ tests/styleexamples.c | 57 +++++++++++++++++++++++++++++- 5 files changed, 66 insertions(+), 2 deletions(-) commit d532c0e5c21d4974d873a0401cdca247f09fc0c8 Author: Matthias Clasen Date: Tue Nov 23 13:34:48 2010 -0500 Test some wilder names for classes, etc gtk/tests/stylecontext.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) commit 391e445d1130aa6cc5c3f86fd79bcc0a2ca2999d Author: Matthias Clasen Date: Tue Nov 23 13:34:28 2010 -0500 Allow digits in selectors and values, where appropriate gtk/gtkcssprovider.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) commit 31368f16cb41284f90d2f919144ef59a7d970b56 Author: Matthias Clasen Date: Tue Nov 23 11:30:17 2010 -0500 Add the style example code used to generate illustrations tests/Makefile.am | 6 ++- tests/styleexamples.c | 140 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 145 insertions(+), 1 deletions(-) commit f13f315312b75a26d04ef3dcf23c121b2f5cc14a Author: Matthias Clasen Date: Tue Nov 23 11:20:29 2010 -0500 Some more images for gtk_render docs docs/reference/gtk/Makefile.am | 4 +++- docs/reference/gtk/images/arrows.png | Bin 0 -> 549 bytes docs/reference/gtk/images/expanders.png | Bin 0 -> 697 bytes gtk/gtkstylecontext.c | 14 ++++++++++++-- 4 files changed, 15 insertions(+), 3 deletions(-) commit d4c70f214d48326683424eabf6607ed65f45dae0 Author: Matthias Clasen Date: Tue Nov 23 08:24:49 2010 -0500 Declare transition and border-image properties to be writeonly We don't make the types of their values public, so getting their values is useless and will leak. gtk/gtkcssprovider.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit a5e10e9b260fbae666ae3f3ef3dd37be18b4001a Author: Matthias Clasen Date: Tue Nov 23 01:05:11 2010 -0500 Improve some gtk_render_ docs With pictures !! docs/reference/gtk/Makefile.am | 4 +- docs/reference/gtk/images/checks.png | Bin 0 -> 529 bytes docs/reference/gtk/images/options.png | Bin 0 -> 1048 bytes gtk/gtkcssprovider.c | 70 ++++++++++----- gtk/gtkstylecontext.c | 158 +++++++++++++++++++------------- 5 files changed, 144 insertions(+), 88 deletions(-) commit d7a0fe5bf1000c07717f0ec086742c1800bb1941 Author: Matthias Clasen Date: Mon Nov 22 23:01:27 2010 -0500 Document predefined style provider priorites Also, rename GTK_STYLE_PROVIDER_PRIORITY_DEFAULT to _THEME and use it for themes. docs/reference/gtk/gtk3-sections.txt | 4 +- gtk/gtksettings.c | 2 +- gtk/gtkstyleprovider.h | 42 +++++++++++++++++++++++++++++++++- 3 files changed, 44 insertions(+), 4 deletions(-) commit a260059c7fc39f9c4de46fcbf0a60b0453aa2c37 Author: Matthias Clasen Date: Mon Nov 22 22:39:20 2010 -0500 Fix doc formatting gtk/gtkstylecontext.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) commit d9b0da5b836b44fe5129e5afc4966137f8826524 Author: Matthias Clasen Date: Mon Nov 22 22:37:19 2010 -0500 Fix resize grip drawing There was some confusion about junctions... gtk/gtkstyle.c | 8 ++++---- gtk/gtkthemingengine.c | 26 +++++++++++++------------- gtk/gtkwindow.c | 6 +++--- 3 files changed, 20 insertions(+), 20 deletions(-) commit be0ed14ccea5b9462ab2c6492fef4d1681edeb0c Author: Matthias Clasen Date: Mon Nov 22 21:04:18 2010 -0500 Fix GtkRadioButton drawing gtk/gtkradiobutton.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit fc10599ac8ae75d7f9027d069cf0de7345f4ebac Author: Matthias Clasen Date: Mon Nov 22 20:55:02 2010 -0500 Make unfocused selections visible in entries gtk/gtkcssprovider.c | 4 ++++ gtk/gtkentry.c | 3 +-- gtk/gtkstyle.c | 3 +++ 3 files changed, 8 insertions(+), 2 deletions(-) commit 21a193ad020069d08d4b473da1377ef7908a9d96 Author: Matthias Clasen Date: Mon Nov 22 18:56:10 2010 -0500 Make expanders prelight gtk/gtkcssprovider.c | 4 ++++ gtk/gtkstyle.c | 2 ++ gtk/gtkthemingengine.c | 10 ++++++---- 3 files changed, 12 insertions(+), 4 deletions(-) commit 8b6112b6e02deb4a4da1a3df4401fa96e1bff7eb Author: Matthias Clasen Date: Mon Nov 22 17:14:45 2010 -0500 Rewrite GtkInfoBar color handling to bypass GtkStyle This avoids a segfault that was happening due to the recursion detection not working anymore with the old way of doing things. gtk/gtkinfobar.c | 49 +++++++++++++++++++++++++++++-------------------- 1 files changed, 29 insertions(+), 20 deletions(-) commit d63615d9cc79351892158f65b3083cf58eb29c85 Author: Carlos Garnacho Date: Mon Nov 22 21:47:11 2010 +0100 GtkCssProvider: Render inconsistent toggle buttons differently. gtk/gtkcssprovider.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) commit 9b2f878b0667d129ceb741ab74004368226da1ec Author: Carlos Garnacho Date: Mon Nov 22 21:46:12 2010 +0100 GtkCssProvider: do not use selected fg/bg in sliders or spinbutton buttons. gtk/gtkcssprovider.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) commit bcf1ee4825915b55fdb130777f3218389d2bc60d Author: Carlos Garnacho Date: Mon Nov 22 21:45:15 2010 +0100 GtkCssProvider: Use 1px border width for spinbutton buttons. gtk/gtkcssprovider.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) commit 74b032b8164ff7dbc15ccd8c64af978cd46afd3f Author: Carlos Garnacho Date: Mon Nov 22 21:44:36 2010 +0100 GtkCssProvider: Render radio and check boxes framess in menus. gtk/gtkcssprovider.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) commit b33d48a802c6259f649640e8d672e53ffc09f5cc Author: Carlos Garnacho Date: Mon Nov 22 21:43:44 2010 +0100 GtkCssProvider: use selected fg/bg for selected menu items in CSS. gtk/gtkcssprovider.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) commit 85aa672ff7955ee03bada6972080b27ffe8b6608 Author: Carlos Garnacho Date: Mon Nov 22 21:42:30 2010 +0100 GtkCssProvider: Draw frame around menubars and toolbars in default CSS. gtk/gtkcssprovider.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) commit fea567bb9f2ec3bbfef270ebdf2c15412c5ae26e Author: Matthias Clasen Date: Mon Nov 22 15:12:42 2010 -0500 More documentation reshuffling gtk/gtkcssprovider.c | 29 ++++++++++++++++++++++++++++- gtk/gtkstylecontext.c | 26 +++++++------------------- 2 files changed, 35 insertions(+), 20 deletions(-) commit ace967a04274470e9f6cf8b14d61ed4ed46d77fc Author: Matthias Clasen Date: Mon Nov 22 11:18:27 2010 -0500 Tweak wording gtk/gtkcssprovider.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 3a7f79e81462f6f5fb63064e05bb28c89cfaf597 Author: Matthias Clasen Date: Mon Nov 22 11:15:47 2010 -0500 Document border images better docs/reference/gtk/Makefile.am | 6 +++- docs/reference/gtk/images/border1.png | Bin 0 -> 961 bytes docs/reference/gtk/images/border2.png | Bin 0 -> 1684 bytes docs/reference/gtk/images/border3.png | Bin 0 -> 2713 bytes docs/reference/gtk/images/slices.png | Bin 0 -> 1217 bytes gtk/gtkcssprovider.c | 64 +++++++++++++++++++++++---------- 6 files changed, 50 insertions(+), 20 deletions(-) commit 953ac51fb8bd163d49a2abfb09ac77c6e63cb46e Author: Matthias Clasen Date: Mon Nov 22 09:03:07 2010 -0500 Make url parsing work for slices The border-image parsing code relies on parse_path_str to return a meaningful end_ptr in case of success, too. gtk/gtkcssprovider.c | 22 +++++++++++++--------- 1 files changed, 13 insertions(+), 9 deletions(-) commit 28e549082c6026e5364a27ff4b4ab9c6ee4a2758 Author: Matthias Clasen Date: Mon Nov 22 07:24:41 2010 -0500 Fix Gtk9Slice creation gtk/gtk9slice.c | 18 +++++++++--------- 1 files changed, 9 insertions(+), 9 deletions(-) commit 69254c552a9e20bf811005b65bcf521c2d21c819 Author: Matthias Clasen Date: Mon Nov 22 07:23:18 2010 -0500 Allow / in values Otherwise, using url(path) on the right-hand side of properties is not going to work. gtk/gtkcssprovider.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 7d6fb7b7e7e5f204b908b1bc80787c33851ff8c7 Author: Matthias Clasen Date: Mon Nov 22 01:41:45 2010 -0500 Add some images to the docs Add graphs for the transition functions and gradient examples. docs/reference/gtk/Makefile.am | 9 ++ docs/reference/gtk/images/ease-in-out.png | Bin 0 -> 8955 bytes docs/reference/gtk/images/ease-in.png | Bin 0 -> 8862 bytes docs/reference/gtk/images/ease-out.png | Bin 0 -> 8819 bytes docs/reference/gtk/images/ease.png | Bin 0 -> 9216 bytes docs/reference/gtk/images/gradient1.png | Bin 0 -> 722 bytes docs/reference/gtk/images/gradient2.png | Bin 0 -> 397 bytes docs/reference/gtk/images/gradient3.png | Bin 0 -> 2579 bytes docs/reference/gtk/images/gradient4.png | Bin 0 -> 4901 bytes docs/reference/gtk/images/linear.png | Bin 0 -> 8693 bytes gtk/gtkcssprovider.c | 189 +++++++++++++++++++++-------- gtk/gtkstylecontext.c | 18 +++ 12 files changed, 165 insertions(+), 51 deletions(-) commit b2d338d3701a7ff427d86002dcab032204c11708 Author: Matthias Clasen Date: Sun Nov 21 21:50:43 2010 -0500 GtkWidgetPath documentation tweaks gtk/gtkwidgetpath.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) commit 077270142fa196f41d7a86b3c33b0f6ccd83628b Author: Matthias Clasen Date: Sun Nov 21 21:50:12 2010 -0500 GtkStyleContext documentation tweaks gtk/gtkstylecontext.c | 67 +++++++++++++++++++++++++++--------------------- 1 files changed, 38 insertions(+), 29 deletions(-) commit bcf3de095ff80e0a79be866e9a936a261494bcb0 Author: Matthias Clasen Date: Sun Nov 21 21:49:08 2010 -0500 Document various style-related enums docs/reference/gtk/gtk3-sections.txt | 4 ++++ gtk/gtkenums.h | 9 +++++++++ 2 files changed, 13 insertions(+), 0 deletions(-) commit 11480c57f0d7889ced3f9dc0b163882c5d97522f Author: Carlos Garnacho Date: Mon Nov 22 03:45:59 2010 +0100 GtkStyleContext: Use correct type for animation duration. gtk/gtkstylecontext.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 32ccac94e0bdd3ba24c53a679f1796cba0c84b73 Author: Carlos Garnacho Date: Mon Nov 22 03:43:56 2010 +0100 GtkAnimationDescription: parse "loop" correctly. This sscanf parsing needs to go... gtk/gtkanimationdescription.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit 0c1cfd8a341bb3da485387a4cca9dcef0284780a Author: Carlos Garnacho Date: Mon Nov 22 02:40:05 2010 +0100 GtkStyle: handle scales when translating the detail string. gtk/gtkstyle.c | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) commit 71f187a84fdf6b5f0136ce08946c21624ca68ecc Author: Carlos Garnacho Date: Mon Nov 22 02:39:41 2010 +0100 GtkCssProvider: Handle progressbars. gtk/gtkcssprovider.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit f3445a2430edc151a7382487ffb53c1ee3cefb11 Author: Carlos Garnacho Date: Mon Nov 22 02:39:11 2010 +0100 GtkCssProvider: Do not have border-color the same than active bg-color. gtk/gtkcssprovider.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 171157b0e4d8177a93fee5a1ab6b496cf013d315 Author: Carlos Garnacho Date: Sun Nov 21 19:40:28 2010 +0100 GtkMenu: Use GtkStyleContext for rendering. gtk/gtkmenu.c | 346 +++++++++++++++++++++++++++++++------------------------- 1 files changed, 191 insertions(+), 155 deletions(-) commit 6fff76568c769a15a4df5bc47f3b5da94bebafc0 Author: Carlos Garnacho Date: Sun Nov 21 19:38:52 2010 +0100 GtkMenuBar: Use GtkStyleContext for rendering. gtk/gtkmenubar.c | 56 ++++++++++++++++++++++++++++++++++++++--------------- 1 files changed, 40 insertions(+), 16 deletions(-) commit 0df9c70200fcb557c2c09d531fa786de0d582a8b Author: Carlos Garnacho Date: Sun Nov 21 19:38:07 2010 +0100 Use gtk_render_activity() when rendering progressbars through GtkStyle gtk/gtkstyle.c | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) commit ee37847952d9a256f3ff39da019af04e370091b5 Author: Carlos Garnacho Date: Sun Nov 21 19:36:59 2010 +0100 GtkCssProvider: Use default value when handling "none". This way the default value has a way to override other values in previous GtkStyleProviders when merged. gtk/gtkcssprovider.c | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) commit 5e26fb75a074ca1c641a94ddca53296300fb79a5 Author: Matthias Clasen Date: Sun Nov 21 18:00:30 2010 -0500 Add GtkStyleProperties to the docs docs/reference/gtk/gtk-docs.sgml | 1 + docs/reference/gtk/tmpl/gtkenums.sgml | 13 +++++++++++++ gtk/gtkstyleproperties.c | 19 +++++++++++++++++++ 3 files changed, 33 insertions(+), 0 deletions(-) commit e2f91f7201da8f6690353e84fc445d08c4fc1be5 Author: Matthias Clasen Date: Sat Nov 20 00:22:29 2010 -0500 Documentation improvements This patch adds more detail to the explanation of CSS, and also adds documentation about which files are read. We also make :focus an alternative to :focused (since :focus is a standard CSS pseudo-class). gtk/gtkcssprovider.c | 235 +++++++++++++++++++++++++++++++++++++----------- gtk/gtkstylecontext.c | 10 +- gtk/gtkstyleprovider.c | 4 +- 3 files changed, 191 insertions(+), 58 deletions(-) commit 42dd5b2e15ae2714bfc7954e87abfcb48b4f6382 Author: Matthias Clasen Date: Fri Nov 19 17:07:09 2010 -0500 Adapt testgtk.css to parser changes tests/testgtk.css | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 9567ed01e81f63dac6a9c279018290e5d48ca28b Author: Carlos Garnacho Date: Fri Nov 19 22:46:07 2010 +0100 GtkCssProvider: Base prelight foreground on bg color. Entries are also handled, so base/text colors are used. gtk/gtkcssprovider.c | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) commit de94d04fea0ca2e8075c769190e75b65612865e5 Author: Carlos Garnacho Date: Fri Nov 19 22:45:35 2010 +0100 GtkCssProvider: Make prelight a bit less light in default CSS. gtk/gtkcssprovider.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit bc3c9ce619eb34092886c67e7737f9ebed692e89 Author: Carlos Garnacho Date: Fri Nov 19 20:54:13 2010 +0100 GtkStyle: Fix typo. GtkStateType was being used in gtk_style_context_get(), instead of GtkStateFlags, oops. gtk/gtkstyle.c | 27 +++++++++++++++++++++++---- 1 files changed, 23 insertions(+), 4 deletions(-) commit ead23cd0ce7d13eb517a1673b439df486fb8bb45 Author: Carlos Garnacho Date: Fri Nov 19 20:17:18 2010 +0100 GtkThemingEngine: Make render_option() depend on border-style and border-color. gtk/gtkthemingengine.c | 19 ++++++++++++++----- 1 files changed, 14 insertions(+), 5 deletions(-) commit be4a616e6e415201c766d2850fb2737199df4b11 Author: Carlos Garnacho Date: Fri Nov 19 20:14:51 2010 +0100 GtkRadioButton: Use GtkStyleContext for rendering. gtk/gtkradiobutton.c | 52 +++++++++++++++++++++++-------------------------- 1 files changed, 24 insertions(+), 28 deletions(-) commit 756e20f58c59c606d3bf62e1369127fa96538b54 Author: Carlos Garnacho Date: Fri Nov 19 19:56:25 2010 +0100 Make "button" class depend on mode for GtkToggleButtons gtk/gtkcheckbutton.c | 9 --------- gtk/gtktogglebutton.c | 12 ++++++++++++ 2 files changed, 12 insertions(+), 9 deletions(-) commit 84d586043e50b833eb59bfe80d9bb267c147efb9 Author: Carlos Garnacho Date: Fri Nov 19 19:20:12 2010 +0100 Fix checkbuttons theming in CSS so it's more similar to 2.x gtk/gtkcssprovider.c | 21 +++++++++++++++++++-- 1 files changed, 19 insertions(+), 2 deletions(-) commit 7478a77b048b3bd7017eaf0984170a7a64992243 Author: Carlos Garnacho Date: Fri Nov 19 19:19:42 2010 +0100 GtkCheckButton: Use GtkStyleContext for rendering. gtk/gtkcheckbutton.c | 94 +++++++++++++++++++++++++------------------------ 1 files changed, 48 insertions(+), 46 deletions(-) commit 04783534ed7e1aaa1d9c76e49e9a12cf2972f632 Author: Carlos Garnacho Date: Fri Nov 19 19:18:20 2010 +0100 GtkThemingEngine: Make render_check() depend on border-style and border-color. gtk/gtkthemingengine.c | 18 ++++++++++++++---- 1 files changed, 14 insertions(+), 4 deletions(-) commit f62583d30c1e7bebf8e5c3870c0d8c00808ab03f Author: Carlos Garnacho Date: Fri Nov 19 19:02:27 2010 +0100 GtkContainer: Also copy permanent container's classes on get_path_for_child() This makes inheritance work for the simplest cases when style is defined for classes. gtk/gtkcontainer.c | 23 ++++++++++++++++++++++- 1 files changed, 22 insertions(+), 1 deletions(-) commit 6d1cf7682295a80e41731d6b1fe8c0cc8db02891 Author: Carlos Garnacho Date: Fri Nov 19 18:59:49 2010 +0100 GtkWidgetPath: Make iter API deal with gints. now gtk_widget_path_iter_* takes gints instead of guints, and also accept numbers == -1 or > path_length for the path head. gtk/gtkwidgetpath.c | 167 +++++++++++++++++++++++++++++++++----------------- gtk/gtkwidgetpath.h | 40 ++++++------ 2 files changed, 130 insertions(+), 77 deletions(-) commit 5f889972978ee625772d9a30194834e0f8b816c9 Author: Carlos Garnacho Date: Fri Nov 19 18:58:19 2010 +0100 GtkWidgetPath: Make gtk_widget_path_prepend_type() return nothing. It's senseless to always return 0 gtk/gtkwidgetpath.c | 10 +++------- gtk/gtkwidgetpath.h | 2 +- 2 files changed, 4 insertions(+), 8 deletions(-) commit 198bb314c78cb2394d11f14026ad9e286c288f35 Author: Carlos Garnacho Date: Fri Nov 19 18:53:34 2010 +0100 GtkStyleContext: preserve state on save(). gtk/gtkstylecontext.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 1bfb169ce6f878cfbff2a649477cd6e1484be234 Author: Carlos Garnacho Date: Fri Oct 29 14:17:03 2010 -0400 GtkThemingEngine: Documents that engines must only use this API. It was a bit unclear in the documentation, even if it was from the API POV. gtk/gtkthemingengine.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) commit c5b38121ec7ffd2148f420e357dc106bd2bd6cf6 Author: Matthias Clasen Date: Thu Nov 18 23:45:42 2010 -0500 Add tests for matching These tests try to decipher how specificity works for selectors. gtk/tests/stylecontext.c | 204 +++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 203 insertions(+), 1 deletions(-) commit e1819055b9dbafc890da9dab074e0761e3e8dd4d Author: Matthias Clasen Date: Thu Nov 18 23:35:00 2010 -0500 Copy GtkWidgetPaths correctly The code was forgetting to copy class information. gtk/gtkwidgetpath.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) commit 49fed3d7d7e7fee0d52321463a20157b0ec4c03c Author: Matthias Clasen Date: Thu Nov 18 19:18:09 2010 -0500 More css parsing tests gtk/tests/Makefile.am | 6 +- gtk/tests/stylecontext.c | 109 ++++++++++++++++++++++++++++++++++++++++++++++ gtk/tests/test.png | Bin 0 -> 3569 bytes 3 files changed, 112 insertions(+), 3 deletions(-) commit 4135fbf4d6e8c8803945d970c58d5f6efe5a1872 Author: Matthias Clasen Date: Thu Nov 18 18:36:08 2010 -0500 A little closer to css Declarations are ;-separated, but there is no ; required after the last declaration. We harmlessly accept either. gtk/gtkcssprovider.c | 26 +++++++++++++------------- 1 files changed, 13 insertions(+), 13 deletions(-) commit 295cf25d6b49782ecf1d6fafb2ca24f55421c218 Author: Javier Jardón Date: Thu Nov 18 18:55:25 2010 +0100 docs: Refer to gtk_paint_*() instead draw_*() vfuncs in the migration guide docs/reference/gtk/migrating-GtkStyleContext.xml | 20 +++++++++----------- 1 files changed, 9 insertions(+), 11 deletions(-) commit 933440e1f1723dbf2f79e9f4e4a8df173c9547af Author: Matthias Clasen Date: Thu Nov 18 02:00:53 2010 -0500 Some css parsing tests gtk/tests/Makefile.am | 5 ++ gtk/tests/stylecontext.c | 161 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 166 insertions(+), 0 deletions(-) commit 0396550ececab9958fcabd74939a26e84a39c7a5 Author: Matthias Clasen Date: Thu Nov 18 01:59:27 2010 -0500 Work harder at parsing import statements Also, turn g_warning() into g_message() for now, so that tests don't abort. Eventually, this needs to all go into GErrors. gtk/gtkcssprovider.c | 31 +++++++++++++++++++------------ 1 files changed, 19 insertions(+), 12 deletions(-) commit 11cd19987b96c1fceb4a912e1337761ebab56a51 Author: Matthias Clasen Date: Thu Nov 18 01:25:41 2010 -0500 Move import syntax closer to css Css allows @import url ("foo.css") or @import "foo.css" or @import url ('foo.css') but not @import url(foo.css) or @immport foo.css. gtk/gtkcssprovider.c | 88 +++++++++++++++++++++++++++++++------------------ 1 files changed, 56 insertions(+), 32 deletions(-) commit f92c352f96aa5f1ce004f6dec54d206ac02b5bd3 Author: Matthias Clasen Date: Wed Nov 17 22:29:39 2010 -0500 Some error reporting When we take a GError argument, better use it. gtk/gtkcssprovider.c | 59 +++++++++++++++++++++++++++++++++++++++---------- gtk/gtkcssprovider.h | 9 +++++++ 2 files changed, 56 insertions(+), 12 deletions(-) commit 5f13b65065f27ad6ca5de0797234d42c73600ab9 Author: Matthias Clasen Date: Wed Nov 17 20:24:18 2010 -0500 Fix prototype of gtk_css_style_provider_load_from_data GError arguments must be **. gtk/gtkcssprovider.c | 8 ++++---- gtk/gtkcssprovider.h | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) commit 72f9a7940fe222f4d6f9a6dca2a8c0083c461b7a Author: Matthias Clasen Date: Wed Nov 17 01:39:03 2010 -0500 Add an outline around menu popups gtk/gtkcssprovider.c | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) commit c8e5d3b07b7f1d658ee7737c1726d2ab97b9ea28 Author: Matthias Clasen Date: Wed Nov 17 01:38:40 2010 -0500 Transform the 'menu' detail string to the 'popup' class gtk/gtkstyle.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) commit 016a6569238412add67e6e8992f2f8cc42faa644 Author: Matthias Clasen Date: Wed Nov 17 01:04:14 2010 -0500 Fix prelighting of inconsistent radio and check buttons gtk/gtkcheckbutton.c | 2 +- gtk/gtkradiobutton.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit b6776dc116edaabdfd239373f2a7fe0a1b931bcf Author: Matthias Clasen Date: Wed Nov 17 00:44:36 2010 -0500 Fix the resize handle drawing gtk/gtkthemingengine.c | 18 +++++++++--------- 1 files changed, 9 insertions(+), 9 deletions(-) commit 627b33265b8208d519e016d0e5410736ba4d9fd1 Author: Matthias Clasen Date: Wed Nov 17 00:21:21 2010 -0500 Handle float and uint style properties These were giving errors in testgtk. gtk/gtkcssprovider.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) commit f0eafe60f888064a1488a334cfe951c074009315 Author: Matthias Clasen Date: Tue Nov 16 23:09:32 2010 -0500 Remove debug output gtk/gtkthemingengine.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) commit 4e778d737108ea123a9b4335fe0e5333462d8f33 Author: Matthias Clasen Date: Tue Nov 16 23:03:21 2010 -0500 Fix a typo gtk/gtkstylecontext.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 512bc44dbce129c41696d5723b04946789fb97ec Author: Matthias Clasen Date: Tue Nov 16 23:02:59 2010 -0500 Make frames visible by default gtk/gtkcssprovider.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) commit 9ca66efe2c1d71c7deb366162ea6179d680e8997 Author: Matthias Clasen Date: Tue Nov 16 21:50:56 2010 -0500 Fix a memory leak gtk/gtkthemingengine.c | 13 ++++--------- 1 files changed, 4 insertions(+), 9 deletions(-) commit 69f91fed94b52fabc8e07dd1c8225af189474dd5 Author: Matthias Clasen Date: Tue Nov 16 21:50:04 2010 -0500 Translate detail strings for radio buttons gtk/gtkstyle.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) commit 25b6945971da2d09e041329d49134041c3f3de81 Author: Carlos Garnacho Date: Wed Nov 17 02:59:19 2010 +0100 GtkThemingEngine: remove unused code gtk/gtkthemingengine.c | 64 ------------------------------------------------ 1 files changed, 0 insertions(+), 64 deletions(-) commit 892fe463247486b95c2eaedb655d28d314189690 Author: Carlos Garnacho Date: Wed Nov 17 02:56:49 2010 +0100 Fix compile warnings gtk/gtkthemingengine.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit c9dc09e980d26844d72bf740ddffc1a5530f2627 Author: Carlos Garnacho Date: Wed Nov 17 02:42:27 2010 +0100 GtkStyleProvider: Pass a GParamSpec in get_style_property(). This is so we can know the owner type of the property, and matching with the stored strings in GtkCssProvider is direct. gtk/gtkcssprovider.c | 9 +++------ gtk/gtkstylecontext.c | 5 +++-- gtk/gtkstyleprovider.c | 11 ++++++----- gtk/gtkstyleprovider.h | 4 ++-- 4 files changed, 14 insertions(+), 15 deletions(-) commit b613f1f1f288d9e24ca8830834e6bc533a3e3727 Author: Carlos Garnacho Date: Wed Nov 17 02:41:54 2010 +0100 GtkStyleContext: Also use screen providers for widget style properties. gtk/gtkstylecontext.c | 22 +++++++++++++++++++--- 1 files changed, 19 insertions(+), 3 deletions(-) commit 13e186bbca5fbe0c332cf189e8b380e3145b711e Author: Carlos Garnacho Date: Wed Nov 17 02:40:21 2010 +0100 Handle menuitem detail string better. gtk/gtkstyle.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) commit 9a2d1e54334c70d9415fdddeb1d81502e445a9bf Author: Carlos Garnacho Date: Wed Nov 17 02:39:17 2010 +0100 GtkSettings: install theme CSS with a lower priority. This is so GtkSettings has an opportunity to modify theme colors. gtk/gtksettings.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 0057aa5445b735aafaca3e1907650fd2869b5564 Author: Carlos Garnacho Date: Wed Nov 17 02:38:31 2010 +0100 Add corners to GtkJunctionSides, defining sides as 2 corners. gtk/gtkenums.h | 16 ++++++++++++---- 1 files changed, 12 insertions(+), 4 deletions(-) commit eb8a1c4e33480043fbfb0e1bf3c254f0ce784dfa Author: Matthias Clasen Date: Tue Nov 16 07:52:27 2010 -0500 Don't whine about expander-style missing This check was lost in the GtkStyleContext porting. gtk/gtkstyle.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) commit 43cff6f6f7d4ad978708e869468ef9bb4e8f3a2a Author: Carlos Garnacho Date: Mon Nov 15 23:28:53 2010 +0100 GtkCssProvider: theme notebooks. gtk/gtkcssprovider.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) commit 6099399fa7683208cebbf803512bc683b943d78d Author: Carlos Garnacho Date: Mon Nov 15 23:28:06 2010 +0100 GtkThemingEngine: Use border settings on render_extension/frame_gap() gtk/gtkthemingengine.c | 578 +++++++++++++++++++----------------------------- 1 files changed, 233 insertions(+), 345 deletions(-) commit 60a2e90df7c51d2dfc9103970b794ecc53008146 Author: Carlos Garnacho Date: Mon Nov 15 23:27:44 2010 +0100 GtkStyle: transform tabs' detail string. gtk/gtkstyle.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) commit 534942d994aca08d73f61b37db1cfb74d1f59b5b Author: Carlos Garnacho Date: Sun Nov 14 19:47:09 2010 +0100 GtkThemingEngine: Do not use possible reserved word. gtk/gtkthemingengine.c | 14 +++++++------- gtk/gtkthemingengine.h | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) commit 5bf9f8c410a1fbe6f298dbe404447195b64df63f Author: Carlos Garnacho Date: Sat Nov 13 23:18:44 2010 +0100 testgtk: Try to locate the right file. tests/testgtk.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit d4aade109f90ddea288011d241964fce329e814c Author: Carlos Garnacho Date: Sat Nov 13 22:57:49 2010 +0100 Fix gtk_css_provider_get_named() docs. gtk/gtkcssprovider.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit c37797a10c8abb50be372c67c18cf0f1f2f42039 Author: Carlos Garnacho Date: Sat Nov 13 22:36:22 2010 +0100 GtkSettings: Keep right refcount of the theme provider. gtk/gtksettings.c | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) commit 611cb007b406c5abf9c82d8e4c553f36d560b696 Author: Carlos Garnacho Date: Sat Nov 13 22:35:58 2010 +0100 GtkSettings: Ensure the theme CSS is loaded on startup. gtk/gtksettings.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit 8243c3c025ccf458070cb07b51d3d42e9f3183cc Author: Carlos Garnacho Date: Sat Nov 13 22:34:30 2010 +0100 GtkCssProvider: Fix typo in gtk_css_provider_get_named() provider was being redefined in the inner block, so the loaded provider didn't get to be returned. gtk/gtkcssprovider.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) commit a185954d7c61c81d7f53b1b2dee5b9b91811df28 Author: Carlos Garnacho Date: Sat Nov 13 22:33:34 2010 +0100 Hardcode 3.0 version for style files and paths. It's about time to start using the right paths. gtk/gtkcssprovider.c | 4 ++-- gtk/gtksettings.c | 7 ++----- 2 files changed, 4 insertions(+), 7 deletions(-) commit 37f9f491d29620898bbfc146ab1bd7e7c8c4596d Author: Carlos Garnacho Date: Sat Nov 13 21:19:41 2010 +0100 Make testgtk load CSS for custom styling. tests/Makefile.am | 4 +- tests/testgtk.c | 46 +++++++---- tests/testgtk.css | 33 ++++++++ tests/testgtk2.css | 9 ++ tests/testgtkrc | 228 ---------------------------------------------------- tests/testgtkrc2 | 21 ----- 6 files changed, 73 insertions(+), 268 deletions(-) commit 9ffaf1122d7598415bed9fd35b4e436b1386d538 Author: Carlos Garnacho Date: Sat Nov 13 21:13:13 2010 +0100 GtkCssProvider: Accept '%' in value strings. gtk/gtkcssprovider.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 64e798e190dec338410c98c806de18f357b3b4cc Author: Carlos Garnacho Date: Sat Nov 13 19:54:37 2010 +0100 Do not initialize RC subsystem. gtk/gtkmain.c | 1 - gtk/gtkrc.c | 6 ++++++ 2 files changed, 6 insertions(+), 1 deletions(-) commit 62ee0956e310a482d53e40258f021a5f9b4a1cec Author: Carlos Garnacho Date: Sat Nov 13 19:53:36 2010 +0100 GtkStyleProperties: Use GParamSpec for properties registration. gtk/gtkcssprovider.c | 8 +- gtk/gtkstyleproperties.c | 226 +++++++++++++++++++++++++++++----------------- gtk/gtkstyleproperties.h | 12 +-- gtk/gtkthemingengine.c | 55 +++++------- gtk/gtkthemingengine.h | 10 +-- 5 files changed, 178 insertions(+), 133 deletions(-) commit 1c847d9c21c18f4c7b5297496ee98e1e5a13458a Author: Carlos Garnacho Date: Sat Nov 13 13:27:37 2010 +0100 GtkCssProvider: Docs fix for -gtk-gradient() syntax. gtk/gtkcssprovider.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit bcf81a0e2315ecee055406218b83652ebeb65269 Author: Carlos Garnacho Date: Sat Nov 13 13:24:18 2010 +0100 Handle looping transition animations. gtk/gtkanimationdescription.c | 29 +++++++++++++++++++++-------- gtk/gtkanimationdescription.h | 4 +++- gtk/gtkcssprovider.c | 4 ++-- gtk/gtkstylecontext.c | 20 +++++++++++++++----- gtk/gtkstyleproperties.c | 5 +---- 5 files changed, 42 insertions(+), 20 deletions(-) commit 1123159dc99b7fe792d2bb904bb6f834f4a84b82 Author: Carlos Garnacho Date: Sat Nov 13 12:44:55 2010 +0100 GtkCssProvider: Handle better wrong enum/flag values. gtk/gtkcssprovider.c | 39 +++++++++++++++++++++++++++------------ 1 files changed, 27 insertions(+), 12 deletions(-) commit 9bb96e271d523c61a9eda6794b5f540b40470304 Author: Carlos Garnacho Date: Sat Nov 13 12:36:24 2010 +0100 GtkCssProviders: Parse GTypeFlags based values. gtk/gtkcssprovider.c | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 46 insertions(+), 0 deletions(-) commit 5cb6fed0bd6ee4bb22ac75355bbbcba06273d49e Author: Carlos Garnacho Date: Sat Nov 13 03:55:21 2010 +0100 GtkCssProvider: Add initial unit parsing logic At the moment only "px" are supported, and such is the default value when no unit is specified. gtk/gtkcssprovider.c | 150 +++++++++++++++++++++++++++++++++++++++----------- 1 files changed, 117 insertions(+), 33 deletions(-) commit 65abcb722ecdfbe8180831e78bb3e807238d9e72 Author: Carlos Garnacho Date: Sat Nov 13 02:30:53 2010 +0100 GtkCssProvider: Handle the "none" keyword to unset properties. gtk/gtkcssprovider.c | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) commit c57fdf4c750932dc837c9df991bdf0a1bcab9f70 Author: Carlos Garnacho Date: Sat Nov 13 02:18:11 2010 +0100 GtkStyleContext: Resolve symbolic colors for widget style properties. gtk/gtkstylecontext.c | 43 +++++++++++++++++++++++++++++++++++++++---- 1 files changed, 39 insertions(+), 4 deletions(-) commit d865cf4b38f33d95310289351f9fba044bdc3fb8 Author: Carlos Garnacho Date: Sat Nov 13 01:25:07 2010 +0100 GtkStyleProperties: Handle GdkColor types. Just in case. gtk/gtkstyleproperties.c | 53 +++++++++++++++++++++++++++++++++++++++------ 1 files changed, 46 insertions(+), 7 deletions(-) commit 8b9b9c22e710661b56de4dcf68b5c4fd6ca980a8 Author: Carlos Garnacho Date: Sat Nov 13 01:24:07 2010 +0100 GtkCssProvider: Also parse GdkColor values This is necessary for widget style properties to work. gtk/gtkcssprovider.c | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) commit 815e3499ae03a6428d2b30396826c7769fd8a2a8 Author: Carlos Garnacho Date: Fri Nov 12 23:59:22 2010 +0100 GtkCssProvider: Add lighter/darker color functions. These behave the same than in GtkStyle. gtk/gtkcssprovider.c | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 46 insertions(+), 0 deletions(-) commit cb2f9a86e5b191914f8d92c1483af28976d12fa2 Author: Carlos Garnacho Date: Fri Nov 12 22:59:21 2010 +0100 GtkCssProvider: allow color names from rgb.txt when parsing colors. gtk/gtkcssprovider.c | 76 ++++++++++++++++++++++++++++--------------------- 1 files changed, 43 insertions(+), 33 deletions(-) commit 44b1a6c852a41b1235998ac91c92f475c5f46e49 Author: Carlos Garnacho Date: Fri Nov 12 22:48:29 2010 +0100 GtkStyleContext: Add #define's for the default properties. docs/reference/gtk/gtk3-sections.txt | 12 +++++ gtk/gtkstylecontext.h | 78 ++++++++++++++++++++++++++++++++++ 2 files changed, 90 insertions(+), 0 deletions(-) commit 1be9d6ebc9a804b12e0b3c9d8180731ecc3d33aa Author: Carlos Garnacho Date: Fri Nov 12 21:46:55 2010 +0100 Document missing GtkStateType values. The documentation has also moved to gtkenums.h. docs/reference/gtk/tmpl/gtkenums.sgml | 16 ---------------- gtk/gtkenums.h | 21 +++++++++++++++++++++ 2 files changed, 21 insertions(+), 16 deletions(-) commit 1487b346798889b93d094928cbc9d4033e3c16aa Author: Carlos Garnacho Date: Fri Nov 12 21:44:48 2010 +0100 Remove GTK_STATE_LAST. It didn't turn out to be that useful, nor widely used. gtk/gtkcssprovider.c | 2 +- gtk/gtkenums.h | 3 +-- gtk/gtkstylecontext.c | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) commit 1fb6cc8d772292929d7c9babca4613cccb6f55ee Author: Carlos Garnacho Date: Fri Nov 12 21:43:13 2010 +0100 Use the correct cairo-gobject.h include path. gtk/gtkcssprovider.c | 2 +- gtk/gtkstyleproperties.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit 2fe0a51ed020bcff0b252855122d2367dc3aa400 Author: Carlos Garnacho Date: Fri Nov 12 19:31:04 2010 +0100 Add gtk_render_icon_pixbuf() function to docs. docs/reference/gtk/gtk3-sections.txt | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 04fbb743887b90f7cdf20c42dbc416669b6e953e Author: Carlos Garnacho Date: Fri Nov 12 19:28:51 2010 +0100 Add GtkStyleContext migration docs. docs/reference/gtk/Makefile.am | 2 + docs/reference/gtk/gtk-docs.sgml | 1 + docs/reference/gtk/migrating-GtkStyleContext.xml | 544 ++++++++++++++++++++++ 3 files changed, 547 insertions(+), 0 deletions(-) commit fb97bd1f0a0ad74137654ccc43f12a18d8a9e322 Author: Carlos Garnacho Date: Tue Nov 9 21:48:49 2010 +0100 GtkThemingEngine: Document missing class vmethods. gtk/gtkthemingengine.h | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) commit 4689b637397cb23dccaf227b1880e32b440b7078 Author: Carlos Garnacho Date: Tue Nov 9 21:33:10 2010 +0100 GtkButton: Use GtkStyleContext for rendering. gtk/gtkbutton.c | 94 ++++++++++++++++++++++++++++++++++--------------------- 1 files changed, 58 insertions(+), 36 deletions(-) commit dc2df7d178867e9008e7f8c12878709f3a599a68 Author: Carlos Garnacho Date: Tue Nov 9 21:26:52 2010 +0100 GtkWindow: Use GtkStyleContext for rendering. gtk/gtkwindow.c | 76 +++++++++++++++++++++++++++++++----------------------- 1 files changed, 44 insertions(+), 32 deletions(-) commit 3f12fc2bd87209b366e806c01859279830b350de Author: Carlos Garnacho Date: Tue Nov 9 21:24:41 2010 +0100 GtkStyleContext: Add gtk_style_context_set_background(). This function replaces gtk_style_set_background(). docs/reference/gtk/gtk3-sections.txt | 1 + gtk/gtkstylecontext.c | 42 ++++++++++++++++++++++++++++++++++ gtk/gtkstylecontext.h | 3 ++ 3 files changed, 46 insertions(+), 0 deletions(-) commit d9664021cc4917b93ac9a1aa0183e30226f61c7c Author: Carlos Garnacho Date: Tue Nov 9 18:31:39 2010 +0100 GtkWidget: Update pango context from style context's font description. gtk/gtkwidget.c | 14 ++++++++++++-- 1 files changed, 12 insertions(+), 2 deletions(-) commit 1cfeeadc704f4644ebb0d95dddc1ee2004b269b3 Author: Carlos Garnacho Date: Tue Nov 9 18:28:38 2010 +0100 GtkWidget: Ensure the style context always has an screen. Things like font settings depend on the screen, and widgets like GtkTextView trigger queries on widgets without screen when the parent window is being destroyed. gtk/gtkwidget.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 48f239c1f2bab93f9fce3c59df5018752cb96ef0 Author: Carlos Garnacho Date: Tue Nov 9 18:27:36 2010 +0100 Add CSS class defines for toolbars and docks. gtk/gtkstylecontext.h | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) commit 99879d4a5f56fec155a90b3bbb7d613da191508e Author: Carlos Garnacho Date: Tue Nov 9 18:27:13 2010 +0100 GtkStyle: translate a few more detail strings. gtk/gtkstyle.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) commit 3848a58b1774318064c09b835165181df3ed5bc3 Author: Carlos Garnacho Date: Tue Nov 9 18:26:39 2010 +0100 GtkCssProvider: theme progressbars in default CSS. gtk/gtkcssprovider.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) commit 0431239eadba0b0d1d09c66d14677d25169c8a6b Author: Carlos Garnacho Date: Mon Nov 8 20:17:17 2010 +0100 GtkThemingEngine: ensure 1px wide frames aren't painted between pixels. gtk/gtkthemingengine.c | 14 ++++++++++++-- 1 files changed, 12 insertions(+), 2 deletions(-) commit f66275fa6ac98d01c90a3ba45d6b8593ad8bed99 Author: Carlos Garnacho Date: Mon Nov 8 20:15:19 2010 +0100 GtkThemingEngine: Use square cap for solid frames. gtk/gtkthemingengine.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 3d1403e6849dd6394fb54a61af9140541fd9e880 Author: Carlos Garnacho Date: Mon Nov 8 20:12:15 2010 +0100 GtkThemingEngine: ensure that background isn't rendered past the frame boundaries. gtk/gtkthemingengine.c | 15 ++++++++++++++- 1 files changed, 14 insertions(+), 1 deletions(-) commit d6ba3b7d89a1984c477b3ee79458b058109fceeb Author: Carlos Garnacho Date: Mon Nov 8 12:48:29 2010 +0100 GtkThemingEngine: Get rid of obsolete code for tooltips. gtk/gtkthemingengine.c | 22 ++++++---------------- 1 files changed, 6 insertions(+), 16 deletions(-) commit 661a13fe4d67d69246eacf5733dc86db25074584 Author: Carlos Garnacho Date: Mon Nov 8 12:39:28 2010 +0100 GtkStyleContext: Fix check for GtkIconSize in render_icon_pixbuf(). gtk/gtkstylecontext.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 405f2f306a903b67a81924fe0db959b5828010b3 Author: Carlos Garnacho Date: Mon Nov 8 02:53:12 2010 +0100 GtkStyleContext: restore widget state too in restore(). gtk/gtkstylecontext.c | 12 ++++++++---- 1 files changed, 8 insertions(+), 4 deletions(-) commit 8b267a58da7051c23c97074eb723b5de95723956 Author: Carlos Garnacho Date: Mon Nov 8 02:51:53 2010 +0100 GtkCssProvider: Do not miss the last class name in concatenated classes. Selectors like .menu.check or .entry.progressbar were being misparsed and attributed to .menu and .entry. gtk/gtkcssprovider.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) commit d321713704bcbe400baea97305c9b4d598fbe57d Author: Carlos Garnacho Date: Mon Nov 8 02:30:39 2010 +0100 GtkStyle: transform window background detail string. gtk/gtkstyle.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit 1ec47b20dbaa500bc3be9191e9bc124aefce9331 Author: Carlos Garnacho Date: Mon Nov 8 02:15:06 2010 +0100 GtkStyle: Transform menubar detail string. gtk/gtkstyle.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit 46b8cc86868c0acc2a1a11caee22abbad0866b55 Author: Carlos Garnacho Date: Mon Nov 8 01:52:25 2010 +0100 GtkStyle: Transform menu accelerators string gtk/gtkstyle.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit 4c898a3c7eda36cdcc71a7280af9be3c2654b4cd Author: Carlos Garnacho Date: Mon Nov 8 01:30:02 2010 +0100 GtkStyleContext: Define some more class names. gtk/gtkstylecontext.h | 34 ++++++++++++++++++++++++++++++++++ 1 files changed, 34 insertions(+), 0 deletions(-) commit 912ad78cc5061de9e36064e291cf07424603bbf8 Author: Carlos Garnacho Date: Sat Nov 6 12:40:15 2010 +0100 Remove GTK_REGION_DEFAULT GTK_STYLE_CLASS_DEFAULT is preferred to match a default area, as it doesn't make sense to have a per-region default. gtk/gtkcssprovider.c | 5 ----- gtk/gtkenums.h | 2 -- 2 files changed, 0 insertions(+), 7 deletions(-) commit 271145645cea0898eb461b36b631f9ee0c43887d Author: Carlos Garnacho Date: Sat Nov 6 12:38:52 2010 +0100 GtkThemingEngine: Use GtkSymbolicColor for shades. gtk/gtkthemingengine.c | 12 ++++++++---- 1 files changed, 8 insertions(+), 4 deletions(-) commit df95a74a2752f9ece372a2dc82fa8c945ce2bc38 Author: Carlos Garnacho Date: Sat Nov 6 12:37:46 2010 +0100 GtkThemingEngine: Do not require a default value when registering properties NULL should work for 0 for int/double/enum/... types and NULL for pointer types, this should be sane enough to not require a default value. gtk/gtkthemingengine.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 765f653df620c7e9a83c637c7e9d88e19c7b2ea8 Author: Carlos Garnacho Date: Sat Nov 6 12:36:05 2010 +0100 GtkSymbolicColor: Only require styleproperties when resolving named colors. It is not necessary for resolving colors based on literals, so be a bit less strict here. gtk/gtksymboliccolor.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit 525963d74d9f54ea502d5ff31ced5534de7cb6cf Author: Carlos Garnacho Date: Sat Nov 6 12:35:20 2010 +0100 GtkSymbolicColor: convert to/from hls when shading. This makes shading equal to GtkStyle's. gtk/gtksymboliccolor.c | 181 ++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 177 insertions(+), 4 deletions(-) commit 3ea9568c20e1bf6344620169bcf45b59db5436fc Author: Carlos Garnacho Date: Sat Nov 6 12:33:52 2010 +0100 GtkSymbolicColor: Do not clamp shade/mix/alpha factors. gtk/gtksymboliccolor.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit a23863211b098d3db2b04f9dcf4a941645c506ae Author: Carlos Garnacho Date: Wed Nov 3 21:14:08 2010 +0100 GtkStyleContext: Add gtk_render_icon_pixbuf() This function is similar to gtk_style_render_icon(), which is now implemented on top of this one. gtk/gtkstyle.c | 125 +++++++++--------------------------------------- gtk/gtkstylecontext.c | 33 +++++++++++++ gtk/gtkstylecontext.h | 4 ++ gtk/gtkthemingengine.c | 92 +++++++++++++++++++++++++++++++++++ gtk/gtkthemingengine.h | 4 ++ 5 files changed, 156 insertions(+), 102 deletions(-) commit 06c88571914dda77fec9a152a2dde9a498d3fdf5 Author: Carlos Garnacho Date: Wed Nov 3 21:12:57 2010 +0100 GtkThemingEngine: Fix compile warning. gtk/gtkthemingengine.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 605fa03248e3ec9d31054a0d8eef268207312ea9 Author: Carlos Garnacho Date: Wed Nov 3 21:10:06 2010 +0100 Fix compile warning gtk/gtksettings.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) commit f2c6c82ff0155729e4b6ed94e33d8dc1e3e93dcb Author: Carlos Garnacho Date: Wed Nov 3 19:27:18 2010 +0100 GtkStatusIcon: update to use gtk_widget_override_symbolic_color(). gtk/gtkstatusicon.c | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) commit f383e6b0a2ba681d81296c2f5196e6884f0f211d Author: Carlos Garnacho Date: Wed Nov 3 12:21:04 2010 +0100 GtkWidget: Add new set of methods to override style information. gtk_widget_override_*() deprecates gtk_widget_modify_*(). There are only functions to modify fg/bg/font/symbolic color, If anything more fancy/complex is needed. There is the possibility of adding a GtkStyleProvider yourself. docs/reference/gtk/gtk3-sections.txt | 4 + gtk/gtk.symbols | 5 +- gtk/gtkwidget.c | 284 ++++++++++++++++++++++++++++++--- gtk/gtkwidget.h | 18 ++- 4 files changed, 281 insertions(+), 30 deletions(-) commit 920637abef35f4d26a2991b12aac830eb26ec8c4 Author: Carlos Garnacho Date: Wed Nov 3 12:18:48 2010 +0100 GtkStyle: Listen to context changes. This way the GtkStyle is updated to the latest style info, actually emitting ::style-set must be performed after invalidating the style context. gtk/gtkstyle.c | 18 ++++++++++++++++-- 1 files changed, 16 insertions(+), 2 deletions(-) commit 33e95ae65fd8fa7803de4915f3acddba262c80c5 Author: Carlos Garnacho Date: Wed Nov 3 12:17:06 2010 +0100 GtkStyleContext: Add the start of a default set of class names/regions. docs/reference/gtk/gtk3-sections.txt | 21 +++++ gtk/gtkstylecontext.h | 139 ++++++++++++++++++++++++++++++++++ 2 files changed, 160 insertions(+), 0 deletions(-) commit 071ccaf8a7e5777f5e6309bd40a4a6d75d660525 Author: Carlos Garnacho Date: Wed Nov 3 12:15:49 2010 +0100 Theming documentation fixes 2 functions were not in -sections.txt, and GtkStyleSet was renamed to GtkStyleProperties. docs/reference/gtk/gtk3-sections.txt | 50 +++++++++++++++++---------------- 1 files changed, 26 insertions(+), 24 deletions(-) commit 80e74d79bbaa6db10b25bf5d21a0b5c589ecae8c Author: Carlos Garnacho Date: Wed Nov 3 11:40:12 2010 +0100 GtkStyleContext: Fix merging of local and global providers. gtk/gtkstylecontext.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit fb8de847df03b91d3e6f0674021af1fa1ba543b4 Author: Carlos Garnacho Date: Wed Nov 3 11:36:18 2010 +0100 GtkStyleProperties: Merge font descriptions on merge() This is necessary so incomplete font descriptions are ensured to have family and size. gtk/gtkstyleproperties.c | 14 +++++++++++++- 1 files changed, 13 insertions(+), 1 deletions(-) commit af20ba6103d0eae66fc860d6a97af165f2ffd0f2 Author: Carlos Garnacho Date: Wed Nov 3 11:35:42 2010 +0100 GtkSymbolicColor: Take const GdkRGBA in new_literal(). gtk/gtksymboliccolor.c | 2 +- gtk/gtksymboliccolor.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit 2efa2947be059e588adb9ae3c968e0a5edbf1978 Author: Carlos Garnacho Date: Mon Nov 1 03:58:21 2010 +0100 Document gtk_render_* functions. gtk/gtkstylecontext.c | 204 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 204 insertions(+), 0 deletions(-) commit ebf5bd390f9c8fb13379afb12eaecea66262b020 Author: Carlos Garnacho Date: Mon Nov 1 02:46:35 2010 +0100 Add gtk_render_activity() This method will render progress bars and spinners, these should handle active and inconsistent states' animation progress in order to perform animations. gtk/gtkstylecontext.c | 23 ++++++++++++ gtk/gtkstylecontext.h | 2 +- gtk/gtkthemingengine.c | 93 ++++++++++++++++++++++++++++++++++++++++++++++++ gtk/gtkthemingengine.h | 6 +++ 4 files changed, 123 insertions(+), 1 deletions(-) commit af1f8701dc70ffc7b1a62714ef9b886c1edf5ab3 Author: Carlos Garnacho Date: Mon Nov 1 02:42:08 2010 +0100 GtkThemingEngine: draw resize grip through render_handle(). GtkJunctionSides is used instead of GdkWindowEdge, GtkStyle implementation has changed to use GtkStyleContext's. gtk/gtkstyle.c | 303 ++++++++---------------------------------------- gtk/gtkthemingengine.c | 267 ++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 317 insertions(+), 253 deletions(-) commit 227294a6aa798691ec4f5ca4f84a9796657f24d1 Author: Carlos Garnacho Date: Mon Nov 1 02:37:07 2010 +0100 GtkWidget: Trigger state change transitions on state flags change. This makes state transitions automatic for non-complex widgets, complex widgets such as GtkTreeView still need to notify state updates themselves. gtk/gtkwidget.c | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 57 insertions(+), 2 deletions(-) commit c0d08ff627d6182f813d2992db0064b451d31be6 Author: Carlos Garnacho Date: Sun Oct 31 14:45:41 2010 +0100 GtkToolItemGroup: Set widget state as state flags. gtk/gtktoolitemgroup.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 1c2f27fe11776e1e65e9a31ca9f847446d0cb103 Author: Carlos Garnacho Date: Sun Oct 31 14:45:19 2010 +0100 GtkToggleButton: Set widget state as state flags. gtk/gtktogglebutton.c | 15 +++++++++------ 1 files changed, 9 insertions(+), 6 deletions(-) commit 80d1ce9f676f7eacf66a46cf749c20b840287124 Author: Carlos Garnacho Date: Sun Oct 31 14:45:01 2010 +0100 GtkRadioButton: Set widget state as state flags. gtk/gtkradiobutton.c | 22 +++++++++++++++------- 1 files changed, 15 insertions(+), 7 deletions(-) commit 517eaa55e5277cb865ed6a7a3e304c0d85163153 Author: Carlos Garnacho Date: Sun Oct 31 14:44:26 2010 +0100 GtkNotebook: Set widget state as state flags. gtk/gtknotebook.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) commit 5f0f21aad301cd396470681b6ccfb58dd93abaab Author: Carlos Garnacho Date: Sun Oct 31 14:44:09 2010 +0100 GtkMenuItem: Set widget state as state flags. gtk/gtkmenuitem.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) commit 9ae2e29f44a82f785a34c5d704bb4b3babd0f2d3 Author: Carlos Garnacho Date: Sun Oct 31 14:43:55 2010 +0100 GtkMenu: Set widget state as state flags. gtk/gtkmenu.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit 399499225e9074df0ba325bee70c8ee3e3ec1827 Author: Carlos Garnacho Date: Sun Oct 31 14:43:37 2010 +0100 GtkExpander: Set widget state as state flags. gtk/gtkexpander.c | 13 +++++++++---- 1 files changed, 9 insertions(+), 4 deletions(-) commit f7f5ac1b09de39ca5e856f86cb95fd61fe0a6662 Author: Carlos Garnacho Date: Sun Oct 31 14:43:20 2010 +0100 GtkEntry: Set widget state as state flags. gtk/gtkentry.c | 20 ++++++++++---------- 1 files changed, 10 insertions(+), 10 deletions(-) commit 0e25b19515143d6f72ee079cd896c6412db7d08e Author: Carlos Garnacho Date: Sun Oct 31 14:42:51 2010 +0100 GtkComboBox: Set widget state as state flags. gtk/gtkcombobox.c | 29 ++++++++++++----------------- 1 files changed, 12 insertions(+), 17 deletions(-) commit 401b6553078d2479e7b9e9543332de36f71e5945 Author: Carlos Garnacho Date: Sun Oct 31 14:38:26 2010 +0100 GtkButton: Set widget state as state flags. gtk/gtkbutton.c | 15 ++++++++------- 1 files changed, 8 insertions(+), 7 deletions(-) commit cd98204619f25db976fc2b8b99f2c08966aa3fbc Author: Carlos Garnacho Date: Sat Oct 30 21:48:38 2010 +0200 Implement widget states as a set of flags gtk_widget_(set|unset|get)_state_flags() has been added, using GtkStateFlags to represent the widget state. GtkStateType API has been implemented on top of the new one. docs/reference/gtk/gtk3-sections.txt | 3 + gtk/gtkmarshalers.list | 1 + gtk/gtkwidget.c | 338 ++++++++++++++++++++++++++-------- gtk/gtkwidget.h | 9 + 4 files changed, 271 insertions(+), 80 deletions(-) commit 34b91a74e5d2cde582167d4fb34b7cec09cbc5fc Author: Carlos Garnacho Date: Sat Oct 30 19:53:43 2010 +0200 Document missing value in GtkStateFlags gtk/gtkenums.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 4acc20abc142356c581dc58328fff408aed7a6b8 Author: Carlos Garnacho Date: Fri Oct 29 06:47:32 2010 +0200 s/GtkStyleSet/GtkStyleProperties/ The former name had oddities such as gtk_style_set_set() and such, so the new name is nicer in that regard and not much longer. gtk/Makefile.am | 4 +- gtk/gtk.h | 2 +- gtk/gtkcssprovider.c | 22 +- gtk/gtksettings.c | 16 +- gtk/gtkstylecontext.c | 28 +- gtk/gtkstyleproperties.c | 1076 ++++++++++++++++++++++++++++++++++++++++++++++ gtk/gtkstyleproperties.h | 115 +++++ gtk/gtkstyleprovider.c | 4 +- gtk/gtkstyleprovider.h | 10 +- gtk/gtkstyleset.c | 1076 ---------------------------------------------- gtk/gtkstyleset.h | 115 ----- gtk/gtksymboliccolor.c | 42 +- gtk/gtkthemingengine.c | 2 +- 13 files changed, 1256 insertions(+), 1256 deletions(-) commit 1bdd761c3fb9e9b5c33cbb78174b3ae5d391b83e Author: Carlos Garnacho Date: Fri Oct 29 06:01:51 2010 +0200 GtkWidget: Ensure name changes involve a style context update. gtk/gtkwidget.c | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) commit 8ea649e0a0c9e8e70883fcfc10f2141700600247 Author: Carlos Garnacho Date: Fri Oct 29 05:33:38 2010 +0200 Rely only on fg/bg colors. "foreground-color" has been renamed to just "color" as in regular CSS, and the "text-color" and "base-color" properties have been removed. The default CSS has been changed to have widgets cope with this change. gtk/gtkcssprovider.c | 68 +++++++++++++++++++---------------- gtk/gtkstyle.c | 34 ++++++++++++++---- gtk/gtkstyleset.c | 4 +-- gtk/gtkthemingengine.c | 95 ++++++++++++++---------------------------------- 4 files changed, 92 insertions(+), 109 deletions(-) commit 7de2cf3286ad7687c50ef374555ff9d4f5e0a66b Author: Carlos Garnacho Date: Fri Oct 29 05:30:36 2010 +0200 GtkCssProvider: Fix parsing of concatenated classes. Now selectors such as: GtkWidget#name.class1.class2 #name.class1.class2 .class1.class2 are parsed correctly, being meaningful for a widget defining several classes. gtk/gtkcssprovider.c | 51 +++++++++++++++++++++++++++++++++++++++++++++---- 1 files changed, 46 insertions(+), 5 deletions(-) commit a8a1d8cd01e7d4c7e710842f5a25073aa27372b7 Author: Carlos Garnacho Date: Wed Oct 27 23:23:14 2010 +0200 GtkThemingEngine: Use ::name when registering style props. gtk/gtkthemingengine.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) commit 90de318ab3c29bd3e3854b3501f372e33c35ac51 Author: Carlos Garnacho Date: Tue Oct 26 00:43:20 2010 +0200 GtkThemingEngine: Add ::name construct only property This property is to be set by theming engines, the name set will be favored over the object type name when registering custom properties, making possible something like: -Clearlooks-border: blah; gtk/gtkthemingengine.c | 114 ++++++++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 110 insertions(+), 4 deletions(-) commit c88e3bfc0c3e89bc09d4b3604fe62e4a3d11b2a5 Author: Carlos Garnacho Date: Tue Oct 26 00:16:22 2010 +0200 GtkStyleSet: Prevent from possible underflow. gtk/gtkstyleset.c | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) commit 51b742044a833e2561b90689e8203d7da7d74d1d Author: Carlos Garnacho Date: Mon Oct 25 20:44:15 2010 +0200 GtkCssProvider: Parse alpha() symbolic colors. The "alpha" symbolic color modifies a passed color's alpha by a factor, the syntax would accept things like: background-color: alpha (@bg_color, 0.8); foreground-color: alpha (shade (@fg_color, 0.8), 0.5); gtk/gtkcssprovider.c | 17 ++++++++++++++--- 1 files changed, 14 insertions(+), 3 deletions(-) commit ca44965f330bb96ee2c948869d75842191e50388 Author: Carlos Garnacho Date: Mon Oct 25 20:41:36 2010 +0200 GtkSymbolicColor: Add gtk_symbolic_color_new_alpha() This function modifies the alpha channel of a color, multiplying it by a factor. gtk/gtksymboliccolor.c | 49 +++++++++++++++++++++++++++++++++++++++++++++++- gtk/gtksymboliccolor.h | 2 + 2 files changed, 50 insertions(+), 1 deletions(-) commit 0bd81ef7109fd7110f22c3f102b0107218ccca71 Author: Carlos Garnacho Date: Mon Oct 25 13:55:56 2010 +0200 GtkCssProvider: Make default style depend more on custom colors. gtk/gtkcssprovider.c | 47 +++++++++++++++++++++++++---------------------- 1 files changed, 25 insertions(+), 22 deletions(-) commit 5310ad80704135150440bee501890655525421e8 Author: Carlos Garnacho Date: Mon Oct 25 13:55:18 2010 +0200 GtkStyle: Get to style GtkCellRendererText text. gtk/gtkstyle.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 6356f01b06045e31fdbbccf37be4dbd7a1d361e4 Author: Carlos Garnacho Date: Mon Oct 25 10:24:15 2010 +0200 GtkThemingEngine: render 0-radius frames with 3D-like 45° corner effect gtk/gtkthemingengine.c | 59 +++++++++++++++++++++++++++++++++++++++-------- 1 files changed, 49 insertions(+), 10 deletions(-) commit 43f7fb8354fd6a3c7a3d9d0bd245d6006fb74e3a Author: Carlos Garnacho Date: Sun Oct 24 00:04:34 2010 +0200 GtkThemingEngine: Clear the background for .background class gtk/gtkthemingengine.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) commit d565e15951a68bbb2ed055d964aa9ac54cf804d3 Author: Carlos Garnacho Date: Sat Oct 23 22:51:58 2010 +0200 GtkStyle: translate active state in paint_flat_box(). gtk/gtkstyle.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) commit 087249db07f77a4ea445a8d187287e0388e3e003 Author: Carlos Garnacho Date: Sat Oct 23 22:24:57 2010 +0200 GtkCssProvider: Update end string when misparsing symbolic colors. gtk/gtkcssprovider.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 7d441000f7bd2cda14382fa08dbe8f2a4f6085c5 Author: Carlos Garnacho Date: Sat Oct 23 21:40:49 2010 +0200 GtkCssProvider: Allow '\t' when parsing values. gtk/gtkcssprovider.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 4ca3b5071e577ce68ff3ceab179d187e16298578 Author: Carlos Garnacho Date: Sat Oct 23 21:40:20 2010 +0200 GtkSymbolicColor: Initialize alpha when resolving shades. gtk/gtksymboliccolor.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 975f133d63a89dc0a1d304ac825cf47383854a84 Author: Carlos Garnacho Date: Sat Oct 23 18:33:07 2010 +0200 GtkThemingEngine: Improve rendering of inset/outset borders. gtk/gtkthemingengine.c | 26 ++++++++++++++------------ 1 files changed, 14 insertions(+), 12 deletions(-) commit 39ce35dd75eca0e0f0ed2866eab1529084429d7c Author: Carlos Garnacho Date: Sat Oct 23 18:32:15 2010 +0200 GtkCssProvider: Improve default CSS. gtk/gtkcssprovider.c | 24 ++++++++++++++++++++++++ 1 files changed, 24 insertions(+), 0 deletions(-) commit 6bd086560127f450d3e258fdc22c1d38e33465b6 Author: Carlos Garnacho Date: Sat Oct 23 18:25:18 2010 +0200 GtkStyle: Handle scrollbar buttons. gtk/gtkstyle.c | 11 ++++++++++- 1 files changed, 10 insertions(+), 1 deletions(-) commit 490d59f045c2ba839cf1135f4b1fb71f2ead79e1 Author: Carlos Garnacho Date: Sat Oct 23 18:24:14 2010 +0200 Do not shade alpha values. gtk/gtksymboliccolor.c | 1 - gtk/gtkthemingengine.c | 2 +- 2 files changed, 1 insertions(+), 2 deletions(-) commit 3bfc59b9bbee6ac57b8d9bba6d3c291ba2b6af95 Author: Carlos Garnacho Date: Fri Oct 22 23:59:58 2010 +0200 GtkStyle: Match "trough" and "slider" detail strings. This is so scrollbars can be themed throught the "trough" and "slider" classes. gtk/gtkstyle.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) commit 4e02218f52080421cf40b29c82555ec95f708b40 Author: Carlos Garnacho Date: Fri Oct 22 12:41:19 2010 +0200 Use GdkRGBA all around in GtkStyleContext. gtk/gtkcssprovider.c | 27 ++++-- gtk/gtksettings.c | 4 +- gtk/gtkstyle.c | 37 +++++-- gtk/gtkstylecontext.c | 2 +- gtk/gtkstylecontext.h | 2 +- gtk/gtkstyleset.c | 26 +++--- gtk/gtkstyleset.h | 2 +- gtk/gtksymboliccolor.c | 39 ++++---- gtk/gtksymboliccolor.h | 2 +- gtk/gtkthemingengine.c | 247 ++++++++++++++++++++++++------------------------ 10 files changed, 205 insertions(+), 183 deletions(-) commit 3a455ed8f95324bdbf554935f7cff87518665c39 Author: Carlos Garnacho Date: Fri Oct 22 10:38:21 2010 +0200 GtkStyleSet: Register the border-style and border-color properties This is also implemented in the theming engine, although the default CSS should be using it in order to theme buttons, troughs, sliders and such. gtk/gtkenums.h | 6 + gtk/gtkstyleset.c | 3 + gtk/gtkthemingengine.c | 292 +++++++++++++++++++++++++----------------------- 3 files changed, 161 insertions(+), 140 deletions(-) commit 8d4ffedbf1facd3a585161ff0b37431b2f3d8d06 Author: Carlos Garnacho Date: Wed Oct 20 19:52:50 2010 +0200 GtkStyleContext: '_' prefix the structs, gtk-doc prefers this. gtk/gtkstylecontext.h | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) commit 770f050d8c749d0f293356651f0a55385de84ee9 Author: Carlos Garnacho Date: Wed Oct 20 19:33:39 2010 +0200 GtkWidgetPath: turn into a boxed type. gtk/gtkwidgetpath.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) commit c9a3da5025a40ce8b41a67f40666a9dddf4d49fa Author: Carlos Garnacho Date: Wed Oct 20 19:02:41 2010 +0200 GtkStyleContext: s/set/add/ and s/unset/remove/ for classes/regions. Several classes and regions may be set to GtkStyleContext, so rename the functions to be more intuitive. docs/reference/gtk/gtk3-sections.txt | 16 ++++---- gtk/gtknotebook.c | 4 +- gtk/gtkstyle.c | 60 +++++++++++++++++----------------- gtk/gtkstylecontext.c | 24 +++++++------- gtk/gtkstylecontext.h | 28 ++++++++-------- gtk/gtkwidgetpath.c | 4 +- 6 files changed, 68 insertions(+), 68 deletions(-) commit 161d5175e1532145d3f9c84cba4d1bdb0c2b7ee3 Author: Carlos Garnacho Date: Wed Oct 20 18:47:28 2010 +0200 GtkThemingEngine: Honor border-radius in render_background(). gtk/gtkthemingengine.c | 30 +++++++++++++++++++++++++++++- 1 files changed, 29 insertions(+), 1 deletions(-) commit f7dd4238626bbbb453edc7170d661731e4948534 Author: Carlos Garnacho Date: Wed Oct 20 18:44:48 2010 +0200 GtkStyleSet: Register the "border-radius" property gtk/gtkstyleset.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) commit 32b50f294814a97a453315839fe5109e278302b0 Author: Carlos Garnacho Date: Wed Oct 20 18:05:15 2010 +0200 GtkStyleContext: Update function declaration in header. gtk/gtkstylecontext.h | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit 0a0a1a20a7080171154ac8ae349c159967273415 Author: Carlos Garnacho Date: Wed Oct 20 18:04:39 2010 +0200 GtkCssProvider: Make it able to parse enums. gtk/gtkcssprovider.c | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) commit d03caa4683397825417412d83570cd2ebf144177 Author: Carlos Garnacho Date: Wed Oct 20 17:37:00 2010 +0200 GtkCssProvider: Run through the widget path in the correct order. Comparing a selector with a widget path was being done backwards since the change to use GtkContainer::get_path_for_child(). gtk/gtkcssprovider.c | 9 ++++----- 1 files changed, 4 insertions(+), 5 deletions(-) commit 35a41bd801bf121c2f0b7bc0287b7844daa3facb Author: Matthias Clasen Date: Wed Oct 20 13:26:27 2010 +0200 Make loading of theming engines from modules work gtk/gtkthemingengine.c | 33 ++++++++++++++++++++++++++++++--- 1 files changed, 30 insertions(+), 3 deletions(-) commit d0f681e898d0ddb6a34776ea11c42be5cac63097 Author: Carlos Garnacho Date: Tue Oct 19 18:42:00 2010 +0200 GtkStyleContext: Add gtk_style_context_new(). docs/reference/gtk/gtk3-sections.txt | 1 + gtk/gtkstylecontext.c | 23 ++++++++++++++++++++++ gtk/gtkstylecontext.h | 35 +++++++++++++++++++++++++-------- 3 files changed, 50 insertions(+), 9 deletions(-) commit c2f47063c31321212790e692215790dac8b0f01a Author: Carlos Garnacho Date: Tue Oct 19 13:00:07 2010 +0200 GtkCssProvider: Parse default/sorted region flags. gtk/gtkcssprovider.c | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) commit 4a9890e3ab133dd0ce9b727cecf014f1dd3d0866 Author: Carlos Garnacho Date: Tue Oct 19 12:59:19 2010 +0200 GtkCssProvider: Parse missing widget states. gtk/gtkcssprovider.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit 68bfb94f6962ae9f98b0f73c2536c1f2501b9ea0 Author: Carlos Garnacho Date: Tue Oct 19 12:09:23 2010 +0200 Change semantics of the methods to check whether an animation is running. It actually messed up with the state being actually set, and having a transition animation running for it. Now this dichotomy is removed, and gtk_style_context_state_is_running() only checks whether an animation is running, leaving state checking to flags & GTK_STATE_FLAG_*. docs/reference/gtk/gtk3-sections.txt | 4 +- gtk/gtkstylecontext.c | 79 ++++++++++++++-------------------- gtk/gtkstylecontext.h | 25 ++--------- gtk/gtkthemingengine.c | 54 ++++++++++++++++------- gtk/gtkthemingengine.h | 8 ++-- 5 files changed, 82 insertions(+), 88 deletions(-) commit 96c16e246c5bdb5d5ad7ecbace254b94fb109ebe Author: Carlos Garnacho Date: Tue Oct 19 11:29:18 2010 +0200 GtkStyleContext: Actually store region ID when starting an animation. gtk/gtkstylecontext.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) commit a79626b7fb7d6609f0b7a650d50683b62a987a23 Author: Carlos Garnacho Date: Tue Oct 19 10:59:46 2010 +0200 Add theming docs Both API and file format is documented, there's still missing a migration doc though. docs/reference/gtk/Makefile.am | 3 + docs/reference/gtk/gtk-docs.sgml | 9 + docs/reference/gtk/gtk3-sections.txt | 242 ++++++++++++ docs/reference/gtk/gtk3.types | 4 + gtk/gtk.h | 1 + gtk/gtkanimationdescription.h | 2 +- gtk/gtkcontainer.c | 10 + gtk/gtkcssprovider.c | 414 +++++++++++++++++++++ gtk/gtkcssprovider.h | 8 +- gtk/gtkenums.h | 31 ++ gtk/gtkstylecontext.c | 672 ++++++++++++++++++++++++++++++++- gtk/gtkstylecontext.h | 8 +- gtk/gtkstyleprovider.c | 52 +++- gtk/gtkstyleprovider.h | 14 +- gtk/gtkstyleset.c | 154 ++++++++ gtk/gtkstyleset.h | 8 +- gtk/gtksymboliccolor.c | 164 ++++++++- gtk/gtksymboliccolor.h | 4 +- gtk/gtkthemingengine.c | 211 +++++++++++- gtk/gtkthemingengine.h | 28 ++- gtk/gtkwidget.c | 19 + gtk/gtkwidgetpath.c | 383 +++++++++++++++++++- gtk/gtkwidgetpath.h | 2 +- 23 files changed, 2387 insertions(+), 56 deletions(-) commit 59b0fa81332d7ab6d30813cb86a5706ee0a734d0 Author: Carlos Garnacho Date: Wed Oct 13 00:52:50 2010 +0200 Remove GtkOrientation parameter from gtk_render_handle(). The case for paned can be guessed out from the height and width, for handlebox the orientation parameter doesn't make much sense, and this way it could also be used for resize grips. gtk/gtkstyle.c | 3 +-- gtk/gtkstylecontext.c | 5 ++--- gtk/gtkstylecontext.h | 9 +++++++-- gtk/gtkthemingengine.c | 8 +++----- gtk/gtkthemingengine.h | 3 +-- 5 files changed, 14 insertions(+), 14 deletions(-) commit e8c103f652921530aa30ab9e829bbe485deb7d85 Author: Benjamin Berg Date: Wed Oct 13 16:33:38 2010 +0200 Use cairo gobject support instead of a new boxed type. gdk/gdkcairo.c | 2 -- gdk/gdkcairo.h | 3 --- gtk/gtkcssprovider.c | 3 ++- gtk/gtkstyleset.c | 13 +++++++------ 4 files changed, 9 insertions(+), 12 deletions(-) commit 88a3c2daaeaa36c6474bd3ce745fb0b127875dac Author: Carlos Garnacho Date: Tue Oct 12 21:48:23 2010 +0200 GtkGradient: Handle symbolic gradients. The css parser has been modified to parse correctly radial gradients: background-image: -gtk-gradient (radial, center center, 0, center center, 0.8, from (#000), to (#fff)); The theming engine has been modified to correctly animate these, as well as transitions between different pattern types. gtk/gtkcssprovider.c | 232 +++++++++++++++++++++++++++--------------------- gtk/gtksymboliccolor.c | 39 ++++++++- gtk/gtksymboliccolor.h | 6 ++ gtk/gtkthemingengine.c | 150 +++++++++++++++++++++---------- 4 files changed, 272 insertions(+), 155 deletions(-) commit 2e8b1cd358207442ea8bf914d9be12ead9510f65 Author: Carlos Garnacho Date: Tue Oct 12 03:46:40 2010 +0200 Gtk9Slice: Fix stretch case. gtk/gtk9slice.c | 61 ++++++++++++++++++++++++++++++++++++------------------- gtk/gtk9slice.h | 4 +- 2 files changed, 42 insertions(+), 23 deletions(-) commit a65d0d00c003452f65273c6acc6793f1d815fa51 Author: Carlos Garnacho Date: Mon Oct 11 19:27:36 2010 +0200 GtkWidget: Store GtkStyleContext in private struct. gtk/gtkwidget.c | 69 ++++++++++++++++++++---------------------------------- 1 files changed, 26 insertions(+), 43 deletions(-) commit 5bbab9872da0ea8ebb0c08a056d5cb1770a11bfb Author: Carlos Garnacho Date: Mon Oct 11 17:58:31 2010 +0200 GtkStyleContext: Cache style properties accross class/region changes. gtk/gtkstylecontext.c | 395 ++++++++++++++++++++++++++++++++----------------- 1 files changed, 262 insertions(+), 133 deletions(-) commit 88b78953b68b01d9ac2f46b088322e4188fb9f38 Author: Carlos Garnacho Date: Mon Oct 11 00:23:40 2010 +0200 GtkContainer: Add method to get the GtkWidgetPath for a child. This is now used throughout in order to have the full path for a given widget, including intermediate named regions, the default implementation just returns the GtkContainer's path copy, no intermediate regions between. gtk/gtkcontainer.c | 22 ++++++++++ gtk/gtkcontainer.h | 5 ++ gtk/gtkstylecontext.c | 21 +++++----- gtk/gtkwidget.c | 105 +++++++++++++++++++------------------------------ gtk/gtkwidgetpath.c | 15 +++++++ gtk/gtkwidgetpath.h | 2 + 6 files changed, 95 insertions(+), 75 deletions(-) commit c575733edab533c7e36062e06a4a8a9e2382685b Author: Carlos Garnacho Date: Sat Oct 9 15:19:52 2010 +0200 GtkStyleContext: Fix animation framework to work with the new draw() semantics. Invalidation region coalescing now happens recursively as draw() runs, and the widget's x/y as now drawing coordinates are 0,0 based. gtk/gtkstylecontext.c | 9 ++++++++- gtk/gtkstylecontext.h | 4 +++- gtk/gtkwidget.c | 12 +++++++----- 3 files changed, 18 insertions(+), 7 deletions(-) commit f9788eb173e59df9671551b2ac727f5a4729fc17 Author: Carlos Garnacho Date: Fri Oct 8 18:36:46 2010 +0200 GtkCssProvider: Add support for @import rules Now other CSS files can be referenced from the currently parsed file: @import url (other-file.css); @import url (/some/file.css); gtk/gtkcssprovider.c | 173 ++++++++++++++++++++++++++++++++++++------------- 1 files changed, 127 insertions(+), 46 deletions(-) commit 0ef48c0bde29bad9ee1cbd59a4544478d00a54a5 Author: Carlos Garnacho Date: Fri Oct 8 18:32:10 2010 +0200 GtkCssProvider: no need for resetting the parser prior to parsing data This is done anyway on each iteration to parse_rule() in parse_stylesheet() gtk/gtkcssprovider.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-) commit 8e96e4e41f2e18a07c049c53389436c8eaddb38a Author: Carlos Garnacho Date: Fri Oct 8 18:27:22 2010 +0200 GtkCssProvider: improve file paths parser. It will now return a full path, and check about the file being sane. gtk/gtkcssprovider.c | 72 ++++++++++++++++++++++++++++++++++++-------------- 1 files changed, 52 insertions(+), 20 deletions(-) commit 1772b00e85d27d09d39f090e41a76f371e37d4d0 Author: Carlos Garnacho Date: Fri Oct 8 18:19:34 2010 +0200 GtkCssProvider: Transform custom colors to a @define-color rule. Given there are other rules such as @import (which will be supported), keep a sane namespace here, so for (re)defining a color name, in the CSS file it will look like: @define-color color-name #fff; @define-color other-color mix (@color-name, #f00, 0.4); gtk/gtkcssprovider.c | 68 ++++++++++++++++++++++++++++--------------------- 1 files changed, 39 insertions(+), 29 deletions(-) commit a1a90396b7ba75f315173568906adc0686551fcf Author: Carlos Garnacho Date: Fri Oct 8 18:13:14 2010 +0200 GtkThemingEngine: Do not return a const GtkThemingEngine on load() gtk/gtkthemingengine.c | 2 +- gtk/gtkthemingengine.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit 5c2cf1e934cfcdd5dccd277a9842b602fd6b674d Author: Carlos Garnacho Date: Wed Oct 6 01:04:06 2010 +0200 Plug some leaks. gtk/gtk9slice.c | 4 ++++ gtk/gtkcssprovider.c | 17 +++++++++++++---- gtk/gtksettings.c | 6 ++++-- 3 files changed, 21 insertions(+), 6 deletions(-) commit 5c8a8186715a54a3730727bc23e4cf0522bbcbcb Author: Carlos Garnacho Date: Wed Oct 6 00:53:49 2010 +0200 Fix typo in the Gtk9Slice parser. gtk/gtkcssprovider.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 5b11d14a49c2d900f2fabf193742cee09f81bd52 Author: Carlos Garnacho Date: Tue Oct 5 10:56:52 2010 +0200 GtkButton: Notify on prelight state change. gtk/gtkbutton.c | 24 ++++++++++++++++++++++++ 1 files changed, 24 insertions(+), 0 deletions(-) commit 908babd8ae6d02426c6c315a30da1783aea5a9d2 Author: Carlos Garnacho Date: Tue Oct 5 10:55:40 2010 +0200 GtkThemingEngine: Implement animations between gradients/colors. gtk/gtkthemingengine.c | 152 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 152 insertions(+), 0 deletions(-) commit d8187b34bb7238d36f698951f8ad329e6ecdad3f Author: Carlos Garnacho Date: Tue Oct 5 10:54:49 2010 +0200 GtkSymbolicColor: Use G_DEFINE_BOXED_TYPE gtk/gtksymboliccolor.c | 15 ++------------- 1 files changed, 2 insertions(+), 13 deletions(-) commit 7583f31609e923ebea8e0f8f94610cdd8517d7a3 Author: Carlos Garnacho Date: Tue Oct 5 10:54:19 2010 +0200 GtkStyleContext: Store animation region for a bunch of paint operations. gtk/gtkstylecontext.c | 20 ++++++++++++++++++++ 1 files changed, 20 insertions(+), 0 deletions(-) commit fecc07908769c3538d4a35c3cd7b89248756a0d1 Author: Carlos Garnacho Date: Tue Oct 5 10:53:09 2010 +0200 GtkStyleContext: Invalidate whole window if no invalidation region is obtained. gtk/gtkstylecontext.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) commit 20051e02eb93baa819a217bc70574e1b49865033 Author: Carlos Garnacho Date: Fri Sep 24 22:10:20 2010 +0200 GtkCssProvider: use mapped file to read CSS files. gtk/gtkcssprovider.c | 17 +++++++++++++---- 1 files changed, 13 insertions(+), 4 deletions(-) commit 80cf01c2717961d3403470446b3d2c4c16b81322 Author: Carlos Garnacho Date: Fri Sep 24 22:09:37 2010 +0200 GtkCssProvider: unset filename on load_from_data() gtk/gtkcssprovider.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) commit 96e5a0214890580a19c4bffbb94a6004ee869527 Author: Carlos Garnacho Date: Fri Sep 24 22:08:49 2010 +0200 GtkThemingEngine: Use border-image to render borders if an image is available. gtk/gtkthemingengine.c | 18 +++++++++++++++--- 1 files changed, 15 insertions(+), 3 deletions(-) commit 7ee564c7cd02c2756dd54d46bfad3caf3e82c7ac Author: Carlos Garnacho Date: Fri Sep 24 22:05:20 2010 +0200 GtkCssProvider: Add a parser for 9slice typed properties. The value it parses is similar to the border-image CSS3 property, so strings like this will be accepted: border-image: url (foo.png) 4 3 4 3 repeat repeat; the image path is relative to the parsed CSS file dirname if no absolute path is provided. gtk/gtkcssprovider.c | 205 ++++++++++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 199 insertions(+), 6 deletions(-) commit f363e31a096a60c09f7f31c0a3646b39b548fe47 Author: Carlos Garnacho Date: Fri Sep 24 22:02:39 2010 +0200 Register the border-image property It will contain a 9-sliced image, so it can be rendered as rectangles with any dimensions. gtk/gtkstyleset.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit 089f375cdb7d04fcb8ca68896a03dd65e6fe7123 Author: Carlos Garnacho Date: Fri Sep 24 21:42:18 2010 +0200 Add Gtk9Slice This is a private boxed object to contain information about a border image in order to render it in a size independent way. gtk/Makefile.am | 2 + gtk/gtk9slice.c | 351 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ gtk/gtk9slice.h | 59 +++++++++ 3 files changed, 412 insertions(+), 0 deletions(-) commit cc68e62e24f65b2ac96da6527a2913b000895fd3 Author: Carlos Garnacho Date: Wed Sep 22 23:44:06 2010 +0200 GtkSettings: Add a new provider for the theme CSS file. gtk/gtksettings.c | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 48 insertions(+), 0 deletions(-) commit ac73a8f7a8346ce7fe6ca916c438c5263701e3da Author: Carlos Garnacho Date: Wed Sep 22 23:40:59 2010 +0200 GtkStyleContext: Add gtk_style_context_reset_widgets() This function recalculates the style for all widgets on a screen. gtk/gtkstylecontext.c | 10 +++++----- gtk/gtkstylecontext.h | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) commit 679ff63d5cf582a357fa1ad14752b9f53caf4d39 Author: Carlos Garnacho Date: Wed Sep 22 23:39:15 2010 +0200 GtkCssProvider: Add gtk_css_provider_get_named() This functions loads a CSS file from a installed theme. gtk/gtkcssprovider.c | 74 +++++++++++++++++++++++++++++++++++++++++++++++-- gtk/gtkcssprovider.h | 2 + 2 files changed, 73 insertions(+), 3 deletions(-) commit a07fe2c0e6d2dae404da866f741bd41fb833e52e Author: Carlos Garnacho Date: Sat Sep 11 12:48:27 2010 +0200 Add generic providers per-screen. The providers are added as soon as gtk GtkSettings object for the screen is created. gtk/gtksettings.c | 44 +++++++++++++++++++++++++++++++++++++++++++- gtk/gtkwidget.c | 36 ------------------------------------ 2 files changed, 43 insertions(+), 37 deletions(-) commit 1e66155aec1964bc441a10e30a49b9441f2c8b3a Author: Carlos Garnacho Date: Sat Sep 11 12:47:31 2010 +0200 GtkStyleContext: invalidate context when setting the screen gtk/gtkstylecontext.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit 8dfa0e03eac790398e6e05ca99238731fc7a7dea Author: Carlos Garnacho Date: Sat Sep 11 12:45:42 2010 +0200 GtkWidget: Set style context's screen before the widget_path. This is so the style context has all necessary information before triggering a style change on setting the path. gtk/gtkwidget.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) commit 49ac732a184136b759b65eaaa56e5fef11df7e2b Author: Carlos Garnacho Date: Sat Sep 11 12:42:35 2010 +0200 GtkStyleContext: Add gtk_style_context_[add|remove]_provider_for_screen() These functions allow per-screen style providers. also, the changed signal will be emitted whenever a style context changes. gtk/gtkstylecontext.c | 233 ++++++++++++++++++++++++++++++++++++------------- gtk/gtkstylecontext.h | 6 ++ 2 files changed, 178 insertions(+), 61 deletions(-) commit f23970409448c8937491caaea1765b52d4b04c24 Author: Carlos Garnacho Date: Sat Sep 11 12:40:31 2010 +0200 GtkWidget: Add gtk_widget_reset_style(). This function is analogous to gtk_widget_reset_rc_styles(), updates style recursively on a widget. gtk/gtkwidget.c | 22 +++++++++++++++++++--- gtk/gtkwidget.h | 2 ++ 2 files changed, 21 insertions(+), 3 deletions(-) commit 3c390c9c8e2889f38b9a11d98b7e33b2b9e573ca Author: Carlos Garnacho Date: Sat Sep 11 12:36:54 2010 +0200 GtkWidget: Add the style-updated signal This signal is emitted whenever the widget's style changes. gtk/gtkwidget.c | 34 ++++++++++++++++++++++++++++++++++ gtk/gtkwidget.h | 2 ++ 2 files changed, 36 insertions(+), 0 deletions(-) commit 77ccdfc94e721d8b1d27b2a718e1b376d38ecaa0 Author: Carlos Garnacho Date: Sat Sep 11 12:10:50 2010 +0200 GtkStyle: Protect against padding being NULL gtk/gtkstyle.c | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) commit 9f84e101bf150a85f82e15c56130b1f98b8fdbf0 Author: Carlos Garnacho Date: Sat Sep 11 12:18:26 2010 +0200 GtkStyleContext: Add gtk_style_context_invalidate(). This function will regenerate all styling information. gtk/gtkstylecontext.c | 47 ++++++++++++++++++++++++++++++++++++++++++++++- gtk/gtkstylecontext.h | 5 +++++ 2 files changed, 51 insertions(+), 1 deletions(-) commit 756bbf526f60e8007f21375a0c9bc97586afeb82 Author: Carlos Garnacho Date: Sat Sep 11 12:10:25 2010 +0200 GtkStyleSet: Fix typo gtk/gtkstyleset.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 58b6e538c97afc7a21c430e8d8e6f4879a14b574 Author: Carlos Garnacho Date: Thu Sep 2 02:14:10 2010 +0200 GtkThemingEngine: use background-image in render_background() gtk/gtkthemingengine.c | 52 +++++++++++++++++++++++++++++++++-------------- 1 files changed, 36 insertions(+), 16 deletions(-) commit 2794e8d6ddb0b78f11c9abd91ba6880fbdd6f442 Author: Carlos Garnacho Date: Thu Sep 2 02:12:26 2010 +0200 GtkStyleSet: Register a "background-image" property. Ironically, it currently just handles gradients, the name is to conform to current CSS gradient implementation trends. gtk/gtkstyleset.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit cf87923d1bc3ef1e5fad75b969b91c64f6f56840 Author: Carlos Garnacho Date: Thu Sep 2 02:11:12 2010 +0200 GtkStyleSet: Handle GtkGradients as a replacement for cairo_pattern_t The former will handle GtkSymbolicColors, which will be resolved and cached at query time. gtk/gtkstyleset.c | 37 +++++++++++++++++++++++++++++++++++++ 1 files changed, 37 insertions(+), 0 deletions(-) commit 3fc5c87bcb4505a4d63e2163d1e2e1c6775cc0f1 Author: Carlos Garnacho Date: Thu Sep 2 02:06:05 2010 +0200 GtkCssProvider: Add a parser for gradients. gtk/gtkcssprovider.c | 246 +++++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 244 insertions(+), 2 deletions(-) commit 142a72637dc996be7f45462b8e2a5e379e54019b Author: Carlos Garnacho Date: Thu Sep 2 02:01:01 2010 +0200 Add GtkGradient. This type defines a gradient between 2 symbolic colors, with any number of color stop between these. At the moment it has been put besides GtkSymbolicColor, although should be completely private, it will likely need extending in the future for radial gradients. At some point, it maybe should also be used for images, so painting both a gradient and an image is consistent. gtk/gtkstyleset.h | 3 + gtk/gtksymboliccolor.c | 132 ++++++++++++++++++++++++++++++++++++++++++++++++ gtk/gtksymboliccolor.h | 16 ++++++- 3 files changed, 150 insertions(+), 1 deletions(-) commit 74de1839a4ebf88a22e6e21bcf2ad8403ca5d31d Author: Carlos Garnacho Date: Thu Sep 2 01:58:48 2010 +0200 GtkStyleSet: Set an empty default_value if none is provided. gtk/gtkstyleset.c | 37 +++++++++++++------------------------ 1 files changed, 13 insertions(+), 24 deletions(-) commit c908e263ac8b76b3ad5819f41919a177df33525c Author: Carlos Garnacho Date: Thu Sep 2 01:49:59 2010 +0200 GtkCssProvider: strip whitespaces in symbolic color values. gtk/gtkcssprovider.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) commit f12d7409cc1273781ec3b15a10e76fdba941ce11 Author: Carlos Garnacho Date: Thu Sep 2 01:48:24 2010 +0200 Allow linefeeds in property values. gtk/gtkcssprovider.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 02a30118c6110bc7906602adf1c38622d520f7de Author: Carlos Garnacho Date: Thu Sep 2 01:45:17 2010 +0200 Add a boxed type for cairo_pattern_t. gdk/gdkcairo.c | 2 ++ gdk/gdkcairo.h | 3 +++ 2 files changed, 5 insertions(+), 0 deletions(-) commit 621a95f515a97ff19f62db9d0aa561ee73276bd9 Author: Carlos Garnacho Date: Mon Aug 30 22:41:12 2010 +0200 GtkSettings: implement GtkStyleProvider gtk/gtksettings.c | 76 +++++++++++++++++++++++++++++++++++++++++++++++- gtk/gtkstyleprovider.h | 5 ++- gtk/gtkwidget.c | 6 ++++ 3 files changed, 84 insertions(+), 3 deletions(-) commit 58a51bca97ff8c366ef1f85353518b642c95fe8a Author: Carlos Garnacho Date: Mon Aug 30 22:39:47 2010 +0200 GtkStyle: Fill in x/ythickness and font_desc from the style context. gtk/gtkcssprovider.c | 1 + gtk/gtkstyle.c | 14 +++++++++++++- 2 files changed, 14 insertions(+), 1 deletions(-) commit 643abe312793ad45470e0a87fea792fa7b246eda Author: Carlos Garnacho Date: Mon Aug 30 22:35:30 2010 +0200 GtkStyleSet: Register "margin" property. gtk/gtkstyleset.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 585afafa39a3b2c6a40661f015e195d5b15a9c75 Author: Carlos Garnacho Date: Mon Aug 30 22:34:31 2010 +0200 Add basic parser for GtkBorder properties. Different units aren't supported, it takes 1 to 4 integers representing pixel distances. gtk/gtkcssprovider.c | 37 +++++++++++++++++++++++++++++++++++++ 1 files changed, 37 insertions(+), 0 deletions(-) commit 846f67d805316c8af0b8ce16a268b8a8868c3467 Author: Carlos Garnacho Date: Mon Aug 23 18:00:31 2010 +0200 GtkStyle: Allow GTK_ARROW_NONE. gtk/gtkstyle.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) commit 7e7347d1a072d553568b973985b3451e1d54b3c7 Author: Carlos Garnacho Date: Mon Aug 23 18:00:06 2010 +0200 GtkNotebook: invert tab drawing order so region flags are set correctly. gtk/gtknotebook.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 78a98decaee9a5ee05f2abcc8481b84d0a72bc1a Author: Carlos Garnacho Date: Fri Aug 20 14:58:54 2010 +0200 Get rid of GdkPangoRenderer code in GtkThemingEngine. gtk/gtkthemingengine.c | 179 ++++++++++-------------------------------------- 1 files changed, 36 insertions(+), 143 deletions(-) commit f058359182a7ba7c07eec807c5bb0530aeaf541b Author: Carlos Garnacho Date: Fri Aug 20 14:09:30 2010 +0200 Replace GdkRegion and GdkRectangle with their cairo counterparts. gtk/gtkstylecontext.c | 22 +++++++++++----------- 1 files changed, 11 insertions(+), 11 deletions(-) commit c9d626523d103977eddf98f9e383bb2043c1371c Author: Carlos Garnacho Date: Fri Aug 20 13:56:30 2010 +0200 Remove gtkalias from style context code. gtk/gtkcssprovider.c | 5 ----- gtk/gtkstylecontext.c | 5 ----- gtk/gtkstyleprovider.c | 5 ----- gtk/gtkstyleset.c | 5 ----- gtk/gtksymboliccolor.c | 3 --- gtk/gtkthemingengine.c | 5 ----- gtk/gtktimeline.c | 3 --- gtk/gtkwidgetpath.c | 3 --- 8 files changed, 0 insertions(+), 34 deletions(-) commit 9dfba95f095667b425a8f676c48c5749ab6c4c18 Author: Carlos Garnacho Date: Fri Aug 20 11:50:39 2010 +0200 GtkCssProvider: Add gtk_css_provider_load_from_path() gtk/gtkcssprovider.c | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++ gtk/gtkcssprovider.h | 3 ++ 2 files changed, 63 insertions(+), 0 deletions(-) commit 0ce649e965560863d585393f70c7212a4f9cffbc Author: Carlos Garnacho Date: Fri Aug 20 01:16:40 2010 +0200 Plug a bunch of leaks. gtk/gtkstyle.c | 2 +- gtk/gtkstylecontext.c | 257 ++++++++++++++++++++++++++---------------------- gtk/gtkstyleset.c | 1 + gtk/gtksymboliccolor.c | 25 +++++ gtk/gtkthemingengine.c | 6 + gtk/gtkwidget.c | 1 + gtk/gtkwidgetpath.c | 3 + 7 files changed, 175 insertions(+), 120 deletions(-) commit 91904f6778b40fd4cacf6efbdc7b6a25421ec0e0 Author: Carlos Garnacho Date: Thu Aug 19 22:47:44 2010 +0200 GtkButton: Notify on active state when (un)depressed gtk/gtkbutton.c | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) commit 9b949479b377f316d0c1d5102fdeab2218b51d97 Author: Carlos Garnacho Date: Thu Aug 19 22:47:02 2010 +0200 GtkThemingEngine: Animate checkboxes activation. gtk/gtkthemingengine.c | 61 ++++++++++++++++++++++++++++------------------- 1 files changed, 36 insertions(+), 25 deletions(-) commit 7519ed278b5f100d08fe95d88defb428da9af6a1 Author: Carlos Garnacho Date: Thu Aug 19 22:45:22 2010 +0200 GtkThemingEngine: Add progress arg to gtk_theming_engine_is_state_set() gtk/gtkthemingengine.c | 15 ++++++++------- gtk/gtkthemingengine.h | 3 ++- 2 files changed, 10 insertions(+), 8 deletions(-) commit 3c07e3d3dfbd8b7b6281198868dcd6f944b77f6e Author: Carlos Garnacho Date: Thu Aug 19 22:42:16 2010 +0200 GtkWidget: Update GtkStyleContext animation regions on allocation change. gtk/gtkwidget.c | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) commit 61a0544b8be39cfdcac6d3fb831115dfb6bc2bf8 Author: Carlos Garnacho Date: Thu Aug 19 22:35:42 2010 +0200 GtkStyleContext: Add animation machinery. Animation regions are confined through gtk_style_context_[push|pop]_animatable_region, anything that's painted between these calls will be invalidated if an animation starts for any of the regions in the stack. gtk_style_context_notify_state_change() may be called from widgets to indicate a change for a given GtkStateType, in that case an animation will be started if there is an animation description for the widget/state. gtk/gtkstylecontext.c | 439 +++++++++++++++++++++++++++++++++++++++++++++++- gtk/gtkstylecontext.h | 29 +++- gtk/gtkthemingengine.c | 2 +- 3 files changed, 459 insertions(+), 11 deletions(-) commit bbd0c5a2a24f55d2a340fbeb4f1b8c79e58e3c47 Author: Carlos Garnacho Date: Thu Aug 19 22:00:04 2010 +0200 GtkStyleContext: Declare gtk_style_context_list_classes() in header. gtk/gtkstylecontext.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit 52baa7d51e09d32ea2fe10c46757d1125a2e5190 Author: Carlos Garnacho Date: Thu Aug 19 21:50:19 2010 +0200 GtkCssProvider: Parse properties of type GtkAnimationDescription. gtk/gtkcssprovider.c | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) commit 114f30b7726c17b1c3851fdd53c22dd2b3922e84 Author: Carlos Garnacho Date: Thu Aug 19 21:49:22 2010 +0200 GtkStyleSet: Register the "transition" property. gtk/gtkstyleset.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) commit ed840e73e43714650844b13e3de5944335866a63 Author: Carlos Garnacho Date: Thu Aug 19 21:45:30 2010 +0200 Add GtkAnimationDescription as a private boxed object. This struct will be used to represent an animation in GtkStyleSet. It will only be used internally in GtkStyleContext in order to trigger animations, engines shouldn't need this. gtk/Makefile.am | 2 + gtk/gtkanimationdescription.c | 123 +++++++++++++++++++++++++++++++++++++++++ gtk/gtkanimationdescription.h | 47 ++++++++++++++++ 3 files changed, 172 insertions(+), 0 deletions(-) commit 2e2c07b695dfeeccd75b1bf5181bc45b2ba489ec Author: Carlos Garnacho Date: Thu Aug 19 21:40:41 2010 +0200 Add GtkTimeline as a private object. This will only be used internally by GtkStyleContext in order to animate state changes. When a proper animation framework is introduced in GTK+, it may be ditched. gtk/Makefile.am | 2 + gtk/gtktimeline.c | 738 +++++++++++++++++++++++++++++++++++++++++++++++++++++ gtk/gtktimeline.h | 117 +++++++++ 3 files changed, 857 insertions(+), 0 deletions(-) commit 4781f94de258b9a3d6aa244626a30ffbbf529dfd Author: Carlos Garnacho Date: Mon Aug 16 19:09:34 2010 +0200 Move all theming stack to use GtkStateFlags. This support goes from the theming engines, which are able to retrieve style for different combined states to the CSS provider, where several state pseudo-classes may be specified, such as: GtkButton:active:prelight {} gtk/gtkcssprovider.c | 152 ++++++++++++++-------- gtk/gtkstylecontext.c | 11 +- gtk/gtkstylecontext.h | 6 +- gtk/gtkstyleset.c | 338 ++++++++++++++++++++++++++++++------------------ gtk/gtkstyleset.h | 45 +++---- gtk/gtkthemingengine.c | 141 +++------------------ gtk/gtkthemingengine.h | 6 +- 7 files changed, 354 insertions(+), 345 deletions(-) commit 2c7c4d9a513f8ddb80093cf7f2ed52095cc59b06 Author: Carlos Garnacho Date: Mon Aug 16 19:08:11 2010 +0200 GtkStyleContext: Return insertion position if not found when matching classes/regions gtk/gtkstylecontext.c | 40 ++++++++++++++++++++++++---------------- 1 files changed, 24 insertions(+), 16 deletions(-) commit 11ac0cb3e16c159ac0a920cadfe2015784f13ed2 Author: Carlos Garnacho Date: Mon Aug 16 18:40:03 2010 +0200 GtkStyle: set the active flag depending on shadow_type in draw_box(). gtk/gtkstyle.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit bccec3ef0c46d0426c7f7f4cfbe72a3142b1854a Author: Carlos Garnacho Date: Fri Aug 6 12:09:09 2010 +0200 GtkCssProvider: Use class for tooltips. gtk/gtkcssprovider.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 74697d91fe3d5e077fd12ee0c22a6d64585071fd Author: Carlos Garnacho Date: Fri Aug 6 12:08:48 2010 +0200 GtkCssProvider: Parse and match class info. gtk/gtkcssprovider.c | 55 +++++++++++++++++++++++++++++++++++++++++++------ 1 files changed, 48 insertions(+), 7 deletions(-) commit 27c91622f63b31928066ed269a2df12b0c4975fb Author: Carlos Garnacho Date: Fri Aug 6 12:06:29 2010 +0200 Set classes info in GtkWidgetPath. gtk/gtkstylecontext.c | 35 ++++++++++++++++++++++++++++++++--- gtk/gtkwidget.c | 42 +++++++++++++++++++++++++++++------------- 2 files changed, 61 insertions(+), 16 deletions(-) commit 2dabf20cfd1193baec6082ec90c5d723bb010ad4 Author: Carlos Garnacho Date: Fri Aug 6 12:05:42 2010 +0200 GtkStyleContext: Add gtk_style_context_list_classes(). gtk/gtkstylecontext.c | 26 ++++++++++++++++++++++++++ 1 files changed, 26 insertions(+), 0 deletions(-) commit 8a1b6e8224c8c36c96d37adfdf119989ae7ba1cb Author: Carlos Garnacho Date: Fri Aug 6 11:59:35 2010 +0200 GtkWidgetPath: Add methods to include class info in paths. gtk/gtkwidgetpath.c | 180 +++++++++++++++++++++++++++++++++++++++++++++++++++ gtk/gtkwidgetpath.h | 19 +++++- 2 files changed, 198 insertions(+), 1 deletions(-) commit a3637ec60d9281f1b903ae48786184d690b0f055 Author: Carlos Garnacho Date: Thu Aug 5 11:08:51 2010 +0200 s/child class/region/ everywhere. "Child class" is an invented term anyway, and it conceptually defines identifiable regions in widgets. gtk/gtkcssprovider.c | 34 +++++++++--------- gtk/gtkenums.h | 14 ++++---- gtk/gtknotebook.c | 16 ++++---- gtk/gtkstyle.c | 20 +++++----- gtk/gtkstylecontext.c | 94 +++++++++++++++++++++++------------------------- gtk/gtkstylecontext.h | 20 +++++----- gtk/gtkthemingengine.c | 8 ++-- gtk/gtkthemingengine.h | 10 +++--- gtk/gtkwidget.c | 6 ++-- gtk/gtkwidgetpath.c | 12 +++--- gtk/gtkwidgetpath.h | 8 ++-- 11 files changed, 119 insertions(+), 123 deletions(-) commit 198d75bea5065adb40db20db46d0fc581110d4db Author: Carlos Garnacho Date: Thu Aug 5 11:28:15 2010 +0200 GtkStyleContext: Rename internal struct. GtkStyleRegion has been renamed to GtkStyleInfo, as it doesn't really have much to do with regions itself, the information it contains does. This struct is used in save/restore. gtk/gtkstylecontext.c | 169 ++++++++++++++++++++++++------------------------- 1 files changed, 84 insertions(+), 85 deletions(-) commit e04dfd4d6de0071f1029120868757ab178b4e18e Author: Carlos Garnacho Date: Wed Aug 4 17:51:19 2010 +0200 GtkThemingEngine: Add gtk_theming_engine_register_property(). This function may be used for custom property registration from theming engines. The property names will have the -${engine-type-name}-${prop-name} format, the parser has been modified to allow properties with '-' as the first char. gtk/gtkcssprovider.c | 32 ++++++++++++++++++++------------ gtk/gtkthemingengine.c | 19 +++++++++++++++++++ gtk/gtkthemingengine.h | 6 ++++++ 3 files changed, 45 insertions(+), 12 deletions(-) commit d9e3782391a7eebe76743b4bd335d2857ed52d02 Author: Carlos Garnacho Date: Wed Aug 4 17:50:52 2010 +0200 GtkStyleSet: Fix compiler warning. gtk/gtkstyleset.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) commit 355f0d69ab2c45ce7356361c6d957fd35acab854 Author: Carlos Garnacho Date: Wed Aug 4 17:49:15 2010 +0200 GtkStyleSet: Allow custom parsers on registered properties. gtk/gtkcssprovider.c | 13 +++++++++++-- gtk/gtkstyleset.c | 35 ++++++++++++++++++++++------------- gtk/gtkstyleset.h | 16 +++++++++++----- 3 files changed, 44 insertions(+), 20 deletions(-) commit 99224c9eecdeb813206c15fd2a618e214765f4b9 Author: Carlos Garnacho Date: Wed Aug 4 14:51:01 2010 +0200 GtkCssProvider: Parse correctly widget types with a name. There's now a distinction between: GtkLabel#label-name: Label with name "label-name" GtkWindow #label-name: Window containing a widget named "label-name" gtk/gtkcssprovider.c | 34 ++++++++++++++++++++++++++++------ 1 files changed, 28 insertions(+), 6 deletions(-) commit 56e4ffabea547d2ea9ffa90c5bc9e0aece40749c Author: Carlos Garnacho Date: Wed Aug 4 13:11:50 2010 +0200 Compare widget names as GQuarks in style matching. gtk/gtkcssprovider.c | 8 +------- gtk/gtkwidgetpath.c | 45 ++++++++++++++++++++++++++++++++++++++------- gtk/gtkwidgetpath.h | 16 +++++++++++----- 3 files changed, 50 insertions(+), 19 deletions(-) commit 09d8592b5bc722cdfe6164929ec2f02943b0379c Author: Carlos Garnacho Date: Wed Aug 4 12:50:37 2010 +0200 GtkWidgetPath: Make API more consistent. gtk/gtkcssprovider.c | 4 ++-- gtk/gtkwidgetpath.c | 20 ++++++++++---------- gtk/gtkwidgetpath.h | 20 ++++++++++---------- 3 files changed, 22 insertions(+), 22 deletions(-) commit ad08330fae98a6d42a590d5320faf351e136f746 Author: Carlos Garnacho Date: Wed Aug 4 12:19:23 2010 +0200 Compare region names as quarks in style matching. gtk/gtkcssprovider.c | 8 ++--- gtk/gtkwidgetpath.c | 67 +++++++++++++++++++++++++++++++++++--------------- gtk/gtkwidgetpath.h | 4 +++ 3 files changed, 54 insertions(+), 25 deletions(-) commit d47d3d0200aed673d2a9bb1180fd9b9fdfa5087e Author: Carlos Garnacho Date: Wed Aug 4 11:46:01 2010 +0200 GtkCssProvider: Set child combinators in default CSS. gtk/gtkcssprovider.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 5f77ead9c6d818962a8296dd3cc1ed24e741b9b8 Author: Carlos Garnacho Date: Wed Aug 4 11:44:32 2010 +0200 GtkCssProvider: Parse and compare widget names. gtk/gtkcssprovider.c | 49 +++++++++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 47 insertions(+), 2 deletions(-) commit 52878c45b5303291be355232d2567f822b18529a Author: Carlos Garnacho Date: Wed Aug 4 11:43:18 2010 +0200 GtkCssProvider: Don't jump too eagerly to the next element when comparing selectors. gtk/gtkcssprovider.c | 15 ++++++++++++++- 1 files changed, 14 insertions(+), 1 deletions(-) commit 85dbc719215f4a1d9fcff8aeeabf26262144f6d6 Author: Carlos Garnacho Date: Wed Aug 4 11:42:08 2010 +0200 GtkCssProvider: Immediately bail out if GType couldn't be resolved. gtk/gtkcssprovider.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) commit 9ebbc7b5c5eea7499cb60e89502f02b7cfb0b2ad Author: Carlos Garnacho Date: Wed Aug 4 11:36:21 2010 +0200 GtkCssProvider: Small optimization. gtk/gtkcssprovider.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) commit c001833ed172a4057a1e52f2630b20a791a646a1 Author: Sven Herzberg Date: Thu Aug 5 16:21:47 2010 +0200 GtkCssProvider: don't ignore custom attributes * gtk/gtkcssprovider.c: don't ignore custom attribites (which can be added by theme engines) gtk/gtkcssprovider.c | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) commit 27bc581dca3bdabcbfe708dfbb0eec64db016b6f Author: Sven Herzberg Date: Thu Aug 5 16:21:12 2010 +0200 GtkWidgetPath: properly use const * gtk/gtkwidgetpath.c, * gtk/gtkwidgetpath.h: use const where possible gtk/gtkwidgetpath.c | 22 +++++++++++----------- gtk/gtkwidgetpath.h | 26 +++++++++++++------------- 2 files changed, 24 insertions(+), 24 deletions(-) commit b6226cb7b943be3ffc13cceca328f840b1c85def Author: Carlos Garnacho Date: Tue Aug 3 20:38:23 2010 +0200 GtkThemingEngine: Render correctly spinbutton buttons. gtk/gtkthemingengine.c | 19 +++++++++++++++++-- 1 files changed, 17 insertions(+), 2 deletions(-) commit dd8da82d1e4f72d325b99b8a481fedf9f6cbc991 Author: Carlos Garnacho Date: Tue Aug 3 20:37:53 2010 +0200 GtkStyle: set junction details in spinbutton buttons. gtk/gtkstyle.c | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) commit 8c117b1638827fd34d51cb8f6deca31fa7caeedf Author: Carlos Garnacho Date: Tue Aug 3 20:36:09 2010 +0200 GtkThemingEngine: Add gtk_theming_engine_get_junction_sides(). gtk/gtkthemingengine.c | 11 +++++++++++ gtk/gtkthemingengine.h | 2 ++ 2 files changed, 13 insertions(+), 0 deletions(-) commit 9108739c9b8ed9940eb0fcd259854df3486f29fc Author: Carlos Garnacho Date: Tue Aug 3 20:33:53 2010 +0200 GtkStyleContext: Add gtk_style_context_[gs]et_junction_sides(). These functions will help widgets specify how does one element being painted relate to other contiguous elements. gtk/gtkstylecontext.c | 31 +++++++++++++++++++++++++++++++ gtk/gtkstylecontext.h | 4 ++++ 2 files changed, 35 insertions(+), 0 deletions(-) commit d9b42ce50fd36020f29319707351e7fb61240b71 Author: Carlos Garnacho Date: Tue Aug 3 20:32:25 2010 +0200 Add GtkJunctionSides flags. gtk/gtkenums.h | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) commit 143c4b3b60014891ff43ef00e781bd90b4b19b47 Author: Carlos Garnacho Date: Tue Aug 3 20:30:26 2010 +0200 GtkStyleContext: Add gtk_style_context_lookup_color(). gtk_style_lookup_color() now uses this function internally. gtk/gtkstyle.c | 18 +++--------------- gtk/gtkstylecontext.c | 21 +++++++++++++++++++++ gtk/gtkstylecontext.h | 3 +++ 3 files changed, 27 insertions(+), 15 deletions(-) commit b4a24d64576d1cb4d0bfe9b0d4c6858b96d2a469 Author: Carlos Garnacho Date: Tue Aug 3 20:29:07 2010 +0200 GtkStyleSet: Register the "border" property. gtk/gtkstyleset.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 78cc97f7b36a10a4ea7751ffd83dcbd913656975 Author: Carlos Garnacho Date: Tue Aug 3 20:27:32 2010 +0200 GtkThemingEngine: fix typo in function declaration. gtk/gtkthemingengine.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit fcf12ff9b98ef2e39a02354d00cb688c41a7d6ae Author: Carlos Garnacho Date: Tue Aug 3 20:26:53 2010 +0200 GtkThemingEngine: Add gtk_theming_engine_get_direction(). gtk/gtkthemingengine.c | 11 +++++++++++ gtk/gtkthemingengine.h | 2 ++ 2 files changed, 13 insertions(+), 0 deletions(-) commit 978d97ea6f3b539f5fa20d2944b27d32328f2393 Author: Carlos Garnacho Date: Mon Aug 2 17:24:27 2010 +0200 GtkWidget: Set style context direction. gtk/gtkwidget.c | 18 ++++++++++++++++-- 1 files changed, 16 insertions(+), 2 deletions(-) commit dc216ffb001011c901d0cf08d5d67d0e87a6f43a Author: Carlos Garnacho Date: Mon Aug 2 17:18:53 2010 +0200 GtkStyleContext: Add gtk_style_context_[gs]et_direction(). gtk/gtkstylecontext.c | 47 ++++++++++++++++++++++++++++++++++++++++++++++- gtk/gtkstylecontext.h | 4 ++++ 2 files changed, 50 insertions(+), 1 deletions(-) commit e15dc89f897d44c76665ea7b4415308096acfea4 Author: Carlos Garnacho Date: Mon Aug 2 16:16:50 2010 +0200 GtkWidget: Add the default CSS provider to all style contexts. gtk/gtkwidget.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) commit 85398fc05fb0004bf1b855628402a736f4e9c1dd Author: Carlos Garnacho Date: Mon Aug 2 16:16:03 2010 +0200 GtkCssProvider: Add gtk_css_provider_get_default(). This method returns a GtkCssProvider with the default style information loaded. gtk/gtkcssprovider.c | 75 ++++++++++++++++++++++++++++++++++++++++++++++++++ gtk/gtkcssprovider.h | 3 ++ 2 files changed, 78 insertions(+), 0 deletions(-) commit bd6751230a577356b51170b44a2466360161743f Author: Carlos Garnacho Date: Mon Aug 2 16:15:06 2010 +0200 GtkStyle: Move gtk_render_* calls to default vmethod implementations. gtk/gtkstyle.c | 2652 ++++++++++++++++---------------------------------------- 1 files changed, 741 insertions(+), 1911 deletions(-) commit 9255e20bf8872e3873bfeb2fd9d06d476513daff Author: Carlos Garnacho Date: Mon Aug 2 16:14:17 2010 +0200 GtkWidget: Create GtkStyle on top of GtkStyleContext. gtk/gtkwidget.c | 16 +++++++++++++++- 1 files changed, 15 insertions(+), 1 deletions(-) commit 6c549fecd3006b435be9d25eae1f8cabbc66efa5 Author: Carlos Garnacho Date: Mon Aug 2 16:11:40 2010 +0200 GtkWidget: Construct style for partial widget hierarchies. Some unparented widgets like to ask style details, so now the style is constructed regardless of the parent being present or not, and then reconstructed if the parent changes. gtk/gtkwidget.c | 17 ++++++----------- 1 files changed, 6 insertions(+), 11 deletions(-) commit 09d6c4ea52b662edd867e825dff96fcace1604c2 Author: Carlos Garnacho Date: Mon Aug 2 16:05:58 2010 +0200 GtkStyle: Optionally construct above a GtkStyleContext. gtk/gtkstyle.c | 158 +++++++++++++++++++++++++++++++++++++++++++++++++++----- gtk/gtkstyle.h | 4 ++ 2 files changed, 148 insertions(+), 14 deletions(-) commit 1e83e52b3d58b5bda9b43d0c2c98d94dcaa9f030 Author: Carlos Garnacho Date: Mon Aug 2 15:52:26 2010 +0200 GtkThemingEngine: Add code to render GtkFrame frame with gap. gtk/gtkthemingengine.c | 140 +++++++++++++++++++++++++++++++++++------------- 1 files changed, 103 insertions(+), 37 deletions(-) commit d858801ec38ea9c6ffd4c0d670a358212dc3fa5e Author: Carlos Garnacho Date: Mon Aug 2 15:51:23 2010 +0200 GtkThemingEngine: Obey active/selected when rendering text. gtk/gtkthemingengine.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) commit 5510f24cc11c4fe1ce01b615000c6e4c51d20702 Author: Carlos Garnacho Date: Mon Aug 2 15:50:37 2010 +0200 GtkThemingEngine: Rip out focus rendering from old code. gtk/gtkthemingengine.c | 56 ++++++++++++++++++++++++++++++++++++++--------- 1 files changed, 45 insertions(+), 11 deletions(-) commit eadaded37433e7cbba8148d96fd5f8cc49026136 Author: Carlos Garnacho Date: Mon Aug 2 15:49:45 2010 +0200 GtkThemingEngine: Rip out expander rendering from old code. gtk/gtkthemingengine.c | 72 ++++++++++++++++++++++++++++++++++++++++++++--- 1 files changed, 67 insertions(+), 5 deletions(-) commit d22f393be3d8c8b293b6296bb772083e3daadbc3 Author: Carlos Garnacho Date: Mon Aug 2 15:48:31 2010 +0200 GtkThemingEngine: Render frames and spinbutton boxes properly. gtk/gtkthemingengine.c | 44 +++++++++++++++++++++++++++++--------------- 1 files changed, 29 insertions(+), 15 deletions(-) commit 7482b636e6ec72c8a2f2601cd2e53fc4aa89b833 Author: Carlos Garnacho Date: Mon Aug 2 15:46:08 2010 +0200 GtkThemingEngine: Improve background rendering. Now active and selected states are taken into account, and GtkSpinButton buttons are special cased. gtk/gtkthemingengine.c | 13 +++++++++++-- 1 files changed, 11 insertions(+), 2 deletions(-) commit 911431c0b21e5ab9a7d592d4112afc5767aacc59 Author: Carlos Garnacho Date: Mon Aug 2 15:45:13 2010 +0200 GtkThemingEngine: Improve pixel alignment in arrows. gtk/gtkthemingengine.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit c18ee462e376f271b23d23b2a5a1f683ad9ab619 Author: Carlos Garnacho Date: Mon Aug 2 15:33:20 2010 +0200 GtkThemingEngine: Add methods to retrieve widget style properties. gtk/gtkthemingengine.c | 42 ++++++++++++++++++++++++++++++++++++++++++ gtk/gtkthemingengine.h | 9 +++++++++ 2 files changed, 51 insertions(+), 0 deletions(-) commit 0dc81b9a35c982444a47c4097211e2254d711511 Author: Carlos Garnacho Date: Mon Aug 2 15:26:41 2010 +0200 GtkStyleSet: Allow setting default value when registering properties. This is now used for the "engine" keyword, where the default engine is used if none is specified. gtk/gtkstyleset.c | 58 ++++++++++++++++++++++++++++++++++++++++------------ gtk/gtkstyleset.h | 3 +- 2 files changed, 46 insertions(+), 15 deletions(-) commit c71248091218455c17939cfe0d82a6fe20d4158e Author: Carlos Garnacho Date: Mon Aug 2 13:58:16 2010 +0200 GtkStyleContext: Add varargs functions for getting widget style properties. gtk/gtkstylecontext.c | 72 +++++++++++++++++++++++++++++++++++++++++++++++++ gtk/gtkstylecontext.h | 4 +++ 2 files changed, 76 insertions(+), 0 deletions(-) commit 5f2e8bc0d10bd89bc4b0a7f49e1557d68313c805 Author: Carlos Garnacho Date: Mon Aug 2 13:52:28 2010 +0200 GtkStyleContext: Ensure style rebuilds after adding/removing classes. gtk/gtkstylecontext.c | 36 +++++++++++++++++++++++++++++++++++- 1 files changed, 35 insertions(+), 1 deletions(-) commit 7748b1d2deea3fa06942e4e6251bf4f88fa83876 Author: Carlos Garnacho Date: Mon Aug 2 13:50:17 2010 +0200 GtkStyleContext: ensure class lookup return the correct insertion position if not found. gtk/gtkstylecontext.c | 22 ++++++++++++++-------- 1 files changed, 14 insertions(+), 8 deletions(-) commit 0813a2283e8b1ba3924d3b594c4259c5d7297c28 Author: Carlos Garnacho Date: Mon Aug 2 13:46:25 2010 +0200 GtkCssProvider: Allow '_' in the middle of symbolic color names. gtk/gtkcssprovider.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 227c500dced238f6c04f2729ca5e9bd3b6a734e2 Author: Carlos Garnacho Date: Mon Jul 19 12:00:07 2010 +0200 GtkThemingEngine: Improve slider rendering. gtk/gtkthemingengine.c | 18 +++++++++++++----- 1 files changed, 13 insertions(+), 5 deletions(-) commit 44373ec551a25a110aa073b23f5aab2798882647 Author: Carlos Garnacho Date: Mon Jul 19 11:59:27 2010 +0200 GtkThemingEngine: Cairo-ify frame rendering from GtkStyle. gtk/gtkthemingengine.c | 108 +++++++++++++++++++++++++++++++++++++----------- 1 files changed, 83 insertions(+), 25 deletions(-) commit 8771f46dae70e2d45439f7ae9aa36d11d9b4edd2 Author: Carlos Garnacho Date: Mon Jul 19 11:58:13 2010 +0200 GtkThemingEngine: Cairo-ify frame_gap rendering from GtkStyle. gtk/gtkthemingengine.c | 53 +++++++++++++++++++++++++---------------------- 1 files changed, 28 insertions(+), 25 deletions(-) commit 7d2b51f147c67e94cd318ba9f64f80f2b889a17b Author: Carlos Garnacho Date: Mon Jul 19 11:57:25 2010 +0200 GtkThemingEngine: Cairo-ify extension rendering from GtkStyle. gtk/gtkthemingengine.c | 121 +++++++++++++++++++++++++++++++++++------------ 1 files changed, 90 insertions(+), 31 deletions(-) commit 4772b675634eb375549fc3b4eed14975915e9771 Author: Carlos Garnacho Date: Mon Jul 19 11:56:01 2010 +0200 GtkThemingEngine: Make render_background use drawing primitives. gtk/gtkthemingengine.c | 32 ++++++++++++++++++++++---------- 1 files changed, 22 insertions(+), 10 deletions(-) commit 1b556aa4d127d3b0ff1a47945b6a106e0ba15f61 Author: Carlos Garnacho Date: Mon Jul 19 11:54:31 2010 +0200 GtkThemingEngine: Unify code to render lines. gtk/gtkthemingengine.c | 105 +++++++++++++++++------------------------------ 1 files changed, 38 insertions(+), 67 deletions(-) commit 75b059a3f26e8d6ffe3a40d05a0c945edb93611d Author: Carlos Garnacho Date: Mon Jul 19 11:51:17 2010 +0200 GtkThemingEngine: Add cairo-ified rendering primitives. Functions to add paths for lines, rectangle sides, and the gap side in notebooks have been added. gtk/gtkthemingengine.c | 192 ++++++++++++++--------------------------------- 1 files changed, 57 insertions(+), 135 deletions(-) commit 5cdb3f0e90ab03b59843beb425c323563724c6ed Author: Carlos Garnacho Date: Mon Jul 19 11:47:37 2010 +0200 GtkThemingEngine: Cairo-ify handle rendering from GtkStyle. gtk/gtkthemingengine.c | 69 ++++++++++++++++++++++++++++++----------------- 1 files changed, 44 insertions(+), 25 deletions(-) commit 9261c2a9d79fc1b9eb24962acbe88ee33fe3104b Author: Carlos Garnacho Date: Mon Jul 19 11:45:35 2010 +0200 GtkThemingEngine: Take option rendering from GtkStyle. gtk/gtkthemingengine.c | 77 ++++++++++++++++++++++++++++++++++++------------ 1 files changed, 58 insertions(+), 19 deletions(-) commit 4e45e9099e6862fffb8051b4aeef147b5fb4301c Author: Carlos Garnacho Date: Mon Jul 19 11:42:18 2010 +0200 GtkThemingEngine: Take checkbox rendering from GtkStyle. gtk/gtkthemingengine.c | 79 +++++++++++++++++++++++++++++++++++++---------- 1 files changed, 62 insertions(+), 17 deletions(-) commit 27f5257d49a05d4e43c77c44bdbcf2684e46162f Author: Carlos Garnacho Date: Sun Jul 18 18:40:48 2010 +0200 GtkStyleContext: Don crash on empty class sets. gtk/gtkstylecontext.c | 26 ++++++++++++++++++-------- 1 files changed, 18 insertions(+), 8 deletions(-) commit 038bcdcdb6bc916ad684c5b856396184b81b62da Author: Carlos Garnacho Date: Sat Jul 3 20:55:38 2010 +0200 GtkThemingEngine: Use GdkPangoRenderer when painting layouts. gtk/gtkthemingengine.c | 154 +++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 151 insertions(+), 3 deletions(-) commit 475f0fc2661e7455c3ad7ffb18e1a808a4efb3b2 Author: Carlos Garnacho Date: Sat Jul 3 20:53:50 2010 +0200 GtkStyleContext: Add gtk_style_context_save/restore(). This API will be used to have savepoints when adding and removing style classes information. gtk/gtkstylecontext.c | 314 ++++++++++++++++++++++++++++++++++--------------- gtk/gtkstylecontext.h | 3 + 2 files changed, 223 insertions(+), 94 deletions(-) commit 4a465d279d0f2b5db2032b5456492d5114df9d87 Author: Carlos Garnacho Date: Sat Jul 3 13:21:56 2010 +0200 GtkThemingEngine: Add gtk_theming_engine_get_screen(). gtk/gtkthemingengine.c | 11 +++++++++++ gtk/gtkthemingengine.h | 2 ++ 2 files changed, 13 insertions(+), 0 deletions(-) commit 5db7197c278c97a9f1c69028cc53ba5a02899bad Author: Carlos Garnacho Date: Sat Jul 3 13:20:45 2010 +0200 GtkWidget: Set screen info in GtkStyleContext. gtk/gtkwidget.c | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) commit 758c3e18cca979a976c5cde565629c6994585dbc Author: Carlos Garnacho Date: Sat Jul 3 13:17:35 2010 +0200 GtkStyleContext: Add gtk_style_context_[gs]et_screen() gtk/gtkstylecontext.c | 99 +++++++++++++++++++++++++++++++++++++++++++++++++ gtk/gtkstylecontext.h | 4 ++ 2 files changed, 103 insertions(+), 0 deletions(-) commit 41650933fdaac3cd37a8b0f8dc201a5792fea99e Author: Carlos Garnacho Date: Sat Jul 3 02:20:42 2010 +0200 GtkStyleContext: Add priv pointer to object struct. gtk/gtkstylecontext.c | 83 +++++++++++++++++++++++++----------------------- gtk/gtkstylecontext.h | 1 + 2 files changed, 44 insertions(+), 40 deletions(-) commit 10f6c04f33dec9432df334de3845e5ad27e1c4b1 Author: Carlos Garnacho Date: Sat Jul 3 02:19:54 2010 +0200 GtkStyleSet: Add priv pointer to object struct. gtk/gtkstyleset.c | 31 +++++++++++++++++-------------- gtk/gtkstyleset.h | 1 + 2 files changed, 18 insertions(+), 14 deletions(-) commit 875237187c4cad4e0cf2c408e8f5a27318540594 Author: Carlos Garnacho Date: Sat Jul 3 02:19:27 2010 +0200 GtkCssProvider: Add priv pointer to object struct. gtk/gtkcssprovider.c | 41 +++++++++++++++++++++++------------------ gtk/gtkcssprovider.h | 1 + 2 files changed, 24 insertions(+), 18 deletions(-) commit 51a8f642da27181a66477886fdfe0354c5dd3801 Author: Carlos Garnacho Date: Fri Jul 2 20:54:20 2010 +0200 Fix include. gtk/gtksymboliccolor.h | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) commit a256171d34a3000f899a8671b806dcfe529a5d26 Author: Carlos Garnacho Date: Sun Jun 27 19:37:34 2010 +0200 GtkStyleContext: Add gtk_style_context_lookup_icon_set(). gtk/gtkstylecontext.c | 61 +++++++++++++++++++++++++++++++++++++++++++++++++ gtk/gtkstylecontext.h | 4 +++ 2 files changed, 65 insertions(+), 0 deletions(-) commit 318e0f28eea281907589f94f93241d5d3659beb0 Author: Carlos Garnacho Date: Sun Jun 27 19:35:08 2010 +0200 GtkStyleProvider: Add gtk_style_provider_get_icon_factory(). With this, style providers have a way to override default icon theme. gtk/gtkstyleprovider.c | 16 ++++++++++++++++ gtk/gtkstyleprovider.h | 7 +++++++ 2 files changed, 23 insertions(+), 0 deletions(-) commit be5d4adf6b9636bc4f3d8ce1248fd937965a6bcc Author: Carlos Garnacho Date: Fri Jun 25 20:31:08 2010 +0200 GtkCssProvider: Allow symbolic colors when parsing style rules. gtk/gtkcssprovider.c | 17 ++++++++++++++--- 1 files changed, 14 insertions(+), 3 deletions(-) commit 1de8f7551768868af8593a4214c3cf7cd58c9a4d Author: Carlos Garnacho Date: Fri Jun 25 20:27:15 2010 +0200 GtkCssProvider: Parse color mappings. These are of the form: @color-a: #fff; @color-b: mix (@color-a, #000, 0.5) @color-c: shade (@color-b, 0.7) In the stylesheet, arbitrary nesting of these commands is handled. gtk/gtkcssprovider.c | 273 +++++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 270 insertions(+), 3 deletions(-) commit 4ed96df96a9e85a1ef4d9befd6e5da281f3f226f Author: Carlos Garnacho Date: Fri Jun 25 20:08:07 2010 +0200 GtkStyleSet: Optionally take GtkSymbolicColors. gtk_style_set_set_property() now takes both GdkColor and GtkSymbolicColor GValues, All accessors still return GdkColors, so any symbolic color will be resolved and replaced in the styleset at that time. gtk/gtkstyleset.c | 77 ++++++++++++++++++++++++++++++++++++++++++++++------ 1 files changed, 68 insertions(+), 9 deletions(-) commit b8fb2d1a367940aa8fb9b1b586350dbd66d4fa25 Author: Carlos Garnacho Date: Fri Jun 25 19:39:15 2010 +0200 GtkSymbolicColor: Add method to resolve to a GdkColor. gtk/gtkstyleset.h | 4 +++ gtk/gtksymboliccolor.c | 67 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 71 insertions(+), 0 deletions(-) commit e2b8efcbecac6864148f1bc1d738ccf7e3c4feb3 Author: Carlos Garnacho Date: Fri Jun 25 19:37:54 2010 +0200 GtkStyleSet: Add API to map symbolic colors. gtk/gtkstyleset.c | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++++ gtk/gtkstyleset.h | 10 +++++-- 2 files changed, 74 insertions(+), 3 deletions(-) commit 7094213df92e1ac72e294de58dad62124e7dd155 Author: Carlos Garnacho Date: Fri Jun 25 19:29:51 2010 +0200 Add GtkSymbolicColor. This is a small boxed struct used to store symbolic colors so they can be resolved at a later point. gtk/Makefile.am | 2 + gtk/gtksymboliccolor.c | 153 ++++++++++++++++++++++++++++++++++++++++++++++++ gtk/gtksymboliccolor.h | 49 +++++++++++++++ 3 files changed, 204 insertions(+), 0 deletions(-) commit d748ea983de123c065ede5bfb3118f54563416b8 Author: Carlos Garnacho Date: Fri Jun 25 19:24:19 2010 +0200 GtkWidgetPath: Add to gtkalias. gtk/gtkwidgetpath.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) commit b50c88d1703547b46ec890e2a4bd8e432cfb256b Author: Carlos Garnacho Date: Fri Jun 25 18:49:15 2010 +0200 GtkCssProvider: Plug memory leak. gtk/gtkcssprovider.c | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-) commit 2cd4ff421547e648a615396df6afc28ffa8e3b19 Author: Carlos Garnacho Date: Fri Jun 25 18:46:59 2010 +0200 GtkCssProvider: Fix compile warning. gtk/gtkcssprovider.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 1d4687675fc12bd4cf399cac8ab9c85d55e3c75c Author: Carlos Garnacho Date: Sat Jun 19 16:04:30 2010 +0200 GtkCssProvider: set scanner->input_name. gtk/gtkcssprovider.c | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) commit 6c91ba1cc263c40989bcb67a4e27154a3711d303 Author: Carlos Garnacho Date: Fri Jun 18 17:25:53 2010 +0200 GtkWidget: Do not reset GtkStyleContext per get_style_context(). gtk/gtkwidget.c | 19 ++++++++++--------- 1 files changed, 10 insertions(+), 9 deletions(-) commit 22bae20ce8d986a0439ec72b4476c7ea653acb2a Author: Carlos Garnacho Date: Fri Jun 18 17:16:21 2010 +0200 GtkWidget: Hook up widget style property querying to style context. gtk/gtkwidget.c | 25 +++++++++++-------------- 1 files changed, 11 insertions(+), 14 deletions(-) commit 03370c6e0cd64154dc7288bd168b509250120d27 Author: Carlos Garnacho Date: Fri Jun 18 17:11:37 2010 +0200 GtkStyleContext: Add methods to get style property values. gtk/gtkstylecontext.c | 181 ++++++++++++++++++++++++++++++++++++++++++++++++- gtk/gtkstylecontext.h | 9 +++ 2 files changed, 187 insertions(+), 3 deletions(-) commit bf12227435e1cc8858a33148f820a8a29f895059 Author: Carlos Garnacho Date: Fri Jun 18 17:04:03 2010 +0200 GtkCssProvider: Implement GtkStyleProvider->get_style_property Style properties in the resource files are something like: -GtkComboBox-appears-as-string -GtkEntry-icon-prelight Following the usual naming spec for extensions to CSS. gtk/gtkcssprovider.c | 93 ++++++++++++++++++++++++++++++++++++++++++++------ 1 files changed, 82 insertions(+), 11 deletions(-) commit 37335fbb6f572813b9af9524902c9161abfcae4c Author: Carlos Garnacho Date: Fri Jun 18 16:59:14 2010 +0200 GtkWidgetPath: Add methods to check topmost widget type. gtk/gtkwidgetpath.c | 29 +++++++++++++++++++++++++++++ gtk/gtkwidgetpath.h | 8 ++++++-- 2 files changed, 35 insertions(+), 2 deletions(-) commit 6990a012999be09b277cb0048f9416d08fec3836 Author: Carlos Garnacho Date: Fri Jun 18 16:58:16 2010 +0200 GtkStyleProvider: Add method to get widget style properties. gtk/gtkstyleprovider.c | 23 ++++++++++++++++++++++- gtk/gtkstyleprovider.h | 16 +++++++++------- 2 files changed, 31 insertions(+), 8 deletions(-) commit eaddc9f254649cd2607e428c023858da17fe5569 Author: Carlos Garnacho Date: Fri Jun 18 16:52:34 2010 +0200 GtkCssProvider: refactor out selector matching. gtk/gtkcssprovider.c | 27 +++++++++++++++++++++------ 1 files changed, 21 insertions(+), 6 deletions(-) commit eec75f1f592dd043e50a4d0701543fe59d20d65e Author: Carlos Garnacho Date: Fri Jun 18 16:49:06 2010 +0200 GtkCssProvider: Ensure each scope has its parser config. gtk/gtkcssprovider.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) commit ff05cc48499a6f3f446ea839987f73384e781d52 Author: Carlos Garnacho Date: Fri Jun 18 16:46:31 2010 +0200 GtkCssProvider: Parse boolean values. gtk/gtkcssprovider.c | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) commit aa5ec97cac8d005d58df9d0caf2103faba02628f Author: Carlos Garnacho Date: Fri Jun 18 16:42:48 2010 +0200 GtkCssProvider: Make additions to parse_value() less error prone. gtk/gtkcssprovider.c | 23 +++++++++-------------- 1 files changed, 9 insertions(+), 14 deletions(-) commit 814957021f5223b99ceb4b23a953c0eb09f30dcc Author: Carlos Garnacho Date: Sun Jun 13 17:33:47 2010 +0200 Fix compile warning. gtk/gtkstylecontext.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 66d1cb805427935f2637bf0455e473ad3cfc1dab Author: Carlos Garnacho Date: Sun Jun 13 17:31:22 2010 +0200 GtkStyleSet: Register GtkThemingEngine type. This has been also hooked up to the CSS provider, which parses the "engine" value to load the corresponding module. gtk/gtkcssprovider.c | 8 ++++++++ gtk/gtkstylecontext.c | 4 ++++ gtk/gtkstyleset.c | 2 ++ gtk/gtkthemingengine.c | 2 +- 4 files changed, 15 insertions(+), 1 deletions(-) commit 327a9fc66a2d8bf1f4814d608f1a95fdd6855bff Author: Carlos Garnacho Date: Sun Jun 13 17:26:18 2010 +0200 GtkWidget: Generate GtkWidgetPath on set_parent. There's no need to wait for realize() to have the right widget style. gtk/gtkwidget.c | 28 +++++++++++++++------------- 1 files changed, 15 insertions(+), 13 deletions(-) commit 6906138e4549a8de05348fbbdb66c7be24afe44e Author: Carlos Garnacho Date: Sun Jun 13 17:10:05 2010 +0200 GtkStyleSet: Remove default value for registered properties. This should be handled at a higher level, a single default value for all states isn't that useful... gtk/gtkcssprovider.c | 2 +- gtk/gtkstyleset.c | 168 ++++++++------------------------------------------ gtk/gtkstyleset.h | 20 +----- 3 files changed, 30 insertions(+), 160 deletions(-) commit 80e01becbe38d6ba8d560d920577d19a43d40273 Author: Carlos Garnacho Date: Tue May 4 21:01:35 2010 +0200 Fix compilation. gtk/gtkwidget.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit a323310c195d04269e14786f9c78c107b02fb2d8 Author: Carlos Garnacho Date: Tue May 4 20:16:34 2010 +0200 GtkNotebook: Set GtkChildClassFlags for tabs. gtk/gtknotebook.c | 52 +++++++++++++++++++++++++++++++++++++++++++--------- 1 files changed, 43 insertions(+), 9 deletions(-) commit e899fdd973fb650b7e875af60ea6c589cfc9d00a Author: Carlos Garnacho Date: Tue May 4 19:58:07 2010 +0200 GtkCssProvider: Set default value if no state pseudo-class is specified. gtk/gtkcssprovider.c | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) commit 66accc4184650c4bd5bc92d2703a4faf260f9900 Author: Carlos Garnacho Date: Tue May 4 19:55:19 2010 +0200 GtkStyleSet: Add gtk_style_set_set_default(). This will set the default value to a given property for all possible states, such default value will only be used if the queried state doesn't have a value itself. gtk/gtkstyleset.c | 86 ++++++++++++++++++++++++++++++++++++++++++---------- gtk/gtkstyleset.h | 3 ++ 2 files changed, 72 insertions(+), 17 deletions(-) commit bd9bd1310bb3a55c499cc980926876720e2b61a2 Author: Carlos Garnacho Date: Tue May 4 19:46:58 2010 +0200 GtkStyleContext: Fix compiler warning. gtk/gtkstylecontext.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) commit 17908880b568b8951a9841109ec603131841d4e1 Author: Carlos Garnacho Date: Tue May 4 19:38:39 2010 +0200 GtkStyle: Use new render methods underneath. This commit should probably be squashed in the future, when GtkStyleContext is on par with it, and GtkStyle is just a shallow object on top of GtkStyleContext and calling it in the default implementation methods, so all gtk_paint_* and gtk_draw_* would work. gtk/gtkstyle.c | 473 +++++++++++++++++++++++++++++++++++++++++++++++--------- 1 files changed, 403 insertions(+), 70 deletions(-) commit f5adc2a1c3bfd317f2288ba39925e7f7d6b50e38 Author: Carlos Garnacho Date: Fri Apr 23 02:36:47 2010 +0200 Add region details in gtk_widget_get_path(). gtk/gtkwidget.c | 42 +++++++++++++++++++++++++++++++++++++++--- 1 files changed, 39 insertions(+), 3 deletions(-) commit cf27f6f1cfb7fb40ced5bb86e3cbbde58f0c6c2c Author: Carlos Garnacho Date: Fri Apr 23 02:33:01 2010 +0200 GtkStyleContext: fix typos in code. The wrong list was being modified in gtk_style_context_set_child_class(), and gtk_style_context_has_child_class() was checking for *flags != 0, not flags != NULL. gtk/gtkstylecontext.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) commit 104caa74f05a376a7dd65f4b7540c6986c7781f3 Author: Carlos Garnacho Date: Fri Apr 23 02:31:57 2010 +0200 GtkStyleContext: Add gtk_style_context_list_child_classes(). gtk/gtkstylecontext.c | 25 +++++++++++++++++++++++++ gtk/gtkstylecontext.h | 2 ++ 2 files changed, 27 insertions(+), 0 deletions(-) commit 67c4f8d02ebcc4846316399cda9ed386a494f11d Author: Carlos Garnacho Date: Fri Apr 23 01:31:44 2010 +0200 GtkCssProvider: Compare GtkWidgetPath regions with css. gtk/gtkcssprovider.c | 18 ++++++++++++++++++ 1 files changed, 18 insertions(+), 0 deletions(-) commit 977a9723588ba0ef5f2d74205aa8c8e3bf3f47c9 Author: Carlos Garnacho Date: Fri Apr 23 01:28:24 2010 +0200 GtkCssProvider: fix parsing of consecutive pseudo-classes. Now either of foo{}, foo:first-child{}, foo:nth-child(even):insensitive or foo:active{} will be correctly parsed. gtk/gtkcssprovider.c | 61 +++++++++++++++++++++++++++++++++++-------------- 1 files changed, 43 insertions(+), 18 deletions(-) commit 0be4659c5d8f6428c41a5d5406a54cb2014f0311 Author: Carlos Garnacho Date: Fri Apr 23 01:23:27 2010 +0200 GtkCssProvider: move to next selector element on match or child combinator. gtk/gtkcssprovider.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit bc0af3208d55a3733e784a20bf00547da0bef274 Author: Carlos Garnacho Date: Wed Apr 21 01:51:46 2010 +0200 GtkCssProvider: free selector path on parse_rule(). gtk/gtkcssprovider.c | 28 +++++++++++++--------------- 1 files changed, 13 insertions(+), 15 deletions(-) commit 07171d5f68378e8accbdd3ff3a16d879972685a5 Author: Carlos Garnacho Date: Wed Apr 21 01:48:01 2010 +0200 GtkCssProvider: Add named regions to selector path. gtk/gtkcssprovider.c | 30 ++++++++++++++++++++++++++++++ 1 files changed, 30 insertions(+), 0 deletions(-) commit 707d5ae99c3a3c811d8c87b70a680aaa5d6e6398 Author: Carlos Garnacho Date: Wed Apr 21 01:46:52 2010 +0200 GtkCssProvider: Parse named regions. gtk/gtkcssprovider.c | 115 ++++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 112 insertions(+), 3 deletions(-) commit 11c874619bdcf27204888831ac0d2de294874bb0 Author: Carlos Garnacho Date: Wed Apr 21 01:35:54 2010 +0200 GtkWidgetPath: Add API for named regions. gtk/gtkwidgetpath.c | 130 +++++++++++++++++++++++++++++++++++++++++++++++++++ gtk/gtkwidgetpath.h | 18 +++++++ 2 files changed, 148 insertions(+), 0 deletions(-) commit 71949e05c47fdce1f90e8515bf733b3a315fae5f Author: Carlos Garnacho Date: Wed Apr 21 01:27:46 2010 +0200 Refurbish GtkWidgetPath API. The foreach() function is now gone, there's now API to get GTypes and names from the position in the path. gtk/gtkcssprovider.c | 115 ++++++++++++++++-------------- gtk/gtkwidget.c | 4 +- gtk/gtkwidgetpath.c | 191 +++++++++++++++++++++++++++----------------------- gtk/gtkwidgetpath.h | 32 +++++---- 4 files changed, 185 insertions(+), 157 deletions(-) commit f60e3f3a8afd00963d3cc810899aad5cab39f7ea Author: Carlos Garnacho Date: Wed Apr 21 00:32:21 2010 +0200 Move GtkChildClassFlags to gtkenums.h. gtk/gtkenums.h | 9 +++++++++ gtk/gtkstylecontext.h | 9 --------- 2 files changed, 9 insertions(+), 9 deletions(-) commit 8c03503d16331c83d28931b98ae7d4e48ea206f0 Author: Carlos Garnacho Date: Fri Apr 16 03:02:42 2010 +0200 GtkCssProvider: Add support for child/descendant combinators. Now, selectors like: GtkWindow > GtkButton {} GtkNotebook > GtkLabel {} will represent a direct parent/child relation between both elements, while GtkWindow GtkButton {} GtkNotebook GtkLabel {} will allow intermediate children between these. gtk/gtkcssprovider.c | 40 ++++++++++++++++++++++++++++++++++++++-- 1 files changed, 38 insertions(+), 2 deletions(-) commit d691e79cbf2f8df6b0c37b844d8f260b7a21085d Author: Carlos Garnacho Date: Fri Apr 16 02:59:36 2010 +0200 GtkCssProvider: Fix typo freeing SelectorElements. gtk/gtkcssprovider.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit abbeb89b7ca7e369ec47c548107843ed85ba34d4 Author: Carlos Garnacho Date: Fri Apr 16 01:44:50 2010 +0200 GtkCssProvider: Allow empty selector. universal selector is implied, so things like this work: :active {} :insensitive{} gtk/gtkcssprovider.c | 13 ++++++++++++- 1 files changed, 12 insertions(+), 1 deletions(-) commit 4c8353bcbf9e95ca15552540bd609a6e96387395 Author: Carlos Garnacho Date: Fri Apr 16 00:29:11 2010 +0200 GtkCssProvider: Allow '*' selectors. These would match a single widget of any type. gtk/gtkcssprovider.c | 66 ++++++++++++++++++++++++++++--------------------- 1 files changed, 38 insertions(+), 28 deletions(-) commit 468f216b1cc12872c1c3af155bd0ba8a4965f780 Author: Carlos Garnacho Date: Wed Apr 14 23:36:48 2010 +0200 GtkCssProvider: Add state parsing. Now state is now defined as a pseudoclass in the CSS format, selectors like: GtkWidget:active { } GtkButton:insensitive { } GtkCalendar:prelight { } (also :hover is accepted) ... define the style for the given state. gtk/gtkcssprovider.c | 41 +++++++++++++++++++++++++++++++++++------ 1 files changed, 35 insertions(+), 6 deletions(-) commit 7dada9949d32d8463458cbf4695aea2671180ea8 Author: Carlos Garnacho Date: Sun Apr 11 23:30:49 2010 +0200 GtkWidget: Create GtkCssProvider for user modifications. ~/.gtk-X.0.css is checked, and added as a style resource if available. gtk/gtkwidget.c | 27 +++++++++++++++++++++++++++ 1 files changed, 27 insertions(+), 0 deletions(-) commit 82f485afd925c4b47acce987a55c7f7fb9e53e14 Author: Carlos Garnacho Date: Sun Apr 11 23:30:07 2010 +0200 GtkStyleProvider: Add defines for most common priorities. gtk/gtkstyleprovider.h | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) commit bccad0c65c63db5e516e1f9fd317a61e61b31b83 Author: Carlos Garnacho Date: Sun Apr 11 23:03:25 2010 +0200 Added GtkCssProvider. GtkCssProvider is a GtkStyleProvider implementation which is able to read CSS-like input to style widgets. At the moment, only the basic parser features are available. gtk/Makefile.am | 2 + gtk/gtk.h | 1 + gtk/gtkcssprovider.c | 835 ++++++++++++++++++++++++++++++++++++++++++++++++++ gtk/gtkcssprovider.h | 61 ++++ 4 files changed, 899 insertions(+), 0 deletions(-) commit 7c5c4d86aefd6e39d7f23eaf4e107467300b9295 Author: Carlos Garnacho Date: Sun Apr 11 20:30:24 2010 +0200 Add GtkWidgetPath parameter to gtk_style_provider_get_style(). gtk/gtkstylecontext.c | 11 ++++++++--- gtk/gtkstyleprovider.c | 5 +++-- gtk/gtkstyleprovider.h | 7 +++++-- gtk/gtkstyleset.c | 3 ++- 4 files changed, 18 insertions(+), 8 deletions(-) commit 9971f386b0b027c66ab86af6471a9fd694525f58 Author: Carlos Garnacho Date: Sun Apr 11 20:26:49 2010 +0200 GtkStyleSet: Add method to lookup property default settings. gtk/gtkstyleset.c | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ gtk/gtkstyleset.h | 3 +++ 2 files changed, 53 insertions(+), 0 deletions(-) commit 7647deb4170480e1de3ea6c667440d6229dc7d2f Author: Carlos Garnacho Date: Sun Apr 11 19:52:58 2010 +0200 GtkStyleSet: Make property registration take const GValues. gtk/gtkstyleset.c | 6 +++--- gtk/gtkstyleset.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) commit fdcda4b356ea6d90482648dd45630de606f1411c Author: Carlos Garnacho Date: Sun Apr 11 19:46:57 2010 +0200 GtkStyleContext: allow late set_path() calls. Now the properties will only be regenerated whenever there's a GtkWidgetPath to query about. gtk/gtkstylecontext.c | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) commit bdadcb568cc6e798c056492a437974a3a008a359 Author: Carlos Garnacho Date: Sat Mar 27 21:30:30 2010 +0100 GtkStyleContext: Fix compiler warning. gtk/gtkstylecontext.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit f984c39e93738dc49ae5b7fcd82453c47ef47fca Author: Carlos Garnacho Date: Sat Mar 27 21:29:55 2010 +0100 GtkStyleContext: Fix typo. gtk/gtkstylecontext.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit f8c74ae54bb59e1dbf94718432e8227931a8f6c4 Author: Carlos Garnacho Date: Sat Mar 27 21:28:44 2010 +0100 GtkStyleContext: Add gtk_render_handle(). gtk/gtkstylecontext.c | 22 ++++++++++++++++++++++ gtk/gtkstylecontext.h | 7 +++++++ 2 files changed, 29 insertions(+), 0 deletions(-) commit 9e5d9ff28d9ac3c546c9a3a625ad91d057a6f6ba Author: Carlos Garnacho Date: Sat Mar 27 21:27:52 2010 +0100 GtkThemingEngine: Add vmethod to render a handle area. gtk/gtkthemingengine.c | 83 ++++++++++++++++++++++++++++++++++++++++++++++++ gtk/gtkthemingengine.h | 7 ++++ 2 files changed, 90 insertions(+), 0 deletions(-) commit 160821042cabbcce4f9e279c7c7cc2de7a759744 Author: Carlos Garnacho Date: Sat Mar 27 21:26:27 2010 +0100 GtkStyleContext: Add gtk_render_extension(). gtk/gtkstylecontext.c | 22 ++++++++++++++++++++++ gtk/gtkstylecontext.h | 7 +++++++ 2 files changed, 29 insertions(+), 0 deletions(-) commit aa1d492fe96dbe165fb5f105e57323bdc246f240 Author: Carlos Garnacho Date: Sat Mar 27 21:25:33 2010 +0100 GtkThemingEngine: Add vmethod to render an extension. gtk/gtkthemingengine.c | 88 ++++++++++++++++++++++++++++++++++++++++++++++++ gtk/gtkthemingengine.h | 7 ++++ 2 files changed, 95 insertions(+), 0 deletions(-) commit 88492a50d6dbc6702ebbdbf9c888a21dbbc35f60 Author: Carlos Garnacho Date: Sat Mar 27 21:24:22 2010 +0100 GtkStyleContext: Add gtk_render_frame_gap(). gtk/gtkstylecontext.c | 26 ++++++++++++++++++++++++++ gtk/gtkstylecontext.h | 9 +++++++++ 2 files changed, 35 insertions(+), 0 deletions(-) commit af1edc3d8809f35092c25eedfdb81af7c7a45e2a Author: Carlos Garnacho Date: Sat Mar 27 21:23:13 2010 +0100 GtkThemingEngine: Add vmethod to render frames with a gap. gtk/gtkthemingengine.c | 145 ++++++++++++++++++++++++++++++++++++++++++++++++ gtk/gtkthemingengine.h | 9 +++ 2 files changed, 154 insertions(+), 0 deletions(-) commit 6a1b54f8bfc30bcc77d8bf5cb46bf4dec819dc8d Author: Carlos Garnacho Date: Sat Mar 27 21:21:34 2010 +0100 GtkStyleContext: Add gtk_render_slider(). gtk/gtkstylecontext.c | 22 ++++++++++++++++++++++ gtk/gtkstylecontext.h | 7 +++++++ 2 files changed, 29 insertions(+), 0 deletions(-) commit 2ebdf80adcad73d4e784834c6908a7e40cc586c0 Author: Carlos Garnacho Date: Sat Mar 27 21:20:21 2010 +0100 GtkThemingEngine: Add vmethod to render sliders. gtk/gtkthemingengine.c | 37 +++++++++++++++++++++++++++++++++++++ gtk/gtkthemingengine.h | 7 +++++++ 2 files changed, 44 insertions(+), 0 deletions(-) commit 86727adc4d09c69f954e56a1beb437179d168ee9 Author: Carlos Garnacho Date: Sat Mar 27 21:18:24 2010 +0100 GtkStyleContext: Add gtk_render_line(). gtk/gtkstylecontext.c | 21 +++++++++++++++++++++ gtk/gtkstylecontext.h | 6 ++++++ 2 files changed, 27 insertions(+), 0 deletions(-) commit b8f6617d991dc2507cdcfa5ef01f0b9f72243305 Author: Carlos Garnacho Date: Sat Mar 27 21:17:22 2010 +0100 GtkThemingEngine: Add vmethod to render lines. gtk/gtkthemingengine.c | 121 ++++++++++++++++++++++++++++++++++++++++++++++++ gtk/gtkthemingengine.h | 6 ++ 2 files changed, 127 insertions(+), 0 deletions(-) commit f80fbbd829fc4cb444709890b355d0efbb1ef682 Author: Carlos Garnacho Date: Sat Mar 27 20:22:44 2010 +0100 GtkStyleContext: Add gtk_render_layout(). gtk/gtkstylecontext.c | 20 ++++++++++++++++++++ gtk/gtkstylecontext.h | 5 +++++ 2 files changed, 25 insertions(+), 0 deletions(-) commit 92994a0129af184d7b7b3be775dc3177b6f2084e Author: Carlos Garnacho Date: Sat Mar 27 20:21:55 2010 +0100 GtkThemingEngine: Add vmethod to render layouts. gtk/gtkthemingengine.c | 40 ++++++++++++++++++++++++++++++++++++++++ gtk/gtkthemingengine.h | 5 +++++ 2 files changed, 45 insertions(+), 0 deletions(-) commit 0486f5bbc023c9d0c684bb5f3330f244a10b89ff Author: Carlos Garnacho Date: Sat Mar 27 20:19:53 2010 +0100 GtkStyleContext: Add gtk_render_focus(). gtk/gtkstylecontext.c | 21 +++++++++++++++++++++ gtk/gtkstylecontext.h | 6 ++++++ 2 files changed, 27 insertions(+), 0 deletions(-) commit 8439537e2f69fec3e1af4c96709c06ed21db06fe Author: Carlos Garnacho Date: Sat Mar 27 20:18:38 2010 +0100 GtkThemingEngine: Add vmethod to render focus indicator. gtk/gtkthemingengine.c | 51 ++++++++++++++++++++++++++++++++++++++++++++++++ gtk/gtkthemingengine.h | 6 +++++ 2 files changed, 57 insertions(+), 0 deletions(-) commit 9c3b079c1cb49e1681f1c5b27c27ddb7f0e67217 Author: Carlos Garnacho Date: Sat Mar 27 20:16:44 2010 +0100 GtkStyleContext: Add gtk_render_expander(). gtk/gtkstylecontext.c | 21 +++++++++++++++++++++ gtk/gtkstylecontext.h | 6 ++++++ 2 files changed, 27 insertions(+), 0 deletions(-) commit 19fdaabf4ca7226226f1df19ebc8a73b295b2cce Author: Carlos Garnacho Date: Sat Mar 27 20:15:45 2010 +0100 GtkThemingEngine: Add vmethod to render expanders. gtk/gtkthemingengine.c | 62 ++++++++++++++++++++++++++++++++++++++++++++++++ gtk/gtkthemingengine.h | 6 ++++ 2 files changed, 68 insertions(+), 0 deletions(-) commit b4c8eba4803edcd09c23fb76f862004fb4241a0e Author: Carlos Garnacho Date: Sat Mar 27 20:12:46 2010 +0100 GtkStyleContext: Add gtk_render_frame(). gtk/gtkstylecontext.c | 21 +++++++++++++++++++++ gtk/gtkstylecontext.h | 6 ++++++ 2 files changed, 27 insertions(+), 0 deletions(-) commit 48990bc71cf275a5edea2235161702e4ac181faa Author: Carlos Garnacho Date: Sat Mar 27 20:11:31 2010 +0100 GtkThemingEngine: Add vmethod to render frames. gtk/gtkthemingengine.c | 96 ++++++++++++++++++++++++++++++++++++++++++++++++ gtk/gtkthemingengine.h | 6 +++ 2 files changed, 102 insertions(+), 0 deletions(-) commit 25488633ec3b4316847e481376bdaafd87274065 Author: Carlos Garnacho Date: Sat Mar 27 20:08:23 2010 +0100 GtkStyleContext: Add gtk_render_background(). gtk/gtkstylecontext.c | 21 +++++++++++++++++++++ gtk/gtkstylecontext.h | 6 ++++++ 2 files changed, 27 insertions(+), 0 deletions(-) commit 13812de971a8f382232f281284e11f82c77f0bf9 Author: Carlos Garnacho Date: Sat Mar 27 20:06:44 2010 +0100 GtkThemingEngine: Add vmethod to render backgrounds. gtk/gtkthemingengine.c | 173 ++++++++++++++++++++++++++++++++++++++++++++++++ gtk/gtkthemingengine.h | 6 ++ 2 files changed, 179 insertions(+), 0 deletions(-) commit 01a8e068420d68cd62a9d81a33f83ce12017509f Author: Carlos Garnacho Date: Sat Mar 27 19:57:54 2010 +0100 GtkStyleContext: Add gtk_render_arrow(). gtk/gtkstylecontext.c | 22 ++++++++++++++++++++++ gtk/gtkstylecontext.h | 6 ++++++ 2 files changed, 28 insertions(+), 0 deletions(-) commit b7ca7d19ee4eeb67e24a4d4fd553a970f28f7f2f Author: Carlos Garnacho Date: Sat Mar 27 18:50:39 2010 +0100 GtkThemingEngine: Add vmethod to render arrows. gtk/gtkthemingengine.c | 70 ++++++++++++++++++++++++++++++++++++++++++++++++ gtk/gtkthemingengine.h | 6 ++++ 2 files changed, 76 insertions(+), 0 deletions(-) commit 1c15b140a9050687074e4aed05b0fb831368565a Author: Carlos Garnacho Date: Sat Mar 20 17:40:21 2010 +0100 GtkStyleContext: Add gtk_render_option(). gtk/gtkstylecontext.c | 22 ++++++++++++++++++++++ gtk/gtkstylecontext.h | 6 ++++++ 2 files changed, 28 insertions(+), 0 deletions(-) commit 263f6de0e5704954e08dec3abb8d23b27bee9e1c Author: Carlos Garnacho Date: Sat Mar 20 17:37:34 2010 +0100 GtkThemingEngine: Add vmethod to render radio buttons. gtk/gtkthemingengine.c | 83 ++++++++++++++++++++++++++++++++++++++++++++++++ gtk/gtkthemingengine.h | 6 +++ 2 files changed, 89 insertions(+), 0 deletions(-) commit 401625b8b35c574bfa8ee57c267fdc76a236fbb8 Author: Carlos Garnacho Date: Sat Mar 20 14:26:11 2010 +0100 GtkStyleContext: Add gtk_render_check(). gtk/gtkstylecontext.c | 24 ++++++++++++++++++++++++ gtk/gtkstylecontext.h | 8 ++++++++ 2 files changed, 32 insertions(+), 0 deletions(-) commit acf4306bcdf8ac5476d95f087f44d13fd8950082 Author: Carlos Garnacho Date: Sat Mar 20 14:17:40 2010 +0100 GtkThemingEngine: Add vmethod to render checkboxes. gtk/gtkthemingengine.c | 81 ++++++++++++++++++++++++++++++++++++++++++++++++ gtk/gtkthemingengine.h | 7 ++++ 2 files changed, 88 insertions(+), 0 deletions(-) commit bf7a9914ddcb9bb65c8099686edf1db75b767fcf Author: Carlos Garnacho Date: Sat Mar 20 14:13:50 2010 +0100 GtkThemingEngine: Add accessors to style classes. gtk/gtkthemingengine.c | 28 ++++++++++++++++++++++++++++ gtk/gtkthemingengine.h | 6 ++++++ 2 files changed, 34 insertions(+), 0 deletions(-) commit fe4a6cea734ec869578ecd0e641b568a1a8fca34 Author: Carlos Garnacho Date: Sat Mar 20 13:30:05 2010 +0100 GtkWidget: Add widget path to style context. gtk/gtkwidget.c | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) commit 1d2aa614078a1bcc9e270aceb265cefc6fc1702d Author: Carlos Garnacho Date: Sat Mar 20 13:07:41 2010 +0100 GtkStyleContext: Add child style classes. Child style classes are like style classes, but with additional positional information. This would be usually set by the parent container. gtk/gtkstylecontext.c | 139 +++++++++++++++++++++++++++++++++++++++++++++++++ gtk/gtkstylecontext.h | 17 ++++++ 2 files changed, 156 insertions(+), 0 deletions(-) commit 9a76d1a332e7b460867b438492a5e2f9e616c8fd Author: Carlos Garnacho Date: Sat Mar 20 13:02:20 2010 +0100 GtkStyleContext: Add style classes. Style classes are the replacement of detail strings. gtk/gtkstylecontext.c | 83 +++++++++++++++++++++++++++++++++++++++++++++++++ gtk/gtkstylecontext.h | 7 ++++ 2 files changed, 90 insertions(+), 0 deletions(-) commit bd3b97d82bb31171f6917382b0a4a0a44721821c Author: Carlos Garnacho Date: Sat Mar 13 20:08:06 2010 +0100 GtkStyleContext: Relate to a GtkThemingEngine. gtk/gtkstylecontext.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) commit 0171c768710a4663163443b2e77bbdb3bf1feea5 Author: Carlos Garnacho Date: Sat Mar 13 18:35:35 2010 +0100 GtkThemingEngine: Add module loading capabilities. gtk/gtkthemingengine.c | 121 ++++++++++++++++++++++++++++++++++++++++++++++++ gtk/gtkthemingengine.h | 3 + 2 files changed, 124 insertions(+), 0 deletions(-) commit 57be029b15769dea10a281db6c6590ed902b4bfb Author: Carlos Garnacho Date: Sat Mar 13 11:23:23 2010 +0100 Add GtkThemingEngine. GtkThemingEngine will be the theming engines base class, with default implementations for all paint functions, and readonly access to the related GtkStyleContext data. gtk/Makefile.am | 2 + gtk/gtk.h | 1 + gtk/gtkthemingengine.c | 152 ++++++++++++++++++++++++++++++++++++++++++++++++ gtk/gtkthemingengine.h | 77 ++++++++++++++++++++++++ 4 files changed, 232 insertions(+), 0 deletions(-) commit b7e6ae3983b53396b017cfb6dbf22b4a7ad4e149 Author: Carlos Garnacho Date: Sat Mar 13 11:15:42 2010 +0100 GtkStyleContext: Add gtk_style_context_[gs]et_path() This relates a GtkStyleContext with a widget path, so all style querying would happen based on it. gtk/gtkstylecontext.c | 32 ++++++++++++++++++++++++++++++++ gtk/gtkstylecontext.h | 8 +++++++- 2 files changed, 39 insertions(+), 1 deletions(-) commit 9794b6adf9f5885a54450e1dbb7bdf629d17ef2c Author: Carlos Garnacho Date: Fri Mar 12 19:02:33 2010 +0100 GtkWidget: Add gtk_widget_get_path(). This function composes and returns a GtkWidgetPath representing the passed widget. gtk/gtkwidget.c | 24 +++++++++++++++++++++++- gtk/gtkwidget.h | 3 +++ 2 files changed, 26 insertions(+), 1 deletions(-) commit 61360dfddfaddaa68e96137e9f9e8881bd3669b3 Author: Carlos Garnacho Date: Fri Mar 12 18:55:54 2010 +0100 Add GtkWidgetPath. GtkWidgetPath represents a widget path. It will mainly used by theming engines to know detail about the widget hierarchy without actually accessing the widget. gtk/Makefile.am | 2 + gtk/gtk.h | 1 + gtk/gtkwidgetpath.c | 182 +++++++++++++++++++++++++++++++++++++++++++++++++++ gtk/gtkwidgetpath.h | 52 +++++++++++++++ 4 files changed, 237 insertions(+), 0 deletions(-) commit 835cc7049cc9f1f3730d04b05b334a3ca28b6576 Author: Carlos Garnacho Date: Wed Mar 10 01:02:46 2010 +0100 GtkStyleContext: Add getters and setter for state. gtk/gtkstylecontext.c | 55 +++++++++++++++++++++++++++++++++++++++++++++++++ gtk/gtkstylecontext.h | 7 ++++++ 2 files changed, 62 insertions(+), 0 deletions(-) commit 3f93c714ae749c106cb037c76bc6e72176e0b6c6 Author: Carlos Garnacho Date: Wed Mar 10 00:55:48 2010 +0100 GtkWidget: Add gtk_widget_get_style_context(). There will be one GtkStyleContext per widget, at the moment its lifetime is tied to the widget's, but it could be narrowed down to GTK_WIDGET_REALIZED. gtk/gtkwidget.c | 23 +++++++++++++++++++++++ gtk/gtkwidget.h | 4 ++++ 2 files changed, 27 insertions(+), 0 deletions(-) commit 2e96770e0b3686380e94d3c82d428958f648c9ec Author: Carlos Garnacho Date: Wed Mar 10 00:52:57 2010 +0100 Add GtkStateFlags. It basically represents GtkStateType as a flag set. gtk/gtkenums.h | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) commit 8a7e035ac731dbf5e50e90221ba57ebe8edbd450 Author: Carlos Garnacho Date: Wed Mar 10 00:28:18 2010 +0100 GtkStateType: Add inconsistent and focused state. gtk/gtkenums.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit b82355c76ed3bb59e117b0ed7b32e394a61fa949 Author: Carlos Garnacho Date: Sun Mar 7 19:58:35 2010 +0100 GtkStyleContext: Fix typo. gtk/gtkstylecontext.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 28b7782d7801bded393094052b61fa62a20c4d2b Author: Carlos Garnacho Date: Sun Mar 7 19:57:53 2010 +0100 GtkStyleSet: Add method to register border property. gtk/gtkstyleset.c | 20 ++++++++++++++++++++ gtk/gtkstyleset.h | 5 +++++ 2 files changed, 25 insertions(+), 0 deletions(-) commit 16484f845901137a7102833128fb02e10acbbde6 Author: Carlos Garnacho Date: Sun Mar 7 19:07:27 2010 +0100 GtkStyleSet: Add method to register font properties. gtk/gtkstyleset.c | 22 ++++++++++++++++++++++ gtk/gtkstyleset.h | 2 ++ 2 files changed, 24 insertions(+), 0 deletions(-) commit 1a3d964615d67ac61be35cad25c59bc0ac6b2422 Author: Carlos Garnacho Date: Sun Mar 7 01:22:38 2010 +0100 GtkStyleContext: Add methods to query composed style. gtk/gtkstylecontext.c | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ gtk/gtkstylecontext.h | 11 +++++++++++ 2 files changed, 60 insertions(+), 0 deletions(-) commit 2da033b18c67eaad1f1eac9de9d1d5e1b74eda89 Author: Carlos Garnacho Date: Sat Mar 6 19:52:18 2010 +0100 GtkStyleSet: Return default value if value is not set. gtk/gtkstyleset.c | 22 +++++++++++----------- 1 files changed, 11 insertions(+), 11 deletions(-) commit 9fdcbd7a8457a73f664795c35086f46b31fb42e2 Author: Carlos Garnacho Date: Fri Mar 5 03:02:59 2010 +0100 GtkStyleSet: Add valist and varargs getters/setters. gtk/gtkstyleset.c | 137 ++++++++++++++++++++++++++++++++++++++++++++++++++++- gtk/gtkstyleset.h | 12 +++++ 2 files changed, 148 insertions(+), 1 deletions(-) commit 2bf7483e743916bbb23c611a6a0bf46593e0a6a5 Author: Carlos Garnacho Date: Fri Mar 5 02:06:53 2010 +0100 GtkStyleSet: Use property GQuark as store keys. gtk/gtkstyleset.c | 59 ++++++++++++++++++++++++++++++++++++++-------------- 1 files changed, 43 insertions(+), 16 deletions(-) commit 4c60de478307a06d7c45f81880791ee04b3ca09b Author: Carlos Garnacho Date: Fri Mar 5 01:45:47 2010 +0100 GtkStyleSet: Add style property registration funcs. Also some properties have been added as a default set. gtk/gtkstyleset.c | 158 +++++++++++++++++++++++++++++++++++++++++++++++++++++ gtk/gtkstyleset.h | 16 +++++ 2 files changed, 174 insertions(+), 0 deletions(-) commit 2b425d89c80a47d0820b7b1b7aff26c37e5a61b8 Author: Carlos Garnacho Date: Thu Mar 4 23:00:30 2010 +0100 Add GtkStyleContext. GtkStyleContext will conglomerate the information of several GtkStyleProviders for widgets and theme engines to query it. gtk/Makefile.am | 2 + gtk/gtk.h | 1 + gtk/gtkstylecontext.c | 225 +++++++++++++++++++++++++++++++++++++++++++++++++ gtk/gtkstylecontext.h | 59 +++++++++++++ 4 files changed, 287 insertions(+), 0 deletions(-) commit 530ae15f96b465e62286a6b995f514b53fe4883b Author: Carlos Garnacho Date: Thu Mar 4 22:58:28 2010 +0100 gtkstyleset.h: Add declaration for gtk_style_set_merge(). gtk/gtkstyleset.h | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) commit f969470ad8c9c9bb706fcccdb88e693cb34bfbee Author: Carlos Garnacho Date: Thu Mar 4 22:51:56 2010 +0100 GtkStyleSet: Implement GtkStyleProvider. As simple as it can get. gtk/gtkstyleset.c | 27 ++++++++++++++++++++++++--- 1 files changed, 24 insertions(+), 3 deletions(-) commit 019fa73308b1e1703b257c20b5d05165e062e2ef Author: Carlos Garnacho Date: Thu Mar 4 21:05:03 2010 +0100 Add GtkStyleProvider, an interface to provide style details. The get_style() function isn't final yet, further parameters should be added to query details based on the widget hierarchy, name, etc. gtk/Makefile.am | 2 + gtk/gtk.h | 1 + gtk/gtkstyleprovider.c | 66 ++++++++++++++++++++++++++++++++++++++++++++++++ gtk/gtkstyleprovider.h | 58 ++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 127 insertions(+), 0 deletions(-) commit f601abd25fcf8d9910542953dd19dc924cfae581 Author: Carlos Garnacho Date: Thu Mar 4 20:59:18 2010 +0100 Add GtkStyleSet, a store of style properties. At the moment there's only basic API for adding, removing and clearing a property. There's also API to merge 2 GtkStyleSets. gtk/Makefile.am | 2 + gtk/gtk.h | 1 + gtk/gtkstyleset.c | 254 +++++++++++++++++++++++++++++++++++++++++++++++++++++ gtk/gtkstyleset.h | 70 +++++++++++++++ 4 files changed, 327 insertions(+), 0 deletions(-) commit 06288b5ae84182f9c6a1c29b245e0b4535a4a359 Author: Carlos Garnacho Date: Thu Mar 4 20:58:18 2010 +0100 Add GTK_STATE_LAST to mark the end of GtkState enum. gtk/gtkenums.h | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit 0d873a61e53201df57e5ba3990a152a94c043e43 Author: Yaron Shahrabani Date: Sat Dec 4 15:28:27 2010 +0200 Updated Hebrew translation po-properties/he.po | 2252 ++++++++++++++++++++++++++------------------------- po/he.po | 410 +++++----- 2 files changed, 1354 insertions(+), 1308 deletions(-) commit 12e5e24c3e647aa18c0de57d812f1c39a5dd514f Author: Matthias Clasen Date: Fri Dec 3 23:50:58 2010 -0500 Another attempt to fix the gdk symbol list gdk/gdk.symbols | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit d998e7761c4972b26079eaeb14f10996576e5415 Author: Matthias Clasen Date: Fri Dec 3 15:41:37 2010 -0500 Update sections docs/reference/gdk/gdk3-sections.txt | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 350fb1d55c7453ad6e2117b032a4fcaea81ac68f Author: Benjamin Otte Date: Fri Dec 3 16:14:31 2010 +0100 API: gdk: Rename GdkWindowObjectClass to GdkWindowClass Be consistent in the naming of objects. docs/reference/gdk/gdk3-sections.txt | 2 +- gdk/gdkwindow.c | 14 +++++++------- gdk/gdkwindow.h | 8 ++++---- 3 files changed, 12 insertions(+), 12 deletions(-) commit d916398dd2bc05bbdf50939b2583ea2e3a3cec97 Author: Benjamin Otte Date: Fri Dec 3 16:10:46 2010 +0100 API: Rename GdkWindowClass to GdkWindowWindowClass We argued replacing GdkWindowClass with a input_only boolean, but this is not doable in an API-stable way, so I decided against it. docs/reference/gdk/gdk3-sections.txt | 2 +- gdk/gdkwindow.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) commit a996a309c767bd30175a1ed5a5f3777d0f54cddc Author: Matthias Clasen Date: Fri Dec 3 13:05:23 2010 -0500 One more forgotten symbol gdk/gdk.symbols | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) commit 5687d7f8808290138c2cbdf001d132cb9cf88751 Author: Matthias Clasen Date: Fri Dec 3 13:04:42 2010 -0500 Update gdk symbol list gdk/gdk.symbols | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit 3d81af670dd3497c768731d17687ca305824eb87 Author: Andrej Žnidaršič Date: Fri Dec 3 18:10:08 2010 +0100 Updated Slovenian translation po/sl.po | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 17e2c5391cdf70f956383d518f0c63a98c425ca1 Author: Matthias Clasen Date: Fri Dec 3 08:50:05 2010 -0500 Fix up parameter mismatches in the docs And other minor gdk doc fixes. docs/reference/gdk/gdk3-sections.txt | 14 ++++++++++---- gdk/gdkcairo.c | 11 ++++++++++- gdk/gdkwindow.c | 2 +- gdk/x11/gdkkeys-x11.c | 5 ++--- gdk/x11/gdkx.h | 2 ++ 5 files changed, 25 insertions(+), 9 deletions(-) commit 4ef86fc500119ce4ab71cdf942b58d58df9d96b1 Author: Matthias Clasen Date: Fri Dec 3 08:21:48 2010 -0500 Add annotation to gdk_screen_get_monitor_geometry Pointed out by William Jon McCann. gdk/x11/gdkscreen-x11.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit e4cbe47a11e99e1084d09b5638026f6001432221 Author: Michael Natterer Date: Thu Dec 2 23:01:12 2010 +0100 gtk: properly indent calls to gdk_threads_add_timeout() gtk/gtkrange.c | 16 +++++++++------- 1 files changed, 9 insertions(+), 7 deletions(-) commit b1beaa2dea249a80c04d38a6e375fd85f830ee70 Author: Bastien Nocera Date: Thu Dec 2 21:01:05 2010 +0000 docs: Fix building with latest GDK changes docs/reference/gdk/gdk3-sections.txt | 2 +- docs/reference/gdk/gdk3.types | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit f5c27476a5225b6c8b005531d7055b0bc534af49 Author: Matthias Clasen Date: Thu Dec 2 15:58:57 2010 -0500 Don't require a display for the color test Its not really needed, and the build bot doesn't have X... gdk/tests/gdk-color.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) commit fdb242ac6ae660cddcde779b8a1fe656cbb12805 Author: Benjamin Otte Date: Thu Dec 2 12:06:49 2010 +0100 gdk: Clean up Cairo code Remove a bunch of code that is not required. gdk/gdkwindow.c | 15 --------------- 1 files changed, 0 insertions(+), 15 deletions(-) commit 0b6c184eaae9b5f78084d76b16b4d4286f2eaab7 Author: Benjamin Otte Date: Thu Dec 2 11:34:41 2010 +0100 label: Clarify docs for gtk_label_get_layout() gtk/gtklabel.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) commit f9a9567731efb314b9c9295d14879ebb57ab79f9 Author: Benjamin Otte Date: Thu Dec 2 10:59:37 2010 +0100 gdk: Replace direct calls of _gdk_event_func with _gdk_event_emit() For now that function just calls the event func. gdk/gdkevents.c | 13 ++++- gdk/gdkinternals.h | 5 +-- gdk/gdkwindow.c | 4 +- gdk/quartz/GdkQuartzWindow.c | 10 ++-- gdk/quartz/gdkeventloop-quartz.c | 3 +- gdk/win32/gdkevents-win32.c | 92 ++++++++++++++++++-------------------- gdk/x11/gdkeventsource.c | 3 +- 7 files changed, 64 insertions(+), 66 deletions(-) commit b3e8504111b3f1715e7bc5b7d7d3e017df64875a Author: Benjamin Otte Date: Tue Nov 30 22:55:44 2010 +0100 x11: Don't include gdkprivate.h in gdkx.h It's private, mkay? And include it directly where we need it anyway. gdk/x11/gdkx.h | 3 ++- gtk/gtksocket-x11.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) commit a6b407cf4aaa093d70adea2bad032358aa9362f3 Author: Benjamin Otte Date: Mon Nov 29 17:51:59 2010 +0100 gtk: Fix typos in comment gtk/gtkmain.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 8c6831ab5e2b1d17594cdd954cf2acd7a85de8cf Author: Benjamin Otte Date: Thu Nov 25 15:33:25 2010 +0100 gdk: Remove useless macros from gdkprivate.h gdk/gdkprivate.h | 5 ----- 1 files changed, 0 insertions(+), 5 deletions(-) commit f5be9388408470d2b435d410df73c755f1c53cb9 Author: Benjamin Otte Date: Thu Nov 25 15:33:01 2010 +0100 gtk: Don't include private GDK headers Use the function that exists for this purpose instead. gtk/gtkmain.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) commit 585c4895776f2a51b14eff6f28b9a57e12d2ba29 Author: Benjamin Otte Date: Thu Nov 25 15:04:45 2010 +0100 gdk: Remove GDK_PANGO_UNITS_OVERFLOWS() from internal headers It's unused. gdk/gdkprivate.h | 10 ---------- 1 files changed, 0 insertions(+), 10 deletions(-) commit 4d1604c77de2b97c7759574fb3ca9a400be32403 Author: Benjamin Otte Date: Thu Nov 25 12:28:08 2010 +0100 gdk: Move window beeps into GdkWindowImpl One less magic function. Also refactored it to make it easier to implement. It now returns TRUE if it beeped and FALSE if it failed to do so. A default implementation exists that just returns FALSE for all the backends that can't beep windows (read: everything but X11 with XKB - and why on earth do keyboard libs implement beeping?) gdk/gdkinternals.h | 1 - gdk/gdkwindow.c | 12 ++++++++---- gdk/gdkwindowimpl.c | 10 +++++++++- gdk/gdkwindowimpl.h | 3 +++ gdk/quartz/gdkwindow-quartz.c | 8 -------- gdk/win32/gdkwindow-win32.c | 6 ------ gdk/x11/gdkwindow-x11.c | 22 ++++++++++++---------- 7 files changed, 32 insertions(+), 30 deletions(-) commit 1269f8424f935a34d38106527ffce3e2cc8e35d0 Author: Benjamin Otte Date: Thu Nov 25 12:17:11 2010 +0100 gdk: Make get_shape and get_input_shape vfuncs Trying to get rid of all the _gdk_windowing_something() functions that we expect backends to magically know about and instead put them in a proper interface (mostly GdkWindowImplClass). gdk/gdkinternals.h | 2 -- gdk/gdkwindow.c | 4 ++-- gdk/gdkwindowimpl.h | 2 ++ gdk/quartz/gdkwindow-quartz.c | 10 ++++++---- gdk/win32/gdkwindow-win32.c | 10 ++++++---- gdk/x11/gdkwindow-x11.c | 10 ++++++---- 6 files changed, 22 insertions(+), 16 deletions(-) commit 218eea43785809ce43e894ed1bd94e18757f4efa Author: Benjamin Otte Date: Wed Nov 24 15:32:41 2010 +0100 gdk: Remove GdkDrawable It's unused. docs/reference/gdk/gdk-docs.sgml | 1 - docs/reference/gdk/gdk3-sections.txt | 18 -------- docs/reference/gdk/gdk3.types | 1 - gdk/Makefile.am | 2 - gdk/gdk.symbols | 2 - gdk/gdkdraw.c | 52 ----------------------- gdk/gdkdrawable.h | 77 ---------------------------------- 7 files changed, 0 insertions(+), 153 deletions(-) commit b9fc6a0c0387f42854409be8db826cf1d536079f Author: Benjamin Otte Date: Wed Nov 24 15:31:24 2010 +0100 gdk: Remove remaining includes of gdkdrawable.h gdk/gdkcairo.c | 1 - gdk/gdkwindow.c | 1 - gdk/gdkwindow.h | 1 - 3 files changed, 0 insertions(+), 3 deletions(-) commit 4bfa4e0d86b72bd1970be60f423dc80dd3296087 Author: Benjamin Otte Date: Wed Nov 24 15:11:34 2010 +0100 gdk: Make GdkWindowImpl inherit from GObject gdk/gdkwindowimpl.c | 2 +- gdk/gdkwindowimpl.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) commit 3494f87a10ec69521c2e3b4f5073d25385838297 Author: Benjamin Otte Date: Wed Nov 24 14:46:49 2010 +0100 API: Remove GdkNoExposeEvent It's not used by anyone and not supported by any backend but X11. docs/reference/gdk/gdk3-sections.txt | 1 - gdk/gdkevents.c | 2 -- gdk/gdkevents.h | 22 ---------------------- gdk/gdkwindow.c | 1 - gdk/win32/gdkevents-win32.c | 1 - gdk/x11/gdkdisplay-x11.c | 10 ---------- gtk/gtkmain.c | 1 - gtk/gtkwidget.c | 30 ------------------------------ gtk/gtkwidget.h | 2 -- 9 files changed, 0 insertions(+), 70 deletions(-) commit 98838df2dbc9e337b71dcbe26efb341e8cfea8a1 Author: Benjamin Otte Date: Wed Nov 24 14:36:45 2010 +0100 gdk: Make GdkWindow->impl a GdkWindowImpl gdk/gdkinternals.h | 3 ++- gdk/gdkwindow.c | 10 +++++----- gdk/x11/gdkwindow-x11.c | 8 ++------ 3 files changed, 9 insertions(+), 12 deletions(-) commit e3013a5cf52b5f918b823c935eed543743c4a9d8 Author: Benjamin Otte Date: Wed Nov 24 14:26:04 2010 +0100 docs: Replace mentions of drawable with window in migration guide No need to let gtk3-aware people learn about wonderous gtk2 terms when they are migrating old code. ;) docs/reference/gtk/migrating-2to3.xml | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit d03c94907aa1e9d72a02ea36497d4d1e130620c8 Author: Benjamin Otte Date: Wed Nov 24 14:24:51 2010 +0100 docs: Remove overrides for types that don't exist anymore docs/reference/gdk/gdk3-overrides.txt | 23 ----------------------- 1 files changed, 0 insertions(+), 23 deletions(-) commit ba20a005702a956e9fe3f77b4224a894a5e9e9df Author: Benjamin Otte Date: Wed Nov 24 14:09:48 2010 +0100 tests: Remove disabled testtext example tests/Makefile.am | 6 - tests/testtext.c | 3082 ----------------------------------------------------- 2 files changed, 0 insertions(+), 3088 deletions(-) commit 804c2c83504266ee4bda039bb816a3009922ec25 Author: Benjamin Otte Date: Wed Nov 24 13:30:28 2010 +0100 cellrenderer: Fix docs to say cairo_t instead of GdkDrawable gtk/gtkcellrenderer.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit 17a0a467a166c5d554f79247c7e7ac8fdb0ed68c Author: Benjamin Otte Date: Tue Nov 23 02:09:01 2010 +0100 gdk: Pass the GdkWindow to resize_cairo_surface vfunc So it's in sync with all the other vfuncs. gdk/gdkoffscreenwindow.c | 2 +- gdk/gdkwindow.c | 2 +- gdk/gdkwindowimpl.h | 2 +- gdk/quartz/gdkwindow-quartz.c | 2 +- gdk/win32/gdkwindow-win32.c | 2 +- gdk/x11/gdkwindow-x11.c | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) commit e4c27b0a59f0c6821b6ae8c1cfd19080e459b505 Author: Benjamin Otte Date: Tue Nov 23 01:54:37 2010 +0100 API: GdkWindow no longer is a GdkDrawable Also, name the get_type function properly. gdk/gdkinternals.h | 2 +- gdk/gdkwindow.c | 4 ++-- gdk/gdkwindow.h | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) commit 1ad7c5f8c57d28ed9e2f4a77856c86d5426e9694 Author: Benjamin Otte Date: Tue Nov 23 01:52:33 2010 +0100 x11: Remove unused GDK_DRAWABLE_XROOTWIN macro gdk/x11/gdkprivate-x11.h | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) commit 2408936bb54bc55f1a25d84d18306e0962c4b788 Author: Benjamin Otte Date: Tue Nov 23 01:47:50 2010 +0100 x11: Remove duplicate definition of GDK_WINDOW_XID Now, where did that come from? gdk/x11/gdkx.h | 6 ------ 1 files changed, 0 insertions(+), 6 deletions(-) commit d1700d6e3cf5d31b41abf78be5609cd886daf579 Author: Benjamin Otte Date: Tue Nov 23 01:46:03 2010 +0100 gdk: Move ref_cairo_surface from GdkDrawable to GdkWindowImpl Also make it take the actual GdkWindow, not the implementation, like all the other vfuncs do. gdk/gdkdrawable.h | 2 -- gdk/gdkoffscreenwindow.c | 8 +++----- gdk/gdkwindow.c | 2 +- gdk/gdkwindowimpl.h | 3 +++ gdk/x11/gdkwindow-x11.c | 22 +++++++++------------- 5 files changed, 16 insertions(+), 21 deletions(-) commit 62d004cf8f0e431310c0ee551d203b1ba70d9dfe Author: Benjamin Otte Date: Tue Nov 23 01:32:19 2010 +0100 gdk: Remove _gdk_drawable_ref_cairo_surface() Instead, call the vfunc directly from gdkWindow.c gdk/gdkdraw.c | 19 ------------------- gdk/gdkinternals.h | 2 -- gdk/gdkwindow.c | 10 ++++++++-- 3 files changed, 8 insertions(+), 23 deletions(-) commit 9d2abf81d22208d1e6e202b9ff79183a98dffe7e Author: Benjamin Otte Date: Tue Nov 23 01:09:22 2010 +0100 x11: Remove outdated variable definition gdk/x11/gdkprivate-x11.h | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) commit 1215f70e23aa0b21bec4c26acbab5374fd807f75 Author: Benjamin Otte Date: Tue Nov 23 01:08:08 2010 +0100 gdk: Remove GdkDrawable->create_cairo_surface vfunc It's unused. gdk/gdkdraw.c | 10 ---------- gdk/gdkdrawable.h | 4 ---- gdk/gdkinternals.h | 4 ---- gdk/x11/gdkwindow-x11.c | 1 - 4 files changed, 0 insertions(+), 19 deletions(-) commit 370d272b13b44917ab6048fa00fd70b8bad9160a Author: Benjamin Otte Date: Tue Nov 23 01:03:55 2010 +0100 gdk: Remove _gdk_window_impl_get_type() function It was only used in the backends, and they can use the correct type directly. gdk/gdkinternals.h | 3 --- gdk/quartz/gdkwindow-quartz.c | 8 +------- gdk/win32/gdkwindow-win32.c | 12 +++--------- gdk/x11/gdkwindow-x11.c | 12 +++--------- 4 files changed, 7 insertions(+), 28 deletions(-) commit ac4609ecc9e2a63803a17000720a02c0b9322757 Author: Benjamin Otte Date: Tue Nov 23 00:56:33 2010 +0100 x11: Fix in_rectangle computation A point is not in a rectangle when it's at the x + width coordinate. gdk/x11/gdkdevice-core.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 1bb6f48bb374d700717c97d4f6893d7c00377264 Author: Benjamin Otte Date: Tue Nov 23 00:55:39 2010 +0100 gdk: Rename GdkWindowObject to GdkWindow ... and remove most of the casting that used to be necessary. gdk/gdkdevice.c | 10 +- gdk/gdkdisplay.c | 9 +- gdk/gdkevents.c | 6 +- gdk/gdkinternals.h | 21 +- gdk/gdkoffscreenwindow.c | 147 ++-- gdk/gdkwindow.c | 1923 +++++++++++++++++---------------------- gdk/x11/gdkdevice-core.c | 19 +- gdk/x11/gdkdevicemanager-core.c | 20 +- gdk/x11/gdkdisplay-x11.c | 60 +- gdk/x11/gdkeventsource.c | 5 +- gdk/x11/gdkgeometry-x11.c | 44 +- gdk/x11/gdkinput.c | 26 +- gdk/x11/gdkprivate-x11.h | 2 +- gdk/x11/gdktestutils-x11.c | 20 +- gdk/x11/gdkwindow-x11.c | 417 ++++----- gdk/x11/gdkx.h | 2 +- 16 files changed, 1164 insertions(+), 1567 deletions(-) commit 7acb64f983c2f182d86deb32813ee23ca8957e7b Author: Benjamin Otte Date: Mon Nov 22 20:42:00 2010 +0100 gdk: Make GdkWindowImpl a class, not an interface It's a subclass of GdkDrawable and the baseclass for GdkWindowImplX11 etc now. gdk/gdkdisplay.c | 2 +- gdk/gdkoffscreenwindow.c | 56 ++++++-------- gdk/gdkwindow.c | 200 +++++++++++++++++++++++----------------------- gdk/gdkwindowimpl.c | 10 ++- gdk/gdkwindowimpl.h | 21 +++-- gdk/x11/gdkwindow-x11.c | 84 +++++++++----------- gdk/x11/gdkwindow-x11.h | 5 +- 7 files changed, 187 insertions(+), 191 deletions(-) commit b3bca70d5b4f9e6c9449c78859179d509d5e0903 Author: Benjamin Otte Date: Mon Nov 22 18:24:24 2010 +0100 gdk: Remove unused medialib code config.h.win32.in | 6 --- configure.ac | 22 ---------- gdk/Makefile.am | 9 ---- gdk/gdkinternals.h | 3 - gdk/gdkmedialib.c | 120 ---------------------------------------------------- gdk/gdkmedialib.h | 45 ------------------- 6 files changed, 0 insertions(+), 205 deletions(-) commit b1f6df80853ce3c79bd9c911ee3f5b2497bedf43 Author: Benjamin Otte Date: Mon Nov 22 18:08:25 2010 +0100 API: Remove gdkdrawable.h from public headers It continues to exist as a private header. gdk/gdk.h | 1 - gdk/gdkdrawable.h | 5 +---- gdk/gdktypes.h | 2 -- 3 files changed, 1 insertions(+), 7 deletions(-) commit 771fa78257d76a9cb973ea45e86a63f101e5d7c0 Author: Benjamin Otte Date: Mon Nov 22 17:56:34 2010 +0100 textbuffer: Remove check for GdkDrawable This should only have been used for stipple patterns, and those are gone now. gtk/gtktextbufferserialize.c | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-) commit cf6ce6e671d050a1393fe9f30cfa2bbfc7041313 Author: Benjamin Otte Date: Mon Nov 22 17:50:06 2010 +0100 API: Decouple GdkWindow from GdkDrawable Make GdkWindow no longer typedeffed to GdkDrawable, but instead make it be its own (private) type. gdk/gdktypes.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 81605623e222350daf36fcd0f86d4089972f6dfd Author: Benjamin Otte Date: Mon Nov 22 17:49:41 2010 +0100 gdk: Use GdkDrawable for impl pointers ... instead of GdkWindow gdk/gdkwindow.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit a7e6d6c4b4a50181c758db7e7fab650a51804986 Author: Benjamin Otte Date: Mon Nov 22 17:47:56 2010 +0100 gtk: Avoid GdkDrawable usage, including needless casts gtk/gtkimcontextsimple.c | 2 +- gtk/gtkimmodule.c | 4 ++-- gtk/gtkimmulticontext.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) commit 63808f90a260a99745d7469ad62b553604b197a8 Author: Benjamin Otte Date: Mon Nov 22 17:47:05 2010 +0100 gail: Avoid needless calls to GdkDrawable modules/other/gail/gailwindow.c | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) commit 62622a94ae6f854b6bfe9a4d1c95acdf78508cd1 Author: Benjamin Otte Date: Mon Nov 22 17:27:46 2010 +0100 gdk: Pass Drawable as argument We're not passing a GdKWindow here, but the implementation. gdk/gdkoffscreenwindow.c | 2 +- gdk/gdkwindowimpl.h | 2 +- gdk/quartz/gdkwindow-quartz.c | 2 +- gdk/win32/gdkwindow-win32.c | 2 +- gdk/x11/gdkwindow-x11.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) commit 072498ae87256b5ff2cbf6555128a9791b091245 Author: Benjamin Otte Date: Mon Nov 22 17:23:31 2010 +0100 gdk: Make _gdk_window_ref_cairo_surface() protected and use it ... instead of _gdk_drawable_ref_cairo_surface() where appropriate. Also, don't implement the drawable->create_cairo_surface vfunc anymore. This is in preparation for the split of GdkWindow from GdkDrawable. gdk/gdkcairo.c | 2 +- gdk/gdkinternals.h | 3 +++ gdk/gdkoffscreenwindow.c | 2 +- gdk/gdkpixbuf-drawable.c | 2 +- gdk/gdkwindow.c | 42 +++++++++++++++++++----------------------- 5 files changed, 25 insertions(+), 26 deletions(-) commit e724054d19d617107cfc4d9be116b376bfee249d Author: Benjamin Otte Date: Mon Nov 22 17:06:46 2010 +0100 API: Remove GDK_WINDOW_XWINDOW() macro Use GDK_WINDOW_XID() instead. THis was done using sed, so there might be issues resulting to that. Feel free to fix. docs/reference/gdk/gdk3-sections.txt | 1 - gdk/x11/gdkcursor-x11.c | 2 +- gdk/x11/gdkdevice-core.c | 4 +- gdk/x11/gdkdevice-xi.c | 4 +- gdk/x11/gdkdevice-xi2.c | 8 +++--- gdk/x11/gdkdevicemanager-xi2.c | 2 +- gdk/x11/gdkdnd-x11.c | 16 ++++++------ gdk/x11/gdkproperty-x11.c | 4 +- gdk/x11/gdkwindow-x11.c | 18 +++++++------- gdk/x11/gdkx.h | 5 +-- gtk/gtkplug-x11.c | 10 ++++---- gtk/gtkselection.c | 2 +- gtk/gtksocket-x11.c | 42 +++++++++++++++++----------------- gtk/gtktrayicon-x11.c | 4 +- gtk/gtkxembed.c | 4 +- modules/other/gail/gailwindow.c | 6 ++-- 16 files changed, 65 insertions(+), 67 deletions(-) commit 18a6976e5a1e899b62280fbbeb6df9c2c9191bcc Author: Benjamin Otte Date: Thu Oct 7 21:32:05 2010 +0200 API: gdk: Don't track outstanding surfaces You are not allowed to track surfaces from GDK or draw outside of expose events. So we can remove ugly hacks needed previously. See https://bugzilla.gnome.org/show_bug.cgi?id=606009 for the introduction of this workaround. gdk/gdkinternals.h | 1 - gdk/gdkwindow.c | 12 +----------- 2 files changed, 1 insertions(+), 12 deletions(-) commit fe6f76a5a2f33f9873b482c397b22a9ae5cda300 Author: Benjamin Otte Date: Thu Oct 7 00:17:33 2010 +0200 x11: Make wrapper member a GdkDrawable This is in preparation for getting rid of GdkDrawable as a dependency of GdkWindow. gdk/x11/gdkwindow-x11.c | 6 +++--- gdk/x11/gdkwindow-x11.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) commit becaf660fc84238fc3ecf1a8df9932bc8da93d40 Author: Benjamin Otte Date: Wed Oct 6 23:42:45 2010 +0200 API: gdk_drawable_get_visible_region => gdk_window_get_visible_region Also get rid of the GdkDrawable vfunc. gdk/gdkdraw.c | 20 -------------------- gdk/gdkdrawable.h | 4 ---- gdk/gdkwindow.c | 27 ++++++++++++++++++++------- gdk/gdkwindow.h | 2 ++ 4 files changed, 22 insertions(+), 31 deletions(-) commit 6a3a89a6215f3c94e1ca250cad3676648c1ea896 Author: Benjamin Otte Date: Wed Oct 6 19:31:03 2010 +0200 API: gdk_drawable_get_clip_region() => gdk_window_get_clip_region() Also remove the vfunc from GdkDrawableClass. docs/reference/gdk/gdk3-sections.txt | 2 +- gdk/gdk.symbols | 2 +- gdk/gdkdraw.c | 22 ---------------------- gdk/gdkdrawable.h | 2 -- gdk/gdkwindow.c | 25 ++++++++++++++++++++----- gdk/gdkwindow.h | 2 ++ 6 files changed, 24 insertions(+), 31 deletions(-) commit 97e6e9d212de2cfe543872513c6956bdee6dc6e7 Author: Benjamin Otte Date: Wed Oct 6 19:12:27 2010 +0200 API: Make gdk_cairo_create() take a GdkWindow This is not strictly an API change as GdkDrawable is typedeffed to GdkWindow, but it changes the header, so I'm marking it as such. gdk_cairo_create() can only be used with windows these days, so it makes sense to pass a window. With that, we can alseo remove the set_cairo_clip() vfunc from GdkDrawable and implement it inside gdkwindow.c. gdk/gdkcairo.c | 36 ------------------------------- gdk/gdkcairo.h | 2 +- gdk/gdkdrawable.h | 3 -- gdk/gdkwindow.c | 60 +++++++++++++++++++++++++++++++++++++++++++++-------- 4 files changed, 52 insertions(+), 49 deletions(-) commit 65dde2f92f8d2fb78688966d2258848383270877 Author: Benjamin Otte Date: Wed Oct 6 18:44:51 2010 +0200 API: Remove gdk_cairo_reset_clip() You should not ever ever ever call cairo_reset_clip(). If you do, your code is broken and you deserve everything you get. And we should definitely not support this insanity. docs/reference/gdk/gdk3-sections.txt | 1 - .../reference/gtk/migrating-ClientSideWindows.sgml | 12 ++------ gdk/gdkcairo.c | 28 -------------------- gdk/gdkcairo.h | 2 - 4 files changed, 3 insertions(+), 40 deletions(-) commit d154344a439fd6e07d092cfc2cbdb132bb26c9e2 Author: Benjamin Otte Date: Wed Oct 6 04:30:24 2010 +0200 win32: Remove some unused defines gdk/win32/gdkdrawable-win32.c | 12 ------------ 1 files changed, 0 insertions(+), 12 deletions(-) commit 88399c041c76fe30f83e06a426cf8f4961da86c5 Author: Benjamin Otte Date: Wed Oct 6 04:08:20 2010 +0200 x11: Remove GdkDrawableImplX11 It's not use anymore, the whole functionality has been moved to GdkWindowImplX11. gdk/Makefile.am | 1 - gdk/x11/Makefile.am | 2 - gdk/x11/gdkdrawable-x11.c | 53 ------------------------------------- gdk/x11/gdkdrawable-x11.h | 64 --------------------------------------------- gdk/x11/gdkwindow-x11.c | 2 +- gdk/x11/gdkwindow-x11.h | 6 ++-- 6 files changed, 4 insertions(+), 124 deletions(-) commit 3e6a4af6d398eb95da5b2bafa307901051c47610 Author: Benjamin Otte Date: Wed Oct 6 04:03:23 2010 +0200 x11: _gdk_x11_drawable_update_size() => _gdk_x11_window_update_size() gdk/x11/gdkdisplay-x11.c | 4 ++-- gdk/x11/gdkdrawable-x11.h | 2 -- gdk/x11/gdkwindow-x11.c | 18 ++++++++---------- gdk/x11/gdkwindow-x11.h | 10 ++++++---- 4 files changed, 16 insertions(+), 18 deletions(-) commit bb795066657c0585d3307dc57e0eddedb0295292 Author: Benjamin Otte Date: Wed Oct 6 03:49:04 2010 +0200 x11: Move cairo_surface and wrapper members to GdkWindowImplX11 struct gdk/x11/gdkdrawable-x11.c | 101 ------------------------------------ gdk/x11/gdkdrawable-x11.h | 5 -- gdk/x11/gdkwindow-x11.c | 124 ++++++++++++++++++++++++++++++++++++-------- gdk/x11/gdkwindow-x11.h | 4 ++ 4 files changed, 105 insertions(+), 129 deletions(-) commit 1c7f58fdb62039bdc49f1fe1a85048979d89d9bf Author: Benjamin Otte Date: Wed Oct 6 02:15:51 2010 +0200 x11: Move xid member from GdkDrawableImplX11 to GdkWindowImplX11 gdk/x11/gdkdrawable-x11.c | 2 +- gdk/x11/gdkdrawable-x11.h | 2 -- gdk/x11/gdkwindow-x11.c | 25 ++++++++++++------------- gdk/x11/gdkwindow-x11.h | 2 ++ gdk/x11/gdkx.h | 4 ++-- 5 files changed, 17 insertions(+), 18 deletions(-) commit a3c5005eefaa145bec3223bfb12162afa7851f90 Author: Benjamin Otte Date: Wed Oct 6 02:14:59 2010 +0200 x11: Use GDK_WINDOW_XID() instead of writing it out gdk/x11/gdkgeometry-x11.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 094b0eeb98a7cadb354299e35e41ffd3aaec61e6 Author: Benjamin Otte Date: Wed Oct 6 02:01:51 2010 +0200 x11: Remove screen member from GdkDrawableImplX11 gdk/x11/gdkdrawable-x11.h | 1 - gdk/x11/gdkwindow-x11.c | 5 +---- 2 files changed, 1 insertions(+), 5 deletions(-) commit 5f127305993289440043caf06db1ba0aa98846cb Author: Benjamin Otte Date: Wed Oct 6 02:00:16 2010 +0200 x11: Get display from window, not from impl-drawable's screen gdk/x11/gdkwindow-x11.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit cfa67127a1a5539e6a34171c7a3b7e125c146734 Author: Benjamin Otte Date: Wed Oct 6 01:59:21 2010 +0200 x11: Get display from window, not from impl-drawable's screen gdk/x11/gdkdrawable-x11.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit dc7d8dae6722a1219b5fde4fc03fdcc051ec4e1c Author: Benjamin Otte Date: Wed Oct 6 01:54:00 2010 +0200 x11: Change GDK_WINDOW_SCREEN macro on't look at GdkDrawableImplX11->screen, but call gdk_window_get_screen() instead. gdk/x11/gdkgeometry-x11.c | 2 +- gdk/x11/gdkprivate-x11.h | 2 +- gdk/x11/gdkwindow-x11.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) commit 5139eecc752056b2cddc6dfdbeb7f1ffc03520f3 Author: Benjamin Otte Date: Wed Oct 6 01:24:59 2010 +0200 API: x11: Remove GDK_DRAWABLE_XID and GDK_DRAWABLE_XDISPLAY Window equivalents exist and drawables are on their way out. gdk/x11/gdkx.h | 32 +------------------------------- 1 files changed, 1 insertions(+), 31 deletions(-) commit 3b8aea389da311b5b6d4675c61778a19394a9cb2 Author: Benjamin Otte Date: Wed Oct 6 01:22:45 2010 +0200 x11: Use window macros instead of drawable macros GDK_WINDOW_XID() instead of GDK_DRAWABLE_XID() GDK_WINDOW_XDISPLAY() instead of GDK_DRAWABLE_XDISPLAY() gdk/x11/gdkdevice-core.c | 4 +- gdk/x11/gdkdisplay-x11.c | 4 +- gdk/x11/gdkdnd-x11.c | 118 ++++++++++++++++++++++---------------------- gdk/x11/gdkselection-x11.c | 6 +- gdk/x11/gdktestutils-x11.c | 4 +- gdk/x11/gdkwindow-x11.c | 4 +- 6 files changed, 70 insertions(+), 70 deletions(-) commit 91679c384a10512ef6b02f5d9763687169e2da94 Author: Benjamin Otte Date: Wed Oct 6 01:14:32 2010 +0200 API: Remove gdk_x11_drawable_get_xdisplay() No need for the function. Macros exist to do the same thing. docs/reference/gdk/gdk3-sections.txt | 1 - gdk/gdk.symbols | 1 - gdk/x11/gdkdrawable-x11.c | 29 ----------------------------- gdk/x11/gdkx.h | 3 +-- 4 files changed, 1 insertions(+), 33 deletions(-) commit 0841281b5554579ca6d6529ace20a8ab88b05e0b Author: Benjamin Otte Date: Wed Oct 6 01:05:19 2010 +0200 x11: Use window macros in test code gdk/x11/gdktestutils-x11.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 28ba4c21464d31486be4c51073ba1eda56f54dee Author: Benjamin Otte Date: Wed Oct 6 00:56:22 2010 +0200 im-xim: Use window macros instead of drawable macros modules/input/gtkimcontextxim.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) commit 3af4432c6f9771f132bddab4ca9bca56d3d1036a Author: Benjamin Otte Date: Wed Oct 6 00:19:36 2010 +0200 API: x11: Remove gdk_x11_window_get_drawable_impl() It's not used anymore docs/reference/gdk/gdk3-sections.txt | 1 - gdk/gdk.symbols | 1 - gdk/x11/gdkdrawable-x11.c | 6 ------ gdk/x11/gdkdrawable-x11.h | 1 - gdk/x11/gdkx.h | 1 - 5 files changed, 0 insertions(+), 10 deletions(-) commit deffc9e39f19363d8700bcd29c8dedfa8e75256b Author: Benjamin Otte Date: Wed Oct 6 00:13:49 2010 +0200 API: x11: Change GDK_WINDOW_XDISPLAY() macro Instead of lots of magic, we can go the usual way of requesting the XDisplay of the window's display. So we do that. gdk/x11/gdkx.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit cf51750bf4b370a180b6273bd99781956165769d Author: Benjamin Otte Date: Wed Oct 6 00:08:25 2010 +0200 API: x11: gdk_drawable_get_xid => gdk_window_get_xid Also moves the function implementations to gtkwindow-x11.c. docs/reference/gdk/gdk3-sections.txt | 2 +- .../reference/gtk/migrating-ClientSideWindows.sgml | 2 +- docs/tools/shooter.c | 2 +- gdk/gdk.symbols | 2 +- gdk/gdkwindow.c | 2 +- gdk/x11/gdkdrawable-x11.c | 46 -------------------- gdk/x11/gdkwindow-x11.c | 37 ++++++++++++++++ gdk/x11/gdkx.h | 8 ++-- 8 files changed, 46 insertions(+), 55 deletions(-) commit 86390c99dd885dd729e3634ab7aa78646cc4e230 Author: Jorge González Date: Thu Dec 2 19:28:16 2010 +0100 Updated Spanish translation po-properties/es.po | 2395 ++++++++++++++++++++++++++------------------------- 1 files changed, 1205 insertions(+), 1190 deletions(-) commit c5d1b36e8713ed081a112e18662d6376a0b27189 Author: Jorge González Date: Thu Dec 2 19:28:12 2010 +0100 Updated Spanish translation po/es.po | 417 +++++++++++++++++++++++++++++++++----------------------------- 1 files changed, 222 insertions(+), 195 deletions(-) commit 66122b369e06d517fb5e8a9a7dd3002f3fc660ac Author: Bastien Nocera Date: Thu Dec 2 14:52:22 2010 +0000 gtk: Centre the text under the icon in GtkIconView No point in setting the alignment to centre if we don't center it within the cell itself. gtk/gtkiconview.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit dd678ac323b81e67bb1dea488f2123efee7e3500 Author: Matthias Clasen Date: Wed Dec 1 23:32:35 2010 -0500 Avoid a warning when finalizing toolbars Recent changes cause disposing menus to emit ::deactivate. So better disconnect the deactivate handler first. gtk/gtktoolbar.c | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) commit 6587652433c9fc33681be0bfa3a65dd1791eae44 Author: Cosimo Cecchi Date: Wed Dec 1 20:18:12 2010 +0100 app-chooser-button: don't insert empty rows in the combobox gtk/gtkappchooserbutton.c | 33 ++++++++++++++++++++------------- 1 files changed, 20 insertions(+), 13 deletions(-) commit b17f0338578344ff44f5d9369b7f2124afd387b3 Author: Cosimo Cecchi Date: Wed Dec 1 16:33:34 2010 +0100 app-chooser-button: add a note in the docs gtk/gtkappchooserbutton.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit 6e6379c6339807db33edd91c1959d2c9866d88cd Author: Cosimo Cecchi Date: Wed Dec 1 14:29:57 2010 +0100 app-chooser: add docs and symbols coverage for new API docs/reference/gtk/gtk3-sections.txt | 1 + gtk/gtk.symbols | 1 + 2 files changed, 2 insertions(+), 0 deletions(-) commit 510d65ba08a55cef683a18b56c87a006b3fc6e32 Author: Cosimo Cecchi Date: Wed Dec 1 12:12:03 2010 +0100 app-chooser-button: add gtk_app_chooser_button_set_active_custom_item() This allows to pre-select a custom item. gtk/gtkappchooserbutton.c | 61 ++++++++++++++++++++++++++++++++++++++++++ gtk/gtkappchooserbutton.h | 2 + tests/testappchooserbutton.c | 3 ++ 3 files changed, 66 insertions(+), 0 deletions(-) commit 9ffd1f7adbda3866d7fe0acaefb5eca8f684724e Author: Cosimo Cecchi Date: Wed Dec 1 16:29:57 2010 +0100 app-chooser-button: make sure to always get a valid iter Even in case there are no installed applications for our content type. gtk/gtkappchooserbutton.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit 959fc60c47f56f42aef8407c06f17723f89c02e6 Author: Bastien Nocera Date: Mon Nov 22 17:46:25 2010 +0000 gtk: Allow hiding the trough/slider in GtkScale When setting a GtkRange's upper and lower values to the same value, the slider will not be drawn any more. https://bugzilla.gnome.org/show_bug.cgi?id=549720 gtk/gtkrange.c | 20 +++++++++++++++++++- gtk/gtkscale.c | 5 +++++ tests/testscale.c | 24 ++++++++++++++++++++++++ 3 files changed, 48 insertions(+), 1 deletions(-) commit 926622e2ddd40757d923491039421095bdf6e662 Author: Ivar Smolin Date: Wed Dec 1 13:17:39 2010 +0200 [l10n] Updated Estonian translation po/et.po | 28 +++++++++++++++++++++++++--- 1 files changed, 25 insertions(+), 3 deletions(-) commit 80b1c80dbb3a1bb0e9eb62206db406928e7fe4fc Author: Mahyar Moghimi Date: Wed Dec 1 14:19:46 2010 +0330 Updating Persian translation po/fa.po | 517 ++++++++++++++++++-------------------------------------------- 1 files changed, 149 insertions(+), 368 deletions(-) commit b9bc2f132118ad975e16c3deff261efb1df59b9d Author: Mahyar Moghimi Date: Wed Dec 1 14:16:19 2010 +0330 Updating Persian translation po/fa.po | 3668 +++++++++++++++++++++++++++++--------------------------------- 1 files changed, 1743 insertions(+), 1925 deletions(-) commit b9859de917bfff02e16b64f033f2afc703791c82 Author: Emmanuele Bassi Date: Tue Nov 30 21:54:48 2010 +0000 switch: Fix the attribution line Thomas Wood pointed out that the original MxGtkLightSwitch widget upon which I based the behaviour of GtkSwitch was not written by him; the original authors are: Joshua Lock Robert Staudinger Jussi Kukkonen My apologies to all of them. gtk/gtkswitch.c | 3 +-- gtk/gtkswitch.h | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) commit bdeba634d951b961c713afeccb5c16c61591f894 Author: Matthias Clasen Date: Mon Nov 29 22:08:09 2010 -0500 Update checkmenuitem docs slightly docs/reference/gtk/tmpl/gtkcheckmenuitem.sgml | 20 ++++---------------- 1 files changed, 4 insertions(+), 16 deletions(-) commit 117e88646f851cd25d5450f078895ae8ece94b47 Merge: 8076dbf 4fe23ca Author: Cosimo Cecchi Date: Tue Nov 30 17:31:59 2010 +0100 Merge branch 'open-with-dialog' commit 4fe23cae7841a0c330bb0ed948fd38124e0e7eb0 Author: Cosimo Cecchi Date: Tue Nov 30 17:27:53 2010 +0100 app-chooser: other misc doc fixes docs/reference/gtk/gtk-docs.sgml | 9 ++++++++- docs/reference/gtk/gtk3-sections.txt | 17 +++++++++++++++++ docs/reference/gtk/gtk3.types | 5 ++++- gtk/gtk.symbols | 4 ++++ gtk/gtkappchooserbutton.c | 4 ++-- gtk/gtkappchooserdialog.c | 2 +- gtk/gtkappchooserwidget.c | 15 +++++++++++---- gtk/gtkappchooserwidget.h | 2 +- tests/Makefile.am | 4 ++-- 9 files changed, 50 insertions(+), 12 deletions(-) commit 960516bf3338c45f48b2ac2ec3eb50ae0cf157d6 Author: Cosimo Cecchi Date: Tue Nov 30 16:30:33 2010 +0100 app-chooser: add more symbols & docs docs/reference/gtk/gtk3-sections.txt | 24 ++++++++++++++++++++++++ gtk/gtk.symbols | 6 ++++++ 2 files changed, 30 insertions(+), 0 deletions(-) commit cb916f274673322bb6bfe6ac7256d3526a15cbfa Merge: 5f942b1 9223245 Author: Cosimo Cecchi Date: Tue Nov 30 16:27:28 2010 +0100 Merge branch 'master' into open-with-dialog Conflicts: docs/reference/gtk/gtk3-sections.txt gtk/gtk.symbols commit 8076dbfb5c9b358642b43a82bda36e649b0fe038 Author: Guillaume Desmottes Date: Tue Nov 30 15:59:49 2010 +0100 gtkspinner: don't setup the timeout twice (#636129) gtk/gtkspinner.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit 5f942b123248712f86fe7bfc3724b899a2bc0844 Author: Cosimo Cecchi Date: Tue Nov 30 15:04:37 2010 +0100 app-chooser-button: remove leftover typedef gtk/gtkappchooserbutton.h | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-) commit 50e967d17b00bf1bb2467ca57f002103cdceb21c Author: Cosimo Cecchi Date: Tue Nov 30 15:04:00 2010 +0100 build: order new files alphabetically gtk/Makefile.am | 26 +++++++++++++------------- gtk/gtk.h | 8 ++++---- 2 files changed, 17 insertions(+), 17 deletions(-) commit d8ef15c592c680d1b0060238e44be717c93dcad0 Author: Cosimo Cecchi Date: Tue Nov 30 15:03:33 2010 +0100 app-chooser: update docs gtk/gtkappchooser.c | 20 ++++++++++++++++++-- gtk/gtkappchooserbutton.c | 9 +++++++++ gtk/gtkappchooserdialog.c | 9 ++++++++- gtk/gtkappchooserwidget.c | 28 ++++++++++++++++++++++++++++ 4 files changed, 63 insertions(+), 3 deletions(-) commit 922324553be10f847d4bdc3a177e641887a2921d Author: Ryan Lortie Date: Tue Nov 30 00:07:08 2010 -0500 Bug 619148 - "active ID" properties (GtkComboBox) Based on a patch by Matthias, add an "active-id" property for GtkComboBox and add some convenience API for GtkComboBoxText. Also, add a test case to gtk-demo. demos/gtk-demo/combobox.c | 21 +++- docs/reference/gtk/gtk3-sections.txt | 9 ++- gtk/gtk.symbols | 7 + gtk/gtkcombobox.c | 211 +++++++++++++++++++++++++++++++++- gtk/gtkcombobox.h | 6 + gtk/gtkcomboboxtext.c | 101 ++++++++++++++++- gtk/gtkcomboboxtext.h | 10 ++ 7 files changed, 358 insertions(+), 7 deletions(-) commit 781d4faf4c6423e6db0f4442bfb3ed4db855e158 Author: Emmanuele Bassi Date: Mon Nov 29 15:43:43 2010 +0000 a11y: Use ATK macros and clean up/2 - GtkSpinner ATK provides macros to the same effect as G_DEFINE_TYPE; using these macros has the advantage of removing tons of duplicated code and reducing the maintainership burden. The widgets with inline accessibility implementation should switch to these macros, and clean up the code. https://bugzilla.gnome.org/show_bug.cgi?id=636060 gtk/gtkspinner.c | 200 +++++++++++++++++++----------------------------------- 1 files changed, 71 insertions(+), 129 deletions(-) commit e7966a2c0c7ab0de891764d6b3515b09ed8cea63 Author: Emmanuele Bassi Date: Mon Nov 29 15:40:29 2010 +0000 a11y: Use ATK macros and clean up/1 - GtkAssistant ATK provides macros to the same effect as G_DEFINE_TYPE; using these macros has the advantage of removing tons of duplicated code and reducing the maintainership burden. The widgets with inline accessibility implementation should switch to these macros, and clean up the code. https://bugzilla.gnome.org/show_bug.cgi?id=636060 gtk/gtkassistant.c | 166 ++++++++++++++++++++-------------------------------- 1 files changed, 63 insertions(+), 103 deletions(-) commit 2fffce2c23d701ebc2cd7cfe1be6f42100e63965 Author: Matthias Clasen Date: Mon Nov 29 16:47:01 2010 -0500 Forgotten changes gtk/gtkswitch.c | 20 ++++++++++---------- 1 files changed, 10 insertions(+), 10 deletions(-) commit f07480eb44c69921edc3e1a20744c46eb3e8cbcd Author: Javier Jardón Date: Mon Nov 29 21:49:38 2010 +0100 GtkSwitch: Add missing "Since: 3.0" tags gtk/gtkswitch.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) commit e3556c7f3ee77571da17ad6ba016deaaddfb7594 Author: Javier Jardón Date: Mon Nov 29 21:31:35 2010 +0100 configure: Fix typo configure.ac | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 8caa0c8c36f77e34e95cf0cd0387e59009653f18 Author: Andrej Žnidaršič Date: Mon Nov 29 21:27:47 2010 +0100 Updated Slovenian translation po/sl.po | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) commit c39a4342811465f396be881a11b000e02ae80fed Author: Matthias Clasen Date: Mon Nov 29 14:48:24 2010 -0500 Bump version configure.ac | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)