summaryrefslogtreecommitdiff
path: root/src/glade-widget-class.h
diff options
context:
space:
mode:
authorChema Celorio <chema@celorio.com>2001-09-04 04:43:56 +0000
committerJose Maria Celorio <chema@src.gnome.org>2001-09-04 04:43:56 +0000
commita70b7edb583ce27ec63e34a9a63868500d107e32 (patch)
treea7aaa561ec1ababaada7113909ab3d6ffb807aa3 /src/glade-widget-class.h
parent5edecc7430a87a73cf63951ba98f25cb3a6fea48 (diff)
downloadglade-a70b7edb583ce27ec63e34a9a63868500d107e32.tar.gz
don't unref the cell nor the column. Thanks jacob@ximian.com
2001-09-03 Chema Celorio <chema@celorio.com> * src/glade-project-view.c (glade_project_view_create_widget): don't unref the cell nor the column. Thanks jacob@ximian.com 2001-09-03 Chema Celorio <chema@celorio.com> * src/glade.h: add new xml tags * src/glade-xml-utils.h: standarize a lot of the calls to xml-utils and rename all the calling funcitions to the new names * src/glade-widget.c (glade_widget_new): add a project parameter needed for loading objects. (glade_widget_create_gtk_widget): only call the widget resize when the object is an actual widget (v.s. beeing an object like a gtkadjustment) * src/glade-widget-class.c (glade_widget_class_set_type): call get_type_from_name and move the code to get the type there (glade_widget_class_load_packing_properties_from_node): impl. (glade_widget_class_load_packing_properties): impl. * src/glade-utils.c (glade_util_get_type_from_name): move here * src/glade-property.c (glade_property_new_from_class): set property->child for type = _TYPE_OBJECT (glade_property_set_enum): s/choice/enum * src/glade-packing.c (glade_packing_add_properties_from_list): add packing properties too (glade_packing_property_get_from_class): impl. * src/glade-gtk.c (glade_gtk_button_set_stock): implement stock buttons * src/glade-editor.c (glade_editor_property_changed_enum): s/choice/enum * src/glade-choice.c (glade_enum_from_string): add a temp entry for gtk-ok, glade-none and gtk-cancel. (glade_choice_list_new_from_node): change the XML tag name to ENUMS from CHOICE * src/glade-catalog.h: add prototype for glade_catalog_get * src/glade-catalog.c (glade_catalog_get): impl. (glade_catalog_load): after loading all the widgets load the packing properties.
Diffstat (limited to 'src/glade-widget-class.h')
-rw-r--r--src/glade-widget-class.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/glade-widget-class.h b/src/glade-widget-class.h
index a41cdad5..99034a20 100644
--- a/src/glade-widget-class.h
+++ b/src/glade-widget-class.h
@@ -32,6 +32,7 @@ struct _GladeWidgetClass {
GType type; /* GType of the widget */
gchar *name; /* Name of the widget, for example GtkButton */
+ gchar *xml_file; /* Name of the xml file for this type without a path */
GdkPixmap *pixmap; /* The loaded pixmap for the icon of this widget type */
GdkBitmap *mask; /* The mask for the loaded pixmap */
@@ -53,6 +54,8 @@ struct _GladeWidgetClass {
*/
GList *signals; /* List of GladeWidgetClassSignal objects */
+
+ GList *packing_properties; /* List of Packing GladePackingProperties */
void (*placeholder_replace) (GtkWidget *current,
GtkWidget *new,
@@ -84,6 +87,9 @@ gboolean glade_widget_class_is (GladeWidgetClass *class, const gchar *name)
GParamSpec * glade_widget_class_find_spec (GladeWidgetClass *class, const gchar *name);
void glade_widget_class_dump_param_specs (GladeWidgetClass *class);
+/* Packing properties */
+void glade_widget_class_load_packing_properties (GladeWidgetClass *class);
+
G_END_DECLS
#endif /* __GLADE_WIDGET_CLASS_H__ */