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

version» Context lines:

pike.git/src/post_modules/GTK2/source/gtkwindow.pre:60:   void create(int|mapping(string:mixed) props)   //! Argument is one of CONST(GTK_WINDOW), or a mapping of allowed properties.   {    pgtk2_verify_not_inited();    pgtk2_verify_setup();    {    INT_TYPE wt;       if (TYPEOF(Pike_sp[-args]) == PIKE_T_INT) {    GtkWidget *gw; -  get_all_args("create",args,"%i",&wt); +  get_all_args(NULL,args,"%i",&wt);    gw=gtk_window_new(wt);    THIS->obj=G_OBJECT(gw);    } else {    INIT_WITH_PROPS(GTK_TYPE_WINDOW);    }    pgtk2_pop_n_elems(args);    }    pgtk2__init_this_object();   }   
pike.git/src/post_modules/GTK2/source/gtkwindow.pre:188:   //! max_aspect: maximum width/height ratio   //! win_gravity: window gravity   {    pgtk2_verify_inited();    {    struct object *o1;    struct mapping *m;    GdkGeometry geo;   /* GdkWindowHints mask; */    long mask; -  get_all_args("set_geometry_hints",args,"%o%m",&o1,&m); +  get_all_args(NULL,args,"%o%m",&o1,&m);    GET_ARG(min_width,PIKE_T_INT,GDK_HINT_MIN_SIZE);    GET_ARG(min_height,PIKE_T_INT,GDK_HINT_MIN_SIZE);    GET_ARG(max_width,PIKE_T_INT,GDK_HINT_MAX_SIZE);    GET_ARG(max_height,PIKE_T_INT,GDK_HINT_MAX_SIZE);    GET_ARG(base_width,PIKE_T_INT,GDK_HINT_BASE_SIZE);    GET_ARG(base_height,PIKE_T_INT,GDK_HINT_BASE_SIZE);    GET_ARG(width_inc,PIKE_T_INT,GDK_HINT_RESIZE_INC);    GET_ARG(height_inc,PIKE_T_INT,GDK_HINT_RESIZE_INC);    GET_ARG(min_aspect,PIKE_T_FLOAT,GDK_HINT_ASPECT);    GET_ARG(max_aspect,PIKE_T_FLOAT,GDK_HINT_ASPECT);
pike.git/src/post_modules/GTK2/source/gtkwindow.pre:212:    }    RETURN_THIS();   }      void set_gravity(int gravity);   //! Window gravity defines the meaning of coordinates passed to move().   //! <p>   //! The default window gravity is GDK2.GRAVITY_NORTH_WEST, which will typically   //! "do what you mean."    - void get_gravity(); + int get_gravity();   //! Gets the value set by set_gravity().      void set_position(int pos);   //! Sets a position contraint for this window. If the old or new constraint   //! is GTK2.WIN_POS_CENTER_ALWAYS, this will also cause the window to be   //! repositioned to satisfy the new constraint.      void set_transient_for(GTK2.Window parent);   //! Dialog window should be set transient for the main application window they   //! were spawned from. This allows window managers to e.g. keep the dialog on
pike.git/src/post_modules/GTK2/source/gtkwindow.pre:288:   //! If child is not the current focus widget, and is focusable, sets it as the   //! focus widget for the window. If child is 0, unsets the focus widget for   //! this window. To set the focus to a particular widget in the toplevel, it   //! is usually more convenient to use GTK2.Widget->grab_focus() instead of this   //! function.      void set_default(GTK2.Widget child);   //! The default widget is the widget that's activated when the user presses   //! Enter in a dialog (for example). This function sets or unsets the default   //! widget. When setting (rather than unsetting) the default widget it's - //! generally easier to call GTK2.Widget->grab_focus() on the widget. + //! generally easier to call GTK2.Widget->grab_default() on the widget.      void present();   //! Presents this window to the user. This may mean raising the window   //! in the stacking order, deiconifying it, moving it to the current   //! desktop, and/or giving it the keyboard focus, possibly dependent   //! on the user's platform, window manager, and preferences.   //! <p>   //! If hidden, it calls show() as well.      require gtk28;
pike.git/src/post_modules/GTK2/source/gtkwindow.pre:655:   //! Recommended sizes to provide: 16x16, 32x32, 48x48 at minimum, and larger   //! images (64x64, 128x128) if you have them.   {    pgtk2_verify_inited();    {    struct array *a;    GList *gl=NULL;    GdkPixbuf *gp;    int i;    -  get_all_args("set_icon_list",args,"%A",&a); +  get_all_args(NULL,args,"%A",&a);    if (a==NULL)    SIMPLE_ARG_ERROR("set_icon_list",args,"Invalid array");    for (i=0; i<a->size; i++) {    if (TYPEOF(ITEM(a)[i]) != PIKE_T_OBJECT)    continue;    gp=GDK_PIXBUF(get_gobject((ITEM(a)+i)->u.object));    if (gp)    gl=g_list_append(gl,gp);    }    if (gl) {