From 0ef453b82c2d486d7913517e2b72571b90de312a Mon Sep 17 00:00:00 2001 From: Tim Janik Date: Thu, 19 Feb 1998 07:18:42 +0000 Subject: present the argument access masks on their announcement. Thu Feb 19 06:56:52 1998 Tim Janik * 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. ;( --- gtk/gtkbox.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gtk/gtkbox.c') diff --git a/gtk/gtkbox.c b/gtk/gtkbox.c index ad4c11d658..dc3a38a652 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; -- cgit v1.2.1