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

version» Context lines:

pike.git/src/post_modules/GTK2/source/gtkbutton.pre:44:   void create(string|mapping|void label_or_props)   //! If a string is supplied, a W(Label) is created and added to the button.   {    pgtk_verify_not_inited();    pgtk_verify_setup();    if (args) {    if (Pike_sp[-args].type==PIKE_T_STRING) {    struct pike_string *t;    GtkWidget *gb;    GtkStockItem item; -  int i; +  int i=0;       get_all_args("create",args,"%T",&t);    if (t) {    if (t->size_shift==0)    i=gtk_stock_lookup(CGSTR0(t),&item);    if (i)    gb=gtk_button_new_from_stock(CGSTR0(t));    else {    ref_push_string(t);    f_string_to_utf8(1);