1. 28 Sep, 2012 1 commit
    • Benjamin Otte's avatar
      css: Huge refactoring to avoid computing wrong values · 1454ba15
      Benjamin Otte authored
      Here's the shortest description of the bug I can come up with:
      When computing values, we have 3 kinds of dependencies:
      (1) other properties ("currentColor" or em values)
      (2) inherited properties ("inherit")
      (3) generic things from the theme (@keyframes or @define-color)
      Previously, we passed the GtkStyleContext as an argument, because it
      provided these 3 things using:
      (1) _gtk_style_context_peek_property()
      (2) _gtk_style_context_peek_property(gtk_style_context_get_parent())
      (3) context->priv->cascade
      
      However, this makes it impossible to lookup values other than the ones
      accessible via _gtk_style_context_peek_property(). And this is exactly
      what we are doing in gtk_style_context_update_cache(). So when the cache
      updates encountered case (1), they were looking up the values from the
      wrong style data.
      
      So this large patch essentially does nothing but replace the
      context argument in all compute functions with new arguments for the 3
      cases above:
      (1) values
      (2) parent_values
      (3) provider
      
      We apparently have a lot of computing code.
      1454ba15
  2. 28 Aug, 2012 1 commit
  3. 11 May, 2012 1 commit
  4. 08 Mar, 2012 1 commit
  5. 27 Feb, 2012 1 commit
  6. 09 Jan, 2012 2 commits
    • Benjamin Otte's avatar
      css: Redo value resolving · e87cf5d7
      Benjamin Otte authored
      Instead of on-demand resolvage, we now resolve during lookup. The step
      is done via
        _gtk_css_style_property_compute_value()
      which currently calls into
        _gtk_css_style_compute_value()
      That function has all the old resolving machinery.
      
      The only part missing for now is the handling of win32 code. It will be
      added back later.
      e87cf5d7
    • Benjamin Otte's avatar
      css: Split generic parse/print functions out · 078fc725
      Benjamin Otte authored
      It seems to be some sort of sport for me to split them out and merge
      them back in...
      078fc725
  7. 17 Nov, 2011 1 commit
    • Alexander Larsson's avatar
      Add GtkStylePropertyContext and use it in when getting style properties · c09148ca
      Alexander Larsson authored
      At the toplevel we have _gtk_theming_engine_get, which lets us pass
      in a property context with (atm) the size to get the property for.
      Then there is a lot of plumbing to push this down into the lower
      layers of the style property code until finally hitting
      the property resolvers.
      
      I need this because I will be adding a property resolver for win32
      theme parts, and they render differently depending on the size
      (i.e. they don't scale linearly). The idea is that the code
      to get the background properties will pass in the final size
      and we will resolve the theme part specification to that particular
      size.
      
      If the old non-context calls are used we just hardcode a size
      of 100x100.
      c09148ca
  8. 09 Jun, 2011 1 commit
  9. 27 Jan, 2011 1 commit
  10. 22 Jun, 2008 1 commit
    • Johan Dahlin's avatar
      Include "config.h" instead of <config.h> Command used: find -name · d97cdbdf
      Johan Dahlin authored
      2008-06-21  Johan Dahlin  <jdahlin@async.com.br>
      
          * *.[ch]: Include "config.h" instead of <config.h>
          Command used:
          find -name \*.[ch]|xargs perl -p -i -e 's/^#include <config.h>/#include "config.h"/g'
          Rubberstamped by Mitch and Tim
      
      
      svn path=/trunk/; revision=20669
      d97cdbdf
  11. 22 Nov, 2005 1 commit
    • Anders Carlsson's avatar
      Add quartz backend. · 1097260a
      Anders Carlsson authored
      2005-11-21  Anders Carlsson  <andersca@imendio.com>
      
              * configure.in:
              * gtk/Makefile.am:
              * gdk/Makefile.am:
      	* gdk/quartz/*:
      	Add quartz backend.
      
              * docs/tools/Makefile.am:
      	Only build docshooter when the X11 backend is used.
      
              * gtk/gtkplug-stub.c:
      	Include gtkplug.h here.
      
              * gtk/gtksocket-stub.c:
      	Include gtksocket.h here.
      1097260a
  12. 12 Jul, 2005 1 commit
  13. 23 Jun, 2005 1 commit
    • Matthias Clasen's avatar
      Use glib-i18n.h · e9bab057
      Matthias Clasen authored
      2005-06-22  Matthias Clasen  <mclasen@redhat.com>
      
      	* gdk-pixbuf-i18n.h: Use glib-i18n.h
      e9bab057
  14. 17 Jan, 2004 1 commit
  15. 16 Jan, 2004 1 commit
    • Matthias Clasen's avatar
      The first part of the fix for #114351 (see also gdk-pixbuf/ChangeLog and · 07d4d314
      Matthias Clasen authored
      Fri Jan 16 23:59:01 2004  Matthias Clasen  <maclas@gmx.de>
      
      	The first part of the fix for #114351 (see also
      	gdk-pixbuf/ChangeLog and po/ChangeLog):
      
      	* gtk/gtkintl.h:
      	* gdk-pixbuf/gdk-pixbuf-i18n.h:
      	* gdk/gdkintl.h: Define P_() for property blurbs and nicks.
      
      	* gdk/gdkdisplaymanager.c:
      	* gdk-pixbuf/gdk-pixbuf.c:
      	* modules/input/gtkimcontextxim.c:
      	* gtk/*.c:  Mark property blurbs and nicks with P_().
      
      	* po/Makefile.in.in: Add --keyword=P_ to the xgettext
      	invocation, since property blurbs and nicks are
      	now marked with P_().
      07d4d314
  16. 06 Oct, 2000 1 commit
    • Havoc Pennington's avatar
      Pixbuf saving, patch from David Welton. · 6b9f9072
      Havoc Pennington authored
      2000-10-05  Havoc Pennington  <hp@redhat.com>
      
              Pixbuf saving, patch from David Welton.
      
      	* Makefile.am (GDK_PIXBUF_LIBS): add INTLLIBS
      	(libgdk_pixbuf_1_3_la_SOURCES): add gdk-pixbuf-i18n.h
      
      	* gdk-pixbuf-i18n.h: Add _() to gdk-pixbuf
      
      	* io-png.c (gdk_pixbuf__png_image_save): PNG save routine.
      
      	* io-jpeg.c (gdk_pixbuf__jpeg_image_save): JPEG save routine.
      
      	* gdk-pixbuf-io.c (gdk_pixbuf_save):
      	(gdk_pixbuf_savev): Implement pixbuf saving routines
      
      	* gdk-pixbuf.c (gdk_pixbuf_error_quark): pixbuf error quark
      	function
      
      	* gdk-pixbuf.h: Add public save routines; add pixbuf error
      	types
      
      	* gdk-pixbuf-io.h: Add save function to GdkPixbufModule
      
      2000-10-05  Havoc Pennington  <hp@redhat.com>
      
              * demos/testpixbuf-save.c: add pixbuf save test
      
      	* demos/Makefile.am: add testpixbuf-save.c
      6b9f9072
  17. 14 Jul, 2000 1 commit
    • Owen Taylor's avatar
      Move gtk-config to gtk-config-2.0 move gtk_.m4 to gtk-2.0.m4 · bb268900
      Owen Taylor authored
      Fri Jul 14 12:22:49 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* configure.in Makefile.am gtk-config.m4 gtk.m4: Move
      	gtk-config to gtk-config-2.0 move gtk_.m4 to
      	gtk-2.0.m4
      
      	* Makefile.am gtk/Makefile.am gdk-pixbuf/Makefile.am
      	gdk/Makefile.am demos/Makefile.am: Change
      	library names to libgtk-1.3.la, etc, so that we
      	can distinguish gtk-1.2 and gtk-2.0 on the linkline.
      
      	* Makefile.am gtk/Makefile.am gdk-pixbuf/Makefile.am
      	gdk/Makefile.am gdk/x11/Makfile.am
      	Move include files into /usr/include/gtk-2.0,
      	/usr/lib/gtk-2.0/include/
      
      	* autogen.sh acconfig.h configure.in gtk/gtkmain.c
      	gtk/gtkintl.h: Change package for gettext from
      	gtk+ to gtk20. Put hack in autogen.sh to modify
      	po/Makefile.in.in after gettextize to make this
      	possible.
      
      	* gtk+.spec: Some updates, not tested.
      
      	* gdk-pixbuf/Makefile.am: Move loaders into
      	$(libdir)/gtk-2.0/$(GTK_VERSION)/loaders.
      
      	* gtk/Makefile.am gtk/gtkrc.c: Move RC file locations
      	$(sysconfdir)/gtk-2.0 ~/.gtkrc-2.0; theme subdir
      	to THEMENAME/gtk-2.0/. Move engine directory  to
      	$(libdir)/gtk-2.0/$(GTK_VERSION)/engines.
      bb268900
  18. 14 Dec, 1998 1 commit
    • Owen Taylor's avatar
      Added gettext-10.35 · 7facb75c
      Owen Taylor authored
      Mon Dec 14 12:24:13 1998  Owen Taylor  <otaylor@redhat.com>
      
      	* HACKING: Added gettext-10.35
      
      	* autogen.sh: Run gettextize.
      
      Wed Dec  9 16:29:06 1998  Owen Taylor  <otaylor@redhat.com>
      
              Applied gtk-egger-981010-[12]
      	[ Daniel.Egger@t-online.de (Daniel Egger) ]
      
      	* gtk/gtkintl.h: New file - defines for localization.
      
      	* gtk/gtkfilesel.c gtk/gtkinputdialog.c: Mark strings
      	for internationalization.
      
      	* gtk/gtkmain.c: call bindtextdomain
      
      	* po/ - directory for translations. Initially includes
      	German translation.
      7facb75c