1. 08 Apr, 2013 3 commits
    • Tristan Van Berkom's avatar
      Add Composite Child machinery and APIs to GtkWidget · 3b7fc8cd
      Tristan Van Berkom authored
      This commit implements the needed machinery for GtkWidget
      to build it's composite content from GtkBuilder XML and
      adds the following API:
        o gtk_widget_init_template()
          An api to be called in instance initializers of any
          GtkWidget subclass that uses template XML to build it's components.
        o gtk_widget_class_set_template()
          API to associate GtkBuilder XML to a given GtkWidget subclass
        o gtk_widget_class_automate_child()
          API to declare an object built by GtkBuilder to be associated
          with an instance structure offset and automatically set.
       o gtk_widget_get_automated_child()
         API for bindings to fetch a child declared to be automated by
         gtk_widget_class_automate_child(), for the case where bindings
         do not generate GObjects under the hood and cannot use structure
         offsets to resolve composite object pointers.
       o gtk_widget_class_declare_callback[s]()
         Declare static functions to be used in signal callbacks from
         a given class's template XML
       o gtk_widget_class_set_connect_func()
         API for bindings to override the signal connection machinery
         for a given GtkWidget derived class.
    • 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.
    • Tristan Van Berkom's avatar
      GtkBuilder: Added api to allow private signal callbacks · 82583640
      Tristan Van Berkom authored
      In preperation for composite objects, for better encapsulation
      the following APIs are added to allow handling of signals declared
      in the XML with callbacks declared statically.
        o gtk_builder_add_callback_symbol[s]()
          Adds a symbol to the internal symbol hash
        o gtk_builder_lookup_symbol()
          Looks up a symbol, exposed in case added symbols are used
          in conjunction with gtk_builder_connect_signals_full()
      The default implementation of gtk_builder_connect_signals() now
      does not have a strong requirement on GModule (or a strong requirement
      on symbols being declared in the global namespace). Instead GModule
      is used as a fallback in the case that symbols are not declared
  2. 28 Dec, 2012 1 commit
  3. 18 Dec, 2012 1 commit
  4. 10 Dec, 2012 1 commit
  5. 24 Sep, 2012 2 commits
  6. 27 Feb, 2012 1 commit
  7. 16 Jan, 2012 1 commit
  8. 21 Dec, 2010 1 commit
    • Matthias Clasen's avatar
      Merge libgdk and libgtk · 07d49ee5
      Matthias Clasen authored
      This commit does a number of things:
      - remove some dead wchar configury from configure.ac and gdkconfig.h
      - repurpose gdkconfig.h as header that contains GDK_WINDOWING_foo
        macros for each included backend, include it in gdk.h and install
        it in $includedir instead of below $libdir
      - drop the backend from the library names
      - build libgdk-3.0.la as a convenience lib and include it in libgtk-3.0.la
      It does not yet enable building multiple backends at the same time.
  9. 13 Jul, 2010 1 commit
  10. 02 May, 2010 1 commit
  11. 28 Apr, 2010 1 commit
  12. 07 Apr, 2009 1 commit
  13. 06 Nov, 2008 1 commit
  14. 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
  15. 01 Jul, 2008 1 commit
  16. 30 Jun, 2008 1 commit
    • Cody Russell's avatar
      Practically everything changed. · fce9c8b7
      Cody Russell authored
      2008-06-30  Cody Russell  <bratsche@gnome.org>
              * Practically everything changed.
              Change	all references	of GIMP	Toolkit	(and variations	of it)
              to GTK+	Toolkit, showing no mercy at all to our	beloved
      	ancestry. (#540529)
      svn path=/trunk/; revision=20709
  17. 20 Jun, 2008 3 commits
  18. 05 Jun, 2008 1 commit
  19. 28 May, 2008 1 commit
    • Michael Natterer's avatar
      define __GTK_H_INSIDE__ around including all other headers. · eff99c28
      Michael Natterer authored
      2008-05-28  Michael Natterer  <mitch@imendio.com>
      	* gtk/gtk.h: define __GTK_H_INSIDE__ around including all other
      	* gtk/gtktypebuiltins.h.template
      	* gtk/gtkversion.h.in
      	* gtk/gtk*.h: add single-include guards that #error out if
      	GTK_DISABLE_SINGLE_INCLUDES is defined and any of these files is
      	included individually.
      	* gtk/gtkprintbackend.h
      	* gtk/gtkprinter-private.h
      	* gtk/gtktextlayout.h
      	* gtk/gtktexttagprivate.h
      	* gtk/gtktexttypes.h
      	* gtk/gtktreedatalist.h: include <gtk/gtk.h> instead of individual
      	headers in these private or semi-private headers.
      	* gtk/gtkimmodule.h: also here because it's not in gtk.h.
      	* gtk/gtkpagesetupunixdialog.h
      	* gtk/gtkprinter.h
      	* gtk/gtkprintjob.h
      	* gtk/gtkprintunixdialog.h: likewise in the gtkunixprint headers.
      	* gtk/gtkclist.h
      	* gtk/gtkcombo.h
      	* gtk/gtkctree.h
      	* gtk/gtkfilesel.h
      	* gtk/gtkitemfactory.h
      	* gtk/gtklist.h
      	* gtk/gtklistitem.h
      	* gtk/gtkoldeditable.h
      	* gtk/gtkoptionmenu.h
      	* gtk/gtkpixmap.h
      	* gtk/gtkpreview.h
      	* gtk/gtksignal.h
      	* gtk/gtktipsquery.h: whenever possible, include only <gtk/gtk.h>
      	instead of individual headers in these deprecated headers. They
      	don't get included at all when GTK_DISABLE_DEPRECATED is defined,
      	so if an app needs them anyway, it must undef GTK_DISABLE_DEPRECATED
      	and include them individually, which should continue to work.
      	* gtk/gtkclist.c: include "gtkctree.h" because of the change
      svn path=/trunk/; revision=20221
  20. 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
  21. 30 Jun, 2007 1 commit
    • Johan Dahlin's avatar
      Improve error handling for enum/flags, rename the converter functions to · aaab9c05
      Johan Dahlin authored
      2007-06-30  Johan Dahlin  <jdahlin@async.com.br>
          * gtk/gtkbuilder.c:
          * gtk/gtkbuilder.h:
          * gtk/gtkbuilderparser.c:
          * gtk/gtkbuilderprivate.h:
          * gtk/gtkwidget.c: 
          * tests/buildertest.c:
          Improve error handling for enum/flags, rename the converter functions
          to be consistent. Add tests. Fixes #452465
      svn path=/trunk/; revision=18312
  22. 27 Jun, 2007 2 commits
    • Johan Dahlin's avatar
      Add GtkBuilder and GError arguments to gtk_builder_value_from_string and · ec3bb377
      Johan Dahlin authored
          * gtk/gtkbuilder.c: (gtk_builder_get_parameters),
          * gtk/gtkbuilder.h:
          * gtk/gtkcontainer.c: (gtk_container_buildable_set_child_property),
          * gtk/gtkliststore.c: (list_store_text):
          * tests/buildertest.c: (test_value_from_string):
          Add GtkBuilder and GError arguments to gtk_builder_value_from_string
          and gtk_builder_value_from_string_type. (#451428)
      svn path=/trunk/; revision=18262
    • Johan Dahlin's avatar
      Set an error if we encounter properties without values set (#451303, · ae800a34
      Johan Dahlin authored
          * gtk/gtkbuilder.h (enum): 
          * gtk/gtkbuilderparser.c (end_element): 
          * tests/buildertest.c (test_parser): 
          Set an error if we encounter properties without values set
          (#451303, Philip Withnall)
      svn path=/trunk/; revision=18252
  23. 16 Jun, 2007 1 commit
  24. 15 Jun, 2007 1 commit
    • Johan Dahlin's avatar
      Add GtkBuilder, fixes #172535 · 4d638bf0
      Johan Dahlin authored
      2007-06-15  Johan Dahlin  <jdahlin@async.com.br>
          * demos/gtk-demo/Makefile.am:
          * demos/gtk-demo/builder.c: (quit_activate), (about_activate),
          * demos/gtk-demo/demo.ui:
          * docs/reference/gtk/gtk-docs.sgml:
          * docs/reference/gtk/gtk-sections.txt:
          * docs/reference/gtk/gtk.types:
          * docs/reference/gtk/tmpl/gtkbuildable.sgml:
          * docs/reference/gtk/tmpl/gtkbuilder.sgml:
          * gtk/Makefile.am:
          * gtk/gtk.h:
          * gtk/gtk.symbols:
          * gtk/gtkaction.c: (gtk_action_buildable_init),
          (gtk_action_buildable_set_name), (gtk_action_buildable_get_name):
          * gtk/gtkactiongroup.c: (gtk_action_group_get_type),
          * gtk/gtkbuildable.c: (gtk_buildable_get_type),
          (gtk_buildable_set_name), (gtk_buildable_get_name),
          (gtk_buildable_add), (gtk_buildable_set_property),
          (gtk_buildable_parser_finished), (gtk_buildable_construct_child),
          (gtk_buildable_custom_tag_start), (gtk_buildable_custom_tag_end),
          * gtk/gtkbuildable.h:
          * gtk/gtkbuilder.c: (gtk_builder_class_init), (gtk_builder_init),
          (gtk_builder_finalize), (gtk_builder_set_property),
          (gtk_builder_get_property), (_gtk_builder_resolve_type_lazily),
          (gtk_builder_get_parameters), (gtk_builder_get_internal_child),
          (_gtk_builder_construct), (_gtk_builder_add),
          (apply_delayed_properties), (_gtk_builder_finish),
          (gtk_builder_new), (gtk_builder_add_from_file),
          (gtk_builder_add_from_string), (gtk_builder_get_object),
          (object_add_to_list), (gtk_builder_get_objects),
          (gtk_builder_connect_signals), (gtk_builder_connect_signals_full),
          (_gtk_builder_enum_from_string), (_gtk_builder_flags_from_string),
          (gtk_builder_get_type_from_name), (gtk_builder_error_quark):
          * gtk/gtkbuilder.h:
          * gtk/gtkbuilderparser.c: (state_push), (state_peek), (state_pop),
          (error_missing_attribute), (error_invalid_attribute),
          (error_invalid_tag), (builder_construct), (parse_object),
          (free_object_info), (_get_type_by_symbol), (parse_child),
          (free_child_info), (parse_property), (free_property_info),
          (parse_signal), (_free_signal_info), (parse_interface),
          (create_subparser), (free_subparser), (subparser_start),
          (subparser_end), (parse_custom), (start_element), (end_element),
          (text), (_gtk_builder_parser_parse_buffer):
          * gtk/gtkbuilderprivate.h:
          * gtk/gtkcelllayout.c: (attributes_start_element),
          * gtk/gtkcelllayout.h:
          * gtk/gtkcellview.c: (gtk_cell_view_buildable_init),
          * gtk/gtkcolorseldialog.c:
          * gtk/gtkcombobox.c: (gtk_combo_box_buildable_init),
          * gtk/gtkcomboboxentry.c:
          * gtk/gtkcontainer.c: (gtk_container_get_type),
          (gtk_container_buildable_init), (gtk_container_buildable_add),
          (attributes_start_element), (attributes_text_element),
          * gtk/gtkdebug.h:
          * gtk/gtkdialog.c: (gtk_dialog_buildable_interface_init),
          (attributes_start_element), (attributes_text_element),
          * gtk/gtkentrycompletion.c: (gtk_entry_completion_buildable_init):
          * gtk/gtkexpander.c: (gtk_expander_buildable_add),
          * gtk/gtkfontsel.c:
          * gtk/gtkframe.c: (gtk_frame_buildable_init),
          * gtk/gtkiconview.c: (gtk_icon_view_buildable_init),
          * gtk/gtkliststore.c: (gtk_list_store_buildable_init),
          (list_store_start_element), (list_store_end_element),
          (list_store_text), (gtk_list_store_buildable_custom_tag_start),
          * gtk/gtkmain.c:
          * gtk/gtknotebook.c: (gtk_notebook_buildable_init),
          * gtk/gtksizegroup.c: (gtk_size_group_buildable_init),
          * gtk/gtktreestore.c: (gtk_tree_store_buildable_init),
          * gtk/gtktreeview.c: (gtk_tree_view_buildable_init),
          * gtk/gtktreeviewcolumn.c: (gtk_tree_view_column_buildable_init):
          * gtk/gtkuimanager.c: (gtk_ui_manager_buildable_init),
          * gtk/gtkwidget.c: (gtk_widget_get_type),
          (gtk_widget_buildable_set_name), (gtk_widget_buildable_get_name),
          (gtk_widget_buildable_parser_finshed), (accel_group_start_element),
          * gtk/gtkwindow.c: (gtk_window_buildable_interface_init),
          * tests/Makefile.am:
          * tests/buildertest.c: (builder_new_from_string), (test_parser),
          (signal_normal), (signal_after), (signal_object),
          (signal_object_after), (signal_first), (signal_second),
          (signal_extra), (signal_extra2), (test_connect_signals),
          (test_uimanager_simple), (test_domain), (test_translation),
          (test_sizegroup), (test_list_store), (test_tree_store),
          (test_types), (test_spin_button), (test_notebook),
          (test_construct_only_property), (test_children),
          (test_child_properties), (test_treeview_column), (test_icon_view),
          (test_combo_box), (test_combo_box_entry), (test_cell_view),
          (test_dialog), (test_accelerators), (test_widget), (main):
          Add GtkBuilder, fixes #172535
      svn path=/trunk/; revision=18141