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

version» Context lines:

pike.git/src/post_modules/GTK2/source/gtkaction.pre:20:   //! int visible-overflown   endrequire;   //! int visible-vertical      signal activate;      void create(string|mapping(string:mixed) name_or_props, ?string label,    ?string tooltip, ?string stock_id)   //! Creates a new object.   { -  pgtk_verify_not_inited(); -  pgtk_verify_setup(); +  pgtk2_verify_not_inited(); +  pgtk2_verify_setup();    if (args>0 && Pike_sp[-args].type==PIKE_T_STRING) {    char *name, *stock_id=NULL;    struct pike_string *label=NULL,*tooltip=NULL;    gchar *label2=NULL, *tooltip2=NULL;    GtkAction *ga;    get_all_args("create",args,"%s.%t%t%s",&name,&label,&tooltip,&stock_id);    if(label) {    ref_push_string(label);    f_string_to_utf8(1);    label2 = GSTR0(Pike_sp[-1].u.string);
pike.git/src/post_modules/GTK2/source/gtkaction.pre:45:    f_string_to_utf8(1);    tooltip2 = GSTR0(Pike_sp[-1].u.string);    }    ga=gtk_action_new(name,label2,tooltip2,stock_id);    if(tooltip) pop_stack();    if(label) pop_stack();    THIS->obj=G_OBJECT(ga);    } else {    INIT_WITH_PROPS(GTK_TYPE_ACTION);    } -  my_pop_n_elems(args); -  pgtk__init_this_object(); +  pgtk2_pop_n_elems(args); +  pgtk2__init_this_object();   }      string get_name();   //! Returns the name of the action.      int is_sensitive();   //! Returns whether the action is effectively sensitive.      int get_sensitive();   //! Returns whether the action itself is sensitive. Note that this doesn't
pike.git/src/post_modules/GTK2/source/gtkaction.pre:100:   //! properties of the action with the widget (such as label text, icon,   //! tooltip, etc), and attaches a callback so that the action gets activated   //! when the proxy widget does.      void disconnect_proxy(GTK2.Widget proxy);   //! Disconnects a proxy widget. Does not destroy the widget.      array(GTK2.Widget) get_proxies()   //! Returns the proxy widgets.   { -  pgtk_verify_inited(); -  my_pop_n_elems(args); +  pgtk2_verify_inited(); +  pgtk2_pop_n_elems(args);    {    GSList *gl;    int i=0;    gl=gtk_action_get_proxies(GTK_ACTION(THIS->obj));    while (gl) {    push_gobject(gl->data);    g_object_ref(gl->data);    i++;    gl=g_slist_next(gl);    }