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

version» Context lines:

pike.git/src/post_modules/GTK2/source/gtkiconset.pre:10:   //! GDK2.Pixbuf objects.   //! <p>   //! Normally you would use GTK2.Widget->render_icon() instead of using   //! GTK2.IconSet directly. The one case where you'd use GTK2.IconSet is to   //! create application-specific icon sets to place in a GTK2.IconFactory.   {    pgtk2_verify_not_inited();    pgtk2_verify_setup();    if (args) {    struct object *o1; -  get_all_args("create",args,"%o",&o1); +  get_all_args(NULL,args,"%o",&o1);    THIS->obj=(void *)gtk_icon_set_new_from_pixbuf(    GDK_PIXBUF(get_gobject(o1)));    pgtk2_pop_n_elems(args);    } else    THIS->obj=(void *)gtk_icon_set_new();    pgtk2__init_this_object();   }    - void destroy() + void _destruct()   {    if (THIS->obj)    gtk_icon_set_unref((GtkIconSet *)THIS->obj);    THIS->obj=NULL;    pgtk2_pop_n_elems(args);    push_int(0);   }      GTK2.IconSet copy()   //! Create a copy.
pike.git/src/post_modules/GTK2/source/gtkiconset.pre:51:    ?GTK2.Widget widget)   //! Renders an icon using GTK2.Style->render_icon(). In most cases,   //! GTK2.Widget->render_icon() is better, since it automatically provides most   //! of the arguments from the current widget settings.   {    pgtk2_verify_inited();    {    INT_TYPE dir,state,size;    struct object *o1,*o2;    GdkPixbuf *pixbuf; -  get_all_args("render_icon",args,"%o%i%i%i%o",&o1,&dir,&state,&size,&o2); +  get_all_args(NULL,args,"%o%i%i%i%o",&o1,&dir,&state,&size,&o2);    pixbuf=gtk_icon_set_render_icon((GtkIconSet *)THIS->obj,    GTK_STYLE(get_gobject(o1)),dir,state,size,    GTK_WIDGET(get_gobject(o2)));    pgtk2_pop_n_elems(args);    g_object_ref(pixbuf);    push_gobject(pixbuf);    }   }   */   
pike.git/src/post_modules/GTK2/source/gtkiconset.pre:103:   //! <p>   //! You should nearly always add a "default" icon source with all fields   //! wildcarded, which will be used as a fallback if no more specific source   //! matches. GTK2.IconSet always prefers more specific icon sources to more   //! generic icon sources. The order in which you add the sources to the icon   //! set does not matter.   {    pgtk2_verify_inited();    {    struct object *o1; -  get_all_args("add_source",args,"%o",&o1); +  get_all_args(NULL,args,"%o",&o1);    gtk_icon_set_add_source((GtkIconSet *)THIS->obj,    (GtkIconSource *)get_pg2object(o1,pgtk2_icon_source_program));    }    RETURN_THIS();   }