diff options
author | Tristan Van Berkom <tvb@src.gnome.org> | 2006-03-20 15:09:29 +0000 |
---|---|---|
committer | Tristan Van Berkom <tvb@src.gnome.org> | 2006-03-20 15:09:29 +0000 |
commit | e489948514d5946e22be8195c0cd11b31a8bfe80 (patch) | |
tree | 44e851996de8f4f54c9765f6f2c8dfaf397b7285 /src/glade-widget.h | |
parent | b4da9d952fec4849b5ab83f9c0a480185d2a8acc (diff) | |
download | glade-e489948514d5946e22be8195c0cd11b31a8bfe80.tar.gz |
Added a bit about anarchist children
* doc/children.sgml: Added a bit about anarchist children
* doc/widgetclasses.sgml: Removed the notion of get_anarchist_children()
* doc/gladeui-sections.txt: removed undefined symbols
* doc/tmpl/*: auto-updates templates.
* src/glade-gtk.c: Updated to use the new glade_widget_new_for_internal_child
API
* src/glade-widget-class.[ch], src/glade.h: Removed notion of anarchist children
* src/glade-widget.[ch]: Added "anarchist" property and "anarchist" argument
to glade_widget_new_for_internal_child() (only internal children can be
anarchists).
* src/glade-project-view.[ch]: Dramaticly reworked, now each project has its
own metadata struct where signal ids and project view state is stored,
project signals now are only disconnected at project close time.
The open treeview leafs and scrollbar positions are now saved/restored
when switching active projects.
* src/glade-project-window.c:
o Translated window title
o Fixed a bug where the loaded project title apears as
unsaved.
* src/glade-utils.c: Added comments.
* widgets/gtk+.xml.in: Removed mention of the get_anarchist_children func,
override the get_children func for GtkCombo to additionally return the
combo->list member (which is an anarchist child).
Also added a gtk_container_remove remove-function for GtkListItem since
it seemed to be empty and causing errors.
Diffstat (limited to 'src/glade-widget.h')
-rw-r--r-- | src/glade-widget.h | 29 |
1 files changed, 18 insertions, 11 deletions
diff --git a/src/glade-widget.h b/src/glade-widget.h index 83dbe824..4ed04c02 100644 --- a/src/glade-widget.h +++ b/src/glade-widget.h @@ -30,16 +30,22 @@ struct _GladeWidget GladeWidget *parent; /* A pointer to the parent widget in the heirarchy */ - char *name; /* The name of the widget. For example window1 or - * button2. This is a unique name and is the one - * used when loading widget with libglade - */ - - char *internal; /* If the widget is an internal child of - * another widget this is the name of the - * internal child, otherwise is NULL. - * Internal children cannot be deleted. - */ + gchar *name; /* The name of the widget. For example window1 or + * button2. This is a unique name and is the one + * used when loading widget with libglade + */ + + gchar *internal; /* If the widget is an internal child of + * another widget this is the name of the + * internal child, otherwise is NULL. + * Internal children cannot be deleted. + */ + + gboolean anarchist; /* Some composite widgets have internal children + * that are not part of the same heirarchy; hence 'anarchists', + * typicly a popup window or its child (we need to mark + * them so we can avoid bookkeeping packing props on them etc.). + */ GObject *object; /* A pointer to the object that was created. * if it is a GtkWidget; it is shown as a "view" @@ -115,7 +121,8 @@ GladeWidget * glade_widget_new (GladeWidget *parent, LIBGLADEUI_API GladeWidget * glade_widget_new_for_internal_child (GladeWidget *parent, GObject *internal_object, - const gchar *internal_name); + const gchar *internal_name, + gboolean anarchist); LIBGLADEUI_API void glade_widget_set_name (GladeWidget *widget, const gchar *name); |