diff options
author | Chema Celorio <chema@celorio.com> | 2001-08-06 17:12:14 +0000 |
---|---|---|
committer | Jose Maria Celorio <chema@src.gnome.org> | 2001-08-06 17:12:14 +0000 |
commit | ca932a90f7243dffa4914013749a75defa0fa65b (patch) | |
tree | 922a41c720484b785ae58cc56480d15d22b3afc3 /src/glade.h | |
parent | 37e38612d957322c6ce3987de22eaf5cab438cd1 (diff) | |
download | glade-ca932a90f7243dffa4914013749a75defa0fa65b.tar.gz |
handle the case where the property is queried from the gtkwidget v.s.
2001-08-06 Chema Celorio <chema@celorio.com>
* src/glade-widget.c (glade_widget_set_default_options_real): handle the case
where the property is queried from the gtkwidget v.s. setting a default one.
(glade_widget_free): implement.
(glade_widget_delete): add content.
(glade_widget_write): when saving a widget, add the packing properties too.
* src/glade-signal.c (glade_signal_free): impl.
* src/glade-signal-editor.c (glade_signal_editor_load_widget): handle a
widget->class = NULL for clearing the signal editor.
* src/glade-property.c (glade_property_new_from_class): handle properties
that the default is fetched from the gtkwidget itself, not set.
(glade_property_free): implement.
* src/glade-project.c (glade_project_selection_changed): implement.
(glade_project_remove_widget_real): impl.
(glade_project_remove_widget): impl.
* src/glade-project-window.c (gpw_delete_cb): implement.
* src/glade-project-view.h (struct _GladeProjectView): add the remove
signal id to the struct.
* src/glade-project-view.c (glade_project_view_remove_item): implement
for "Delete"
(glade_project_view_remove_widget_cb): ditto
(glade_project_view_set_project): connect and disconnect ->remove_item
* src/glade-placeholder.c (glade_placeholder_replace_$x): where
x are all the containers. Modify this functions so that we can
use them to replace a placeholder with a widget and the other
way arround. We need this when we delete a widget and want to
put a placeholder where the widget was.
* src/glade-packing.c (glade_packing_container_set_flag): impl.
(glade_packing_container_set_integer): impl.
(glade_packing_container_set_boolean): impl.
(glade_packing_table_set_flag): impl.
(glade_packing_table_set_integer): impl.
(glade_packing_box_set_boolean): impl.
(glade_packing_box_set_integer): impl.
(glade_packing_box_position_get): impl.
(glade_packing_box_position_set): when setting the pos of a child update the
property->value of the rest, cause it has (most likely) changed.
(table_props): add the rest of the properties
(box_props): ditto
* src/glade-editor.c (glade_editor_load_widget_page): handle a NULL class to
clear the page
(glade_editor_load_common_page): ditto
(glade_editor_load_item): ditto
(glade_editor_select_item_real): ditto
Diffstat (limited to 'src/glade.h')
-rw-r--r-- | src/glade.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/glade.h b/src/glade.h index cbd7fc38..11372e75 100644 --- a/src/glade.h +++ b/src/glade.h @@ -6,6 +6,11 @@ gchar * _ (gchar * name); #endif +#define g_ok_print g_print +/* I always grep for g_print to find left over debuging print's + * so for now, use g_ok_print on the code that is ment to do a g_print + * (like --dump GtkWindow). Later rename to g_print. Chema + */ #include "glade-types.h" #include "glade-utils.h" #include "glade-xml-utils.h" @@ -61,6 +66,8 @@ gchar * _ (gchar * name); #define GLADE_WIDGET_DATA_TAG "GladeWidgetDataTag" +#define GLADE_GET_DEFAULT_FROM_WIDGET "GladeGetDefaultFromWidget" + #define GLADE_XML_TAG_PROJECT "glade-interface" #define GLADE_XML_TAG_WIDGET "widget" #define GLADE_XML_TAG_PROPERTY "property" @@ -72,3 +79,6 @@ gchar * _ (gchar * name); #define GLADE_XML_TAG_CHILD "child" #define GLADE_XML_TAG_SIGNAL "signal" #define GLADE_XML_TAG_AFTER "after" +#define GLADE_XML_TAG_PACKING "packing" + + |