pike.git / src / post_modules / GTK2 / source / gtksizegroup.pre

version» Context lines:

pike.git/src/post_modules/GTK2/source/gtksizegroup.pre:17:   //! size that the widgets finally receive. If you want the widgets in a   //! GTK2.SizeGroup to actually be the same size, you need to pack them in such   //! a way that they get the size they request and not more. For example, if   //! you are packing your widgets into a table, you would not include the   //! GTK2.FILL flag.   //! <p>   //! GTK2.SizeGroup objects are referenced by each widget in the size group, so   //! one you have added all widgets to a GTK2.SizeGroup, you can drop the initial   //! reference to the size group. If the widgets in the size group are   //! subsequently destroyed, then they will be removed from the size group; when - //! allow idgets have been removed, the size group will be freed. + //! all widgets have been removed, the size group will be freed.   //! <p>   //! Widgets can be part of multiple size groups; GTK+ will compute the   //! horizontal size of a widget from the horizontal requisition of all widgets   //! that can be reached from the widget by a chain of size groups of type   //! GTK2.SIZE_GROUP_HORIZONTAL or GTK2.SIZE_GROUP_BOTH, and the vertical size   //! from the vertical requisition of all widgets that can be reached from the   //! widget by a chain of size groups of type GTK2.SIZE_GROUP_VERTICAL or   //! GTK2.SIZE_GROUP_BOTH.      //! Properties:
pike.git/src/post_modules/GTK2/source/gtksizegroup.pre:40:   //! its componenent widgets.      void create(int|mapping(string:mixed) mode_or_props)   //! Create a new group.   {    pgtk2_verify_not_inited();    pgtk2_verify_setup();    if (TYPEOF(Pike_sp[-args]) == PIKE_T_INT) {    INT_TYPE mode;    GtkSizeGroup *gs; -  get_all_args("create",args,"%i",&mode); +  get_all_args(NULL,args,"%i",&mode);    gs=gtk_size_group_new(mode);    THIS->obj=G_OBJECT(gs);    } else {    INIT_WITH_PROPS(GTK_TYPE_SIZE_GROUP);    }    pgtk2_pop_n_elems(args);    pgtk2__init_this_object();   }      void set_mode(int mode);