1. 08 Apr, 2013 1 commit
    • Tristan Van Berkom's avatar
      GtkBuilder: Add private _gtk_builder_extend_with_template() · b7da0d21
      Tristan Van Berkom authored
      This adds the definition of the <template> tag with some documentation
      on the variant of the format.
      
      _gtk_builder_extend_with_template() is to be used while GtkContainer
      builds from composite templates. A couple of error codes are also added
      to handle a few new possible failure cases.
      
      DTD Files gtkbuilder.rnc and gtkbuilder.rng have been updated to include
      the new <template> tag and it's attributes.
      b7da0d21
  2. 02 Oct, 2012 1 commit
  3. 20 Apr, 2012 1 commit
  4. 27 Feb, 2012 1 commit
  5. 26 Jan, 2012 1 commit
    • Allison Karlitskaya's avatar
      GtkBuilder: change format of menus · eed30771
      Allison Karlitskaya authored
      Change the format of GtkBuilder <menu> to be more in-line with the style
      of the rest of GtkBuilder so that we can do translation in a consistent
      way.
      
      The format is now substantially more difficult to hand-write, but tools
      should be along soon.
      
      There is an xslt program attached to the bug to help you convert your
      existing .ui files from the old format to the new one.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=668696
      eed30771
  6. 19 Dec, 2011 3 commits
  7. 04 Jan, 2011 1 commit
  8. 08 Sep, 2010 1 commit
  9. 22 Aug, 2010 1 commit
  10. 10 Jul, 2010 1 commit
  11. 14 Aug, 2009 2 commits
  12. 15 Jun, 2009 1 commit
    • Matthias Clasen's avatar
      Cleanup some translation handling · de3cc277
      Matthias Clasen authored
      Use g_*gettext functions in gdk-pixbuf instead direct gettext
      calls to benefit from the maybe-dont-translate functionality
      in GLib. Also, replace a hand-rolled version by g_dpgettext2
      in gtkbuilderparser.c. Fixes bug 585791.
      de3cc277
  13. 04 May, 2009 1 commit
  14. 18 Apr, 2009 1 commit
  15. 07 Apr, 2009 2 commits
  16. 01 Jan, 2009 1 commit
  17. 08 Dec, 2008 1 commit
  18. 16 Jul, 2008 1 commit
    • Paolo Borelli's avatar
      Bug 447998 - GtkBuilder does not support building parts of the xml tree · 6ee8be88
      Paolo Borelli authored
      2008-07-15  Paolo Borelli  <pborelli@katamail.com>
      
      	Bug 447998 - GtkBuilder does not support building parts of the xml tree
      
      	* gtk/gtkbuilder.c:
      	* gtk/gtkbuilder.h:
      	* gtk/gtkbuilderprivate.h:
      	* gtk/gtkbuilderparser.c:
      	* gtk/gtk.symbols:
      	Add two new functions that allow cherry picking and construct
      	objects from a ui description file or string.
      
      	* gtk/tests/builder.c: tests for the above.
      
      
      svn path=/trunk/; revision=20845
      6ee8be88
  19. 03 Jul, 2008 1 commit
  20. 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
  21. 11 Jun, 2008 1 commit
    • Behdad Esfahbod's avatar
      Bug 503071 – Application direction changes to right to left even if · d76e3d55
      Behdad Esfahbod authored
      2008-06-11  Behdad Esfahbod  <behdad@gnome.org>
      
              Bug 503071 – Application direction changes to right to left even if
              theres no translation
      
              * configure.in: Bump glib requirement.
      
              * gtk/gtkaccellabel.c
              (_gtk_accel_label_class_get_accelerator_label):
              * gtk/gtkactiongroup.c (dgettext_swapped):
              * gtk/gtkbuilder.c (gtk_builder_class_init):
              * gtk/gtkbuilderparser.c (_dpgettext),
              (_gtk_builder_parser_translate):
              * gtk/gtkfilechooserdefault.c (list_size_data_func):
              * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
              * gtk/gtkintl.h:
              * gtk/gtkmain.c (setlocale_initialization),
              (do_pre_parse_initialization), (gettext_initialization):
              * gtk/gtkstock.c (gtk_stock_lookup), (sgettext_swapped):
              Use g_dgettext() and g_dngettext().
      
      
      svn path=/trunk/; revision=20358
      d76e3d55
  22. 25 May, 2008 1 commit
    • Tristan Van Berkom's avatar
      Added support for parsing required toolkit versions (so that ui · 7b0ef209
      Tristan Van Berkom authored
      
      	* gtk/gtkbuilderprivate.h, gtk/gtkbuilder.h, gtk/gtkbuilderparser.c:
      	Added support for parsing required toolkit versions (so that ui descriptions
      	can target specific versions of the backend widget libraries) bug 527612.
      
      	* gtk/docs/reference/gtk/tmpl/gtkbuilder.sgml: Added documentation
      	for the added xml tags to the ui description.
      
      
      svn path=/trunk/; revision=20152
      7b0ef209
  23. 20 May, 2008 1 commit
  24. 11 May, 2008 1 commit
    • Yair Hershkovitz's avatar
      call g_i18n_init() in gettext_initialization(). do gettext_initialization · 670775d8
      Yair Hershkovitz authored
      2008-05-11  Yair Hershkovitz  <yairhr@gmail.com>
      
              * gtk/gtkmain.c: call g_i18n_init() in gettext_initialization(). do
              gettext_initialization only once.
      
              *  gtk/gtkbuilderparser.c: use glib i18n api. removed dpgettext() as it
              duplicates g_dpgettext() and added _g_dpgettext() to wrap g_dpgettext 
              with the extended functionality that was in the removed dpgettext().
      
              * gtk/gtkaccellabelc:
              * gtk/gtkstock.c:
              * gtk/gtkimmulticontext.c:
              * gtk/gtkactiongroup.c:
              * gtk/gtkintl.h: use glib i18n api.
      
      
      svn path=/trunk/; revision=20091
      670775d8
  25. 18 Apr, 2008 1 commit
    • Michael Natterer's avatar
      gtk/gtkicontheme.h include <gdk/gdk.h> instead of <gdk/gdkscreen.h>. · 9f1bc132
      Michael Natterer authored
      2008-04-18  Michael Natterer  <mitch@imendio.com>
      
      	* gtk/gtkicontheme.h
      	* gtk/gtkrecentmanager.h: include <gdk/gdk.h> instead of
      	<gdk/gdkscreen.h>.
      
      	* gtk/gtkbuilderparser.c
      	* gtk/gtklinkbutton.c
      	* gtk/gtkpreview.c
      	* gtk/gtkrecentchooserdefault.c
      	* gtk/gtkrecentchoosermenu.c
      	* modules/input/gtkimcontextthai.c: remove inclusion of single
      	files from gdk, none of the includes was actually needed.
      
      
      svn path=/trunk/; revision=20023
      9f1bc132
  26. 07 Mar, 2008 1 commit
    • Johan Dahlin's avatar
      - Treat enums like enums and not values - Avoid invalid free, in case of · 424cc287
      Johan Dahlin authored
      2008-03-07  Johan Dahlin  <johan@gnome.org>
      
          * gtk/gtkbuilder.c:
          * gtk/gtkbuilderparser.c:
          * gtk/gtkbuilderprivate.h:
          * gtk/gtkiconfactory.c:
          * tests/buildertest.c:
          - Treat enums like enums and not values
          - Avoid invalid free, in case of more than two sources
          - Add better error messages
          - Add much improved tests
          (#520979, Christian Persch)
      
      
      svn path=/trunk/; revision=19732
      424cc287
  27. 02 Mar, 2008 1 commit
    • Johan Dahlin's avatar
      Add translatable/context and comment attributes on <col> tags under a · e2534d54
      Johan Dahlin authored
      2008-02-29  Johan Dahlin  <johan@gnome.org>
      
      	* demos/gtk-demo/demo.ui:
      	* gtk/gtkbuilderparser.c:
      	* gtk/gtkbuilderprivate.h:
      	* gtk/gtkliststore.c:
      	* tests/buildertest.c:
      	Add translatable/context and comment attributes on
      	<col> tags under a GtkListStore. Refactor parts of the
      	translation api and make it available inside gtk+ itself.
      	Update tests and example.
      	Fixes a part of #518642
      
      
      svn path=/trunk/; revision=19685
      e2534d54
  28. 01 Mar, 2008 1 commit
    • Johan Dahlin's avatar
      Do not use g_error for a few more errors, instead set the GError sent in · a57b66aa
      Johan Dahlin authored
      2008-02-29  Johan Dahlin  <johan@gnome.org>
      
      	* gtk/gtkbuilder.c:
      	* gtk/gtkbuilderparser.c:
      	* gtk/gtkbuilderprivate.h:
      	Do not use g_error for a few more errors, instead set
      	the GError sent in through add_from_file/add_from_string.
      	* tests/buildertest.c:
      	Add a couple of new parsing tests.
      	(#519199, Pavel Syomin)
      
      
      svn path=/trunk/; revision=19681
      a57b66aa
  29. 12 Feb, 2008 1 commit
    • Matthias Clasen's avatar
      Fix some i18n errors. Pointed out by Behdad Esfahbod. · 9d695473
      Matthias Clasen authored
      2008-02-12  Matthias Clasen  <mclasne@redhat.com>
      
              * gtk/gtkpapersize.c:
              * gtk/gtkprintoperation.c:
              * gtk/gtkvolumebutton.c:
              * gtk/gtkbulderparser.c: Fix some i18n errors. Pointed
              out by Behdad Esfahbod.
      
      
      
      svn path=/trunk/; revision=19547
      9d695473
  30. 30 Jan, 2008 1 commit
    • Michael Natterer's avatar
      use the right type for "subparser_data" and remove the (gpointer*) cast. · 63af2cd0
      Michael Natterer authored
      2008-01-30  Michael Natterer  <mitch@imendio.com>
      
      	* gtk/gtkbuilderparser.c (parse_custom): use the right type for
      	"subparser_data" and remove the (gpointer*) cast. Fixes bogus
      	aliasing warning.
      
      	* gtk/updateiconcache.c (add_string): cast const gchar* to
      	gpointer when inserting in a GHashTable.
      
      	* tests/testcalendar.c (calendar_detail_cb): remove const from
      	return value since it's a newly allocated string.
      
      	(calendar_update_details): free the detail.
      
      
      svn path=/trunk/; revision=19431
      63af2cd0
  31. 06 Jan, 2008 1 commit
    • Johan Dahlin's avatar
      Allow domains to be overridden in <interface>'s if a translation-domain is · 0e09e8b3
      Johan Dahlin authored
      2008-01-06  Johan Dahlin  <johan@gnome.org>
      
      	* gtk/gtkbuilderparser.c (parse_interface): 
      	Allow domains to be overridden in <interface>'s if a translation-domain
      	is set in the builder.
      	(_gtk_builder_parser_parse_buffer): Do not modify the translation-domain
      	of the builder, make the domain set in the <interface> apply only to strings
      	in that interface.
      	(#496831, Ryan Lortie)
      
      
      svn path=/trunk/; revision=19316
      0e09e8b3
  32. 10 Nov, 2007 4 commits
  33. 08 Nov, 2007 1 commit
    • Allison Karlitskaya's avatar
      Add GString 'text' to the property info structure. Used to accumulate · 36605333
      Allison Karlitskaya authored
      2007-11-07  Ryan Lortie  <desrt@desrt.ca>
      
              * gtk/gtkbuilderprivate.h: Add GString 'text' to the property info
              structure.  Used to accumulate property text across multiple 'text'
              calls.
      
              * gtk/gtkbuilderparser.c: Instead of translating/copying text on each
              'text' call while in <property> accumulate the text until the end and
              do it all in one go.  This fixes handling of <!-- --> inside
              properties as well as <property/> cases.
      
      
      svn path=/trunk/; revision=18970
      36605333