diff options
author | Tristan Van Berkom <tvb@src.gnome.org> | 2008-10-28 05:07:30 +0000 |
---|---|---|
committer | Tristan Van Berkom <tvb@src.gnome.org> | 2008-10-28 05:07:30 +0000 |
commit | e86dd963abcd73552f07f84ae8d569af1343a481 (patch) | |
tree | 1386812ab0130243fe7d1dec940328255bd7e8db /gladeui/glade-widget.h | |
parent | c20614b4ddfceb9bc776322a41195340aa86f590 (diff) | |
download | glade-e86dd963abcd73552f07f84ae8d569af1343a481.tar.gz |
Reimplemented GtkMenuItem and subclasses from top to bottom
* plugins/gtk+/gtk+.xml.in, plugins/gtk+/glade-gtk.c:
Reimplemented GtkMenuItem and subclasses from top to bottom
* plugins/gtk+/glade-image-item-editor.[ch], plugins/gtk+/Makefile.am:
New GtkImageMenuItem editor (that embeds the child image editor when needed)
* gladeui/glade-command.[ch]: Added glade_command_[un]protect_widget()
* gladeui/glade-widget.[ch]: Added glade_widget_[un]protect()
protected widgets come with a message and cannot be manually deleted
from the project.
* plugins/gtk+/glade-image-editor.c, plugins/gtk+/glade-button-editor.c,
plugins/gtk+/glade-tool-button-editor.c, gladeui/glade-editor-table.c:
Fixed to:
- not reffer to child editables in finalize
- always removed external signals and weak references from finalize
* gladeui/glade-base-editor.c: Fixed to allow properties expand/fill
in both label and entry.
svn path=/trunk/; revision=2006
Diffstat (limited to 'gladeui/glade-widget.h')
-rw-r--r-- | gladeui/glade-widget.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gladeui/glade-widget.h b/gladeui/glade-widget.h index f22b511c..c6c0d43c 100644 --- a/gladeui/glade-widget.h +++ b/gladeui/glade-widget.h @@ -41,6 +41,12 @@ struct _GladeWidget * in this widget */ + gchar *protection; /* custom editors are allowed to add protected widgets that + * cannot be deleted by the user in normal ways. + * (this is a message to be displayed in the dialog + * when the user tries to delete it). + */ + gchar *internal; /* If the widget is an internal child of * another widget this is the name of the * internal child, otherwise is NULL. @@ -224,6 +230,7 @@ void glade_widget_write (GladeWidget *wi GladeXmlNode *node); void glade_widget_write_child (GladeWidget *widget, + GladeWidget *child, GladeXmlContext *context, GladeXmlNode *node); @@ -403,6 +410,10 @@ void glade_widget_pop_superuser (void); void glade_widget_set_support_warning (GladeWidget *widget, const gchar *warning); +void glade_widget_protect (GladeWidget *widget, + const gchar *warning); +void glade_widget_unprotect (GladeWidget *widget); + G_END_DECLS #endif /* __GLADE_WIDGET_H__ */ |