summaryrefslogtreecommitdiff
path: root/gtk/gtkbuilder.c
Commit message (Collapse)AuthorAgeFilesLines
* Added <mime-types> and <patterns> parsing support to GtkFileFilter.Tristan Van Berkom2011-01-271-0/+1
|
* Added links to the GtkTextTagTable and GtkMenuToolButton GtkBuildable ↵Tristan Van Berkom2011-01-271-3/+5
| | | | documentation from GtkBuilder documentation.
* Added links to the GtkComboBox/GtkRecentFilter GtkBuildable documentation ↵Tristan Van Berkom2011-01-261-0/+2
| | | | from GtkBuilder documentation.
* [GI] Add missing (out) and (array) annotationsPavel Holejsovsky2011-01-201-2/+2
|
* Fix gtk_builder_add_objects_from_file g-i annotationPaolo Borelli2010-12-081-1/+1
| | | | Use the same annotation already used for add_objects_from_string
* rgba: Invert the arguments and improve bindabilityEmmanuele Bassi2010-11-281-1/+1
| | | | | | | | Since parse() is a method of the Gdk.RGBA class, the GdkRGBA pointer should be the first argument, and the string the second one, to allow a more natural binding. https://bugzilla.gnome.org/show_bug.cgi?id=635879
* Use g_ascii_strto[u]ll instead of strto[u]l=Christian Persch2010-10-251-11/+15
| | | | | | We don't want GtkBuilder input to be locale-dependent. Bug #632503
* GtkBuilder: Prepare for parsing GdkRGBA types.Carlos Garnacho2010-10-221-0/+16
|
* Remove GtkComboBoxEntry and the combo box text apiMatthias Clasen2010-10-201-1/+0
|
* Remove GtkObject completelyMatthias Clasen2010-09-261-0/+1
|
* introspection: Fix typo in annotationFlorian Müllner2010-09-241-1/+1
|
* Replace gtk_debug_flags with getter and setter functionsTor Lillqvist2010-09-081-1/+1
| | | | | | Preferrably should be made just into a local variable for libgtk like _gdk_debug_flags for libgdk. But for now used by gtk/tests/textbuffer.c and modules/printbackends/cups/gtkprintbackendcups.c.
* add annotations for tranfer and scope so that methods are exported by GIJohn (J5) Palmieri2010-09-071-1/+1
|
* add array annotation to gtk_builder_add_objects_from_stringJohn (J5) Palmieri2010-09-071-1/+1
|
* gtkbuilder: Do not allocate colors when parsing GtkBuilder filesBenjamin Otte2010-08-101-5/+3
|
* gtk/: fully remove gtkalias hacksJavier Jardón2010-07-101-4/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=623845
* Move documentation to inline comments: GtkBuilderTadej Borovšak2010-04-281-0/+218
| | | | | | Fixes https://bugzilla.gnome.org/show_bug.cgi?id=611742 Signed-off-by: Javier Jardón <jjardon@gnome.org>
* Add notes to GtkBuilder docs about the possible error domains, closed bgo ↵Tristan Van Berkom2010-04-061-0/+20
| | | | #560147
* Fixed gtk_builder_value_from_string_type() to always assign the GErrorTristan Van Berkom2010-04-061-5/+10
| | | | when returning FALSE, fixes bgo #615000.
* Add introspection annotation for gtk_builder_get_objectFlorian Müllner2010-02-251-2/+2
|
* [annotations] Add allow-noneJohan Dahlin2010-02-191-7/+7
| | | | | | | | This commit was created using a script that searched for all docstrings containing a parameter and the string 'or %NULL'. Gdk backends and demos excluded as they are not part of a public API https://bugzilla.gnome.org/show_bug.cgi?id=610474
* [introspection] Merge in Gtk-custom.c annotationsColin Walters2009-12-161-1/+1
| | | | | | | | The Gtk-custom.c file in gir-repository contained a number of introspection annotations. Merge those into the GTK source files. Some documentation was moved from the tmpl/ files to accomodate the addition of annotations.
* Fix a GtkBuilder crashMatthias Clasen2009-04-061-1/+8
| | | | | Always set an error when returning FALSE from gtk_builder_value_from_string. This fixes the crash reported in bug 532858.
* Bug 447998 - GtkBuilder does not support building parts of the xml treePaolo Borelli2008-07-161-3/+123
| | | | | | | | | | | | | | | | | | | 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
* Revert name changeCody Russell2008-07-011-1/+1
| | | | svn path=/trunk/; revision=20724
* Practically everything changed.Cody Russell2008-06-301-1/+1
| | | | | | | | | | | | | 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
* Include "config.h" instead of <config.h> Command used: find -nameJohan Dahlin2008-06-221-1/+1
| | | | | | | | | | | | 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
* Bug 503071 – Application direction changes to right to left even ifBehdad Esfahbod2008-06-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Chain up in buildable_finish()Tristan Van Berkom2008-04-161-2/+10
| | | | | | | | | | | | | | * gtk/gtkwindow.c: Chain up in buildable_finish() * gtk/gtkbuilder.c: _gtk_builder_get_absolute_filename() handle cases where g_path_get_dirname() returns "." * docs/reference/gtk/tmpl/gtklabel.sgml, docs/reference/gtk/tmpl/gtkbuilder.sgml: Added documentation for the <attributes> tags on GtkLabel svn path=/trunk/; revision=20008
* - Treat enums like enums and not values - Avoid invalid free, in case ofJohan Dahlin2008-03-071-6/+1
| | | | | | | | | | | | | | | | | | 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
* Implement GtkBuildable on GtkIconFactory, to make it possible to registerJohan Dahlin2008-03-071-12/+21
| | | | | | | | | | | | | | | | 2008-03-06 Johan Dahlin <jdahlin@async.com.br> * docs/reference/gtk/tmpl/gtkiconfactory.sgml: * gtk/gtkbuilder.c: * gtk/gtkbuilderprivate.h: * gtk/gtkiconfactory.c: * tests/buildertest.c: Implement GtkBuildable on GtkIconFactory, to make it possible to register custom stock icons. Fixes #517066 svn path=/trunk/; revision=19726
* Add missing g_return_val_if_fail checks for public API.Johan Dahlin2008-03-011-0/+9
| | | | | | | | | | 2008-02-29 Johan Dahlin <johan@gnome.org> * gtk/gtkbuilder.c: Add missing g_return_val_if_fail checks for public API. svn path=/trunk/; revision=19684
* Do not use g_error for a few more errors, instead set the GError sent inJohan Dahlin2008-03-011-9/+36
| | | | | | | | | | | | | | | | 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
* fix missing call to g_type_class_unref in case of error. (#517563)Marc-Andre Lureau2008-02-201-8/+11
| | | | | | | | | 2008-02-20 Marc-Andre Lureau <marcandre.lureau@gmail.com> * gtk/gtkbuilder.c (_gtk_builder_enum_from_string): fix missing call to g_type_class_unref in case of error. (#517563) svn path=/trunk/; revision=19619
* Improve the documentation for gtk_builder_connect_signals. (#514471)Philip Withnall2008-02-101-0/+6
| | | | | | | | | | 2008-02-10 Philip Withnall <pwithnall@svn.gnome.org> * gtk/gtkbuilder.c: Improve the documentation for gtk_builder_connect_signals. (#514471) svn path=/trunk/; revision=19507
* Avoid adding unnecessary trailing newlines to g_warning calls.Johan Dahlin2008-01-061-4/+4
| | | | | | | | | | 2008-01-06 Johan Dahlin <johan@gnome.org> * gtk/gtkbuilder.c: Avoid adding unnecessary trailing newlines to g_warning calls. svn path=/trunk/; revision=19315
* Avoid some compiler warnings (#507000).Mathias Hasselmann2008-01-051-2/+3
| | | | | | | | | * gtk/gtkbuilder.c, gtk/gtkbuilderprivate.h: Use proper sign for value argument of _gtk_builder_flags_from_string. * gtk/gtkwidget.c: Don't alias the child pointer passed to gdk_window_get_user_data. svn path=/trunk/; revision=19306
* add clarification stating that the construct_child function is responsibleRyan Lortie2007-11-271-1/+0
| | | | | | | | | | | | | | | | | | 2006-11-26 Ryan Lortie <desrt@desrt.ca> * docs/reference/gtk/tmpl/gtkbuildable.sgml: add clarification stating that the construct_child function is responsible for returning a reference. * gtkbuilder.c (_gtk_builder_construct): remove g_object_ref() for objects from constructors * gtkuimanager.c (gtk_ui_manager_buildable_construct_child): add g_object_ref() to this construction function (it's the only implementer in GTK) Fixes #496645. svn path=/trunk/; revision=19075
* remove concept of root objects and just refcount all objects in theRyan Lortie2007-11-271-15/+16
| | | | | | | | | | 2006-11-26 Ryan Lortie <desrt@desrt.ca> * gtkbuilder.c: remove concept of root objects and just refcount all objects in the builder. Fixes #496651. svn path=/trunk/; revision=19074
* Convert delayed_properties hashtable to linked list. Fixes #495769.Ryan Lortie2007-11-111-31/+16
| | | | | | | | | | 2007-11-10 Ryan Lortie <desrt@desrt.ca> * gtk/gtkbuilder.c: Convert delayed_properties hashtable to linked list. Fixes #495769. svn path=/trunk/; revision=18983
* Don't leak buffer if an error occurs.Matthias Clasen2007-11-101-2/+2
| | | | | | | | | | | 2007-11-10 Matthias Clasen <mclasen@redhat.com> * gtk/gtkbuilder.c (gtk_builder_add_from_file): Don't leak buffer if an error occurs. svn path=/trunk/; revision=18979
* don't leak 'filename' field memory when loading more than one file intoMatthias Clasen2007-11-091-0/+2
| | | | | | | | | | | 2007-11-08 Matthias Clasen <mclasen@redhat.com> * gtk/gtkbuilder.c: don't leak 'filename' field memory when loading more than one file into the same GtkBuilder instance. Noticed by Ryan Lortie. svn path=/trunk/; revision=18973
* Chain up to the parent's finalize virtual function.Emmanuele Bassi2007-10-301-11/+14
| | | | | | | | | 2007-10-30 Emmanuele Bassi <ebassi@gnome.org> * gtk/gtkbuilder.c (gtk_builder_finalize): Chain up to the parent's finalize virtual function. svn path=/trunk/; revision=18952
* Improve gtk_builder_get_type_from_name() documentation. (#461222, MurrayJohan Dahlin2007-10-241-1/+2
| | | | | | | | | | 2007-10-24 Johan Dahlin <jdahlin@async.com.br> * gtk/gtkbuilder.c: Improve gtk_builder_get_type_from_name() documentation. (#461222, Murray Cumming) svn path=/trunk/; revision=18948
* Parse signals after <child> tags and add tests. (#468793, Benjamin Otte)Johan Dahlin2007-10-241-2/+8
| | | | | | | | | | | | | | | | 2007-10-24 Johan Dahlin <jdahlin@async.com.br> * gtk/gtkbuilder.c: (_gtk_builder_construct), (_gtk_builder_add_signals): * gtk/gtkbuilderparser.c: (end_element): * gtk/gtkbuilderprivate.h: * tests/buildertest.c: (test_connect_signals): Parse signals after <child> tags and add tests. (#468793, Benjamin Otte) svn path=/trunk/; revision=18944
* Use gtk_ascii_tolower/toupper instead of the C library variants. (#488918,Johan Dahlin2007-10-221-7/+6
| | | | | | | | | | 2007-10-22 Johan Dahlin <jdahlin@async.com.br> * gtk/gtkbuilder.c: Use gtk_ascii_tolower/toupper instead of the C library variants. (#488918, Sertaç Ö. Yıldız) svn path=/trunk/; revision=18939
* 2.12.0GTK_2_12_0Matthias Clasen2007-09-141-1/+1
| | | | svn path=/trunk/; revision=18820
* copy filename to builder->priv instead of holding a reference to it. BugFernando Herrera2007-09-041-2/+3
| | | | | | | | | | | 2007-09-04 Fernando Herrera <fherrera@onirica.com> * gtk/gtkbuilder.c: (gtk_builder_finalize), (gtk_builder_add_from_file): copy filename to builder->priv instead of holding a reference to it. Bug #472643 svn path=/trunk/; revision=18722
* Add a missing semi-colon in the doc string, spotted by Johannes SasonkoJohan Dahlin2007-07-061-1/+1
| | | | | | | | | | 2007-07-06 Johan Dahlin <jdahlin@async.com.br> * gtk/gtkbuilder.c (gtk_builder_get_type_from_name): Add a missing semi-colon in the doc string, spotted by Johannes Sasonko svn path=/trunk/; revision=18386
* Pixbuf propertiesMatthias Clasen2007-07-051-28/+67
| | | | svn path=/trunk/; revision=18383