new function gtk_container_child_arg_set, similar to
Wed Jun 24 14:14:32 1998 Tim Janik <timj@gtk.org> * gtk/gtkcontainer.c: new function gtk_container_child_arg_set, similar to gtk_container_child_arg_setv, but takes a variable argument list. new function gtk_container_get_child_arg_type, which is needed by gtk_object_collect_args. * gtk/gtkobject.c: changed prototype for gtk_object_collect_args, to take a function pointer to figure the argument type. adapted callers to pass gtk_object_get_arg_type. * gtk/gtkwidget.c: adapted gtk_object_collect_args callers to pass gtk_object_get_arg_type.. * gtk/gtkpacker.h: * gtk/gtkpacker.c: (gtk_packer_reorder_child): new function to change the packing order of a child. (gtk_packer_size_request): (gtk_packer_size_allocate): take container->border_width into acount. * gtk/gtkpacker.c: implemented widget arguments: "GtkPacker::spacing", "GtkPacker::border_width", "GtkPacker::pad_x", "GtkPacker::pad_y", "GtkPacker::ipad_x", "GtkPacker::ipad_y". implemented child arguments: "GtkPacker::side", "GtkPacker::anchor", "GtkPacker::expand", "GtkPacker::fill_x", "GtkPacker::fill_y", "GtkPacker::use_default", "GtkPacker::border_width", "GtkPacker::pad_x", "GtkPacker::pad_y", "GtkPacker::ipad_x", "GtkPacker::ipad_y", "GtkPacker::position". * gtk/gtkmisc.c (gtk_misc_set_arg): for padding args, set the padding, not the alignment. * gtk/gtkeventbox.h: * gtk/gtkeventbox.c: GtkType and macro fixups. * gtk/testgtk.c (entry_toggle_sensitive): new function to toggle sensitivity of an entry. * gtk/gtkstyle.c (gtk_style_new): support normal grey as default color for insensitive base. * gtk/gtkentry.c (gtk_entry_realize): set the window backgrounds widget state dependent. (gtk_entry_style_set): likewise. (gtk_entry_state_changed): set background color on state changes. (gtk_entry_draw_text): for non selected text, use state dependent colors. * gtk/gtktogglebutton.c: support for widget arguments "GtkToggleButton::active" and "GtkToggleButton::draw_indicator".
This commit is contained in:
		| @ -138,10 +138,11 @@ void    gtk_container_add_child_arg_type   (const gchar      *arg_name, | ||||
| 					    GtkType           arg_type, | ||||
| 					    guint             arg_flags, | ||||
| 					    guint             arg_id); | ||||
|  | ||||
| GtkType gtk_container_get_child_arg_type   (const gchar      *arg_name); | ||||
|       | ||||
| /* Allocate a GtkArg array of size nargs that hold the | ||||
|  * names and types of the args that can be used with | ||||
|  * gtk_container_child_arg_get/gtk_container_child_arg_set. | ||||
|  * gtk_container_child_arg_getv/gtk_container_child_arg_setv. | ||||
|  * if (arg_flags!=NULL), | ||||
|  * (*arg_flags) will be set to point to a newly allocated | ||||
|  * guint array that holds the flags of the args. | ||||
| @ -178,7 +179,10 @@ void    gtk_container_add_with_argv	   (GtkContainer      *container, | ||||
| 					    GtkWidget	      *widget, | ||||
| 					    guint	       n_args, | ||||
| 					    GtkArg	      *args); | ||||
|  | ||||
| void	gtk_container_child_arg_set	   (GtkContainer      *container, | ||||
| 					    GtkWidget         *child, | ||||
| 					    ...); | ||||
|       | ||||
|  | ||||
| /* Non-public methods */ | ||||
| void	gtk_container_queue_resize	   (GtkContainer *container); | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Tim Janik
					Tim Janik