Branch: Tag:

2005-12-27

2005-12-27 23:58:21 by Martin Nilsson <mani@lysator.liu.se>

Reduced code by using get_all_args optional marker.

Rev: src/post_modules/GTK2/source/gdkpixbuf.pre:1.6
Rev: src/post_modules/GTK2/source/gladexml.pre:1.5
Rev: src/post_modules/GTK2/source/gtkcellrenderer.pre:1.5
Rev: src/post_modules/GTK2/source/gtklayout.pre:1.4
Rev: src/post_modules/GTK2/source/gtkliststore.pre:1.5
Rev: src/post_modules/GTK2/source/gtkradiomenuitem.pre:1.4
Rev: src/post_modules/GTK2/source/gtkscrolledwindow.pre:1.5
Rev: src/post_modules/GTK2/source/gtksourceiter.pre:1.3
Rev: src/post_modules/GTK2/source/gtktextiter.pre:1.5
Rev: src/post_modules/GTK2/source/gtktreestore.pre:1.5
Rev: src/post_modules/GTK2/source/gtktreeview.pre:1.5
Rev: src/post_modules/GTK2/source/gtkviewport.pre:1.4
Rev: src/post_modules/GTK2/source/gtkwidget.pre:1.4

37:    if (Pike_sp[-args].type==PIKE_T_OBJECT) {    struct object *o1,*o2=NULL;    GtkWidget *gs; -  if (args==2) -  get_all_args("create",args,"%o%o",&o1,&o2); -  else -  get_all_args("create",args,"%o",&o1); +  get_all_args("create",args,"%o.%o",&o1,&o2);    gs=gtk_scrolled_window_new(    GTK_ADJUSTMENT(get_gobject(o1)),    GTK_ADJUSTMENT(get_gobject(o2)));