summaryrefslogtreecommitdiff
path: root/gtk/gtkbox.c
diff options
context:
space:
mode:
authorTim Janik <timj@gimp.org>1998-02-19 07:18:42 +0000
committerTim Janik <timj@src.gnome.org>1998-02-19 07:18:42 +0000
commit0ef453b82c2d486d7913517e2b72571b90de312a (patch)
tree4311d3c65dc22a71dcd759a7771987d31dc7bab1 /gtk/gtkbox.c
parenta4b322cccce97c4d75f32949d036861d0aa69bdb (diff)
downloadgdk-pixbuf-0ef453b82c2d486d7913517e2b72571b90de312a.tar.gz
present the argument access masks on their announcement.
Thu Feb 19 06:56:52 1998 Tim Janik <timj@gimp.org> * gtkbox.c: * gtkbutton.c: * gtkcontainer.c: * gtkframe.c: * gtklabel.c: * gtkobject.c: * gtkwidget.c: * gtkwindow.c: present the argument access masks on their announcement. * gtk/gtkobject.h: * gtk/gtkobject.c: (gtk_object_add_arg_type): take an additional argument describing the access mask of the new arg. this can be of GTK_ARG_READABLE, GTK_ARG_WRITABLE or GTK_ARG_READWRITE (the latter is an alias for the two previous ones). (gtk_object_query_args): provide an access_mask array if desired. * gtk/gtkwidget.c (gtk_widget_real_realize): realized the assumtion that widget is a NO_WINDOW widget in actuall code. * gtkwindow.c: slight changes to gtk_window_configure_event that will make the resizing behaviour a little less odd. sigh, for some (buggy) reason, there are still container resizes triggered by manual resizing to very small window sizes. the cointainer resizes will cause gtk_real_window_move_resize to be invoked, which makes the app look like it wants to fight the users resizing action. ;(
Diffstat (limited to 'gtk/gtkbox.c')
-rw-r--r--gtk/gtkbox.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkbox.c b/gtk/gtkbox.c
index ad4c11d65..dc3a38a65 100644
--- a/gtk/gtkbox.c
+++ b/gtk/gtkbox.c
@@ -86,8 +86,8 @@ gtk_box_class_init (GtkBoxClass *class)
parent_class = gtk_type_class (gtk_container_get_type ());
- gtk_object_add_arg_type ("GtkBox::spacing", GTK_TYPE_INT, ARG_SPACING);
- gtk_object_add_arg_type ("GtkBox::homogeneous", GTK_TYPE_BOOL, ARG_HOMOGENEOUS);
+ gtk_object_add_arg_type ("GtkBox::spacing", GTK_TYPE_INT, GTK_ARG_READWRITE, ARG_SPACING);
+ gtk_object_add_arg_type ("GtkBox::homogeneous", GTK_TYPE_BOOL, GTK_ARG_READWRITE, ARG_HOMOGENEOUS);
widget_class->map = gtk_box_map;
widget_class->unmap = gtk_box_unmap;