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

version» Context lines:

pike.git/src/post_modules/GTK2/source/gnomedruidpagestandard.pre:24:      void create(?string title, ?GDK2.Pixbuf logo, ?GDK2.Pixbuf top_watermark)   //! Construct a new Gnome2.DruidPageStandard.   {    pgtk2_verify_not_inited();    pgtk2_verify_setup();    if (args) {    struct pike_string *title;    struct object *o1,*o2;    GtkWidget *gps; -  get_all_args("create",args,"%t%o%o",&title,&o1,&o2); +  get_all_args(NULL,args,"%t%o%o",&title,&o1,&o2);    ref_push_string(title);    f_string_to_utf8(1);    gps=gnome_druid_page_standard_new_with_vals(GSTR0(Pike_sp[-1].u.string),    GDK_PIXBUF(get_gobject(o1)),    GDK_PIXBUF(get_gobject(o2)));    pop_stack();    THIS->obj=G_OBJECT(gps);    pgtk2_pop_n_elems(args);    } else {    GtkWidget *gps;
pike.git/src/post_modules/GTK2/source/gnomedruidpagestandard.pre:51:   void set_title(string title);   //! Sets the title.      void set_logo(?GDK2.Pixbuf logo)   //! Sets a GDK2.Pixbuf as the logo in the top right corner. If omitted, then   //! no logo will be displayed.   {    pgtk2_verify_inited();    if (args) {    struct object *o1; -  get_all_args("set_logo",args,"%o",&o1); +  get_all_args(NULL,args,"%o",&o1);    gnome_druid_page_standard_set_logo(GNOME_DRUID_PAGE_STANDARD(THIS->obj),    GDK_PIXBUF(get_gobject(o1)));    } else    gnome_druid_page_standard_set_logo(    GNOME_DRUID_PAGE_STANDARD(THIS->obj),NULL);    RETURN_THIS();   }      void set_top_watermark(?GDK2.Pixbuf watermark)   //! Sets a GDK2.Pixbuf as the watermark on top of the top strip on the druid.   //! If watermark is omitted, it is reset to the normal color.   {    pgtk2_verify_inited();    if (args) {    struct object *o1; -  get_all_args("set_top_watermark",args,"%o",&o1); +  get_all_args(NULL,args,"%o",&o1);    gnome_druid_page_standard_set_top_watermark(    GNOME_DRUID_PAGE_STANDARD(THIS->obj),    GDK_PIXBUF(get_gobject(o1)));    } else    gnome_druid_page_standard_set_top_watermark(    GNOME_DRUID_PAGE_STANDARD(THIS->obj),NULL);    RETURN_THIS();   }      void set_title_foreground(GDK2.Color color)   //! Sets the title text to the specified color.   {    pgtk2_verify_inited();    {    struct object *o1;    GdkColor *color; -  get_all_args("set_title_foreground",args,"%o",&o1); +  get_all_args(NULL,args,"%o",&o1);    color=(GdkColor *)get_gdkobject(o1,color);    gnome_druid_page_standard_set_title_foreground(    GNOME_DRUID_PAGE_STANDARD(THIS->obj),color);    }    RETURN_THIS();   }      void set_background(GDK2.Color color)   //! Sets the background color of the top section.   {    pgtk2_verify_inited();    {    struct object *o1;    GdkColor *color; -  get_all_args("set_background",args,"%o",&o1); +  get_all_args(NULL,args,"%o",&o1);    color=(GdkColor *)get_gdkobject(o1,color);    gnome_druid_page_standard_set_background(    GNOME_DRUID_PAGE_STANDARD(THIS->obj),color);    }    RETURN_THIS();   }      void set_logo_background(GDK2.Color color)   //! Sets the background color of the logo.   {    pgtk2_verify_inited();    {    struct object *o1;    GdkColor *color; -  get_all_args("set_logo_background",args,"%o",&o1); +  get_all_args(NULL,args,"%o",&o1);    color=(GdkColor *)get_gdkobject(o1,color);    gnome_druid_page_standard_set_logo_background(    GNOME_DRUID_PAGE_STANDARD(THIS->obj),color);    }    RETURN_THIS();   }      void set_contents_background(GDK2.Color color)   //! Sets the color of the main contents section's background.   {    pgtk2_verify_inited();    {    struct object *o1;    GdkColor *color; -  get_all_args("set_contents_background",args,"%o",&o1); +  get_all_args(NULL,args,"%o",&o1);    color=(GdkColor *)get_gdkobject(o1,color);    gnome_druid_page_standard_set_contents_background(    GNOME_DRUID_PAGE_STANDARD(THIS->obj),color);    }    RETURN_THIS();   }      void append_item(string question, GTK2.Widget item,    string additional_info);   //! Convenience function to add a GTK2.Widget to the vbox. This function   //! creates a new contents section that has the question text followed by the   //! item widget and then the additional_info text, all stacked vertically from   //! top to bottom.   //! <p>   //! The item widget could be something like a set of radio checkbuttons   //! requesting a choice from the user.      endrequire;   endnot;