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

version» Context lines:

pike.git/src/post_modules/GTK2/source/gtktoolbutton.pre:14:   signal clicked;      void create(GTK2.Widget|string|mapping(string:mixed) icon, ?string label)   //! Create a new GTK2.ToolButton.   //! If icon is a string, label should be omitted. If it isn't,   //! it will be ignored. The result will be a button from   //! a stock item, one of CONST(GTK_STOCK).   //! If icon is a GTK2.Widget, it will be used as the icon, and label   //! will be the label. The label must exists if that is the case.   { -  pgtk_verify_not_inited(); -  pgtk_verify_setup(); +  pgtk2_verify_not_inited(); +  pgtk2_verify_setup();    {    GtkToolItem *gt;    if (Pike_sp[-args].type==PIKE_T_STRING) {    char *icon;    get_all_args("create",args,"%s",&icon);    gt=gtk_tool_button_new_from_stock(icon);    THIS->obj=G_OBJECT(gt);    } else if (Pike_sp[-args].type==PIKE_T_OBJECT) {    struct pike_string *t;    struct object *o1;
pike.git/src/post_modules/GTK2/source/gtktoolbutton.pre:38:    ref_push_string(t);    f_string_to_utf8(1);    gt=gtk_tool_button_new(GTK_WIDGET(get_gobject(o1)),(char *)STR0(Pike_sp[-1].u.string));    pop_stack();    } else    Pike_error("Invalid arguments\n");    THIS->obj=G_OBJECT(gt);    } else {    INIT_WITH_PROPS(GTK_TYPE_TOOL_BUTTON);    } -  my_pop_n_elems(args); +  pgtk2_pop_n_elems(args);    } -  pgtk__init_this_object(); +  pgtk2__init_this_object();   }      void set_label(string label);   //! Sets label as the label used for the tool button.      string get_label();   //! Returns the label used by the tool button, or empty if   //! the tool button doesn't have a label.      void set_use_underline(int use_underline);