summaryrefslogtreecommitdiff
path: root/gtk/gtkbuilder.h
diff options
context:
space:
mode:
authorRyan Lortie <desrt@desrt.ca>2013-06-18 10:19:44 -0400
committerRyan Lortie <desrt@desrt.ca>2013-06-18 10:21:27 -0400
commit7554c15e7bb729e3d3fedf04be6d0b253f38a13d (patch)
tree44c90751eaa1ccd14c186358d431b4b058006031 /gtk/gtkbuilder.h
parent1bc7359123aa188d4e33aaedf33068ce0bbc1a55 (diff)
downloadgtk+-7554c15e7bb729e3d3fedf04be6d0b253f38a13d.tar.gz
GtkBuilder: add new constructor APIs
Add new APIs gtk_builder_new_from_{file,resource,string}() and encourage their use over the older _add_from_...() APIs. https://bugzilla.gnome.org/show_bug.cgi?id=679930
Diffstat (limited to 'gtk/gtkbuilder.h')
-rw-r--r--gtk/gtkbuilder.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gtk/gtkbuilder.h b/gtk/gtkbuilder.h
index 7e260d19cd..5bdbe0d1dd 100644
--- a/gtk/gtkbuilder.h
+++ b/gtk/gtkbuilder.h
@@ -179,6 +179,13 @@ gboolean gtk_builder_value_from_string_type (GtkBuilder *builder,
const gchar *string,
GValue *value,
GError **error);
+GDK_AVAILABLE_IN_3_10
+GtkBuilder * gtk_builder_new_from_file (const gchar *filename);
+GDK_AVAILABLE_IN_3_10
+GtkBuilder * gtk_builder_new_from_resource (const gchar *resource_path);
+GDK_AVAILABLE_IN_3_10
+GtkBuilder * gtk_builder_new_from_string (const gchar *string,
+ gssize length);
GDK_AVAILABLE_IN_3_10
void gtk_builder_add_callback_symbol (GtkBuilder *builder,