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

version» Context lines:

pike.git/src/post_modules/GTK2/source/gladexml.pre:25:    struct signal_data *b;    struct svalue *cb;    struct pike_string *funname;    guint signal_id;    GClosure *gc;   #ifdef GLADE_CONNECT_DEBUG    fprintf(stderr,"Connecting handler %s, signal %s,\n data %s, "    "after: %d\n",    handler_name,signal_name,signal_data,after);   #endif -  get_all_args("_signal_connect",*(INT32 *)args,"%m%*",&callbacks,&data); +  get_all_args(NULL,*(INT32 *)args,"%m%*",&callbacks,&data);   /*    funname=make_shared_string(handler_name);    cb=low_mapping_string_lookup(callbacks,funname);    free_string(funname);   */    cb=simple_mapping_string_lookup(callbacks,handler_name);    if (cb==NULL) {    fprintf(stderr,"** WARNING **: Unknown function %s for signal %s\n",    handler_name,signal_name);    return;
pike.git/src/post_modules/GTK2/source/gladexml.pre:93:   //! to auto-calculate). If size is 0, then it will assume a file with root   //! and/or domain specified.   {    pgtk2_verify_not_inited();    pgtk2_verify_setup();    {    GladeXML *gl;    struct pike_string *fname;    char *root=NULL,*dom=NULL;    INT_TYPE size=0; -  get_all_args("create",args,"%n.%i%s%s",&fname,&size,&root,&dom); +  get_all_args(NULL,args,"%n.%i%s%s",&fname,&size,&root,&dom);    if (size==0)    gl=glade_xml_new(fname->str,root,dom);    else if ((size < 0) || (size > fname->len))    gl=glade_xml_new_from_buffer(fname->str,fname->len,root,dom);    else    gl=glade_xml_new_from_buffer(fname->str,size,root,dom);    THIS->obj=G_OBJECT(gl);    }    pgtk2_pop_n_elems(args);    pgtk2__init_this_object();
pike.git/src/post_modules/GTK2/source/gladexml.pre:115:      +GTK2.Widget get_widget(string name)   //! This function is used to get the widget corresponding to name in the   //! interface description. You would use this if you have to do anything to   //! the widget after loading.   {    pgtk2_verify_inited();    {    char *name;    GtkWidget *widget; -  get_all_args("get_widget",args,"%s",&name); +  get_all_args(NULL,args,"%s",&name);    widget=glade_xml_get_widget(GLADE_XML(THIS->obj),name);    pgtk2_pop_n_elems(args);    push_gobject(widget);    }   }      array(GTK2.Widget) get_widget_prefix(string name)   //! This function is used to get a list GTK2.Widgets with names that start with   //! the string name in the interface description.   {    pgtk2_verify_inited();    {    char *name;    GList *gl,*g2;    int i=0; -  get_all_args("get_widget_prefix",args,"%s",&name); +  get_all_args(NULL,args,"%s",&name);    gl=g2=glade_xml_get_widget_prefix(GLADE_XML(THIS->obj),name);    pgtk2_pop_n_elems(args);    while (g2) {    push_gobject(g2->data);    g_object_ref(g2->data);    i++;    g2=g_list_next(g2);    }    f_aggregate(i);    g_list_free(gl);
pike.git/src/post_modules/GTK2/source/gladexml.pre:153:   }      string get_widget_name(GTK2.Widget widget)   //! Used to get the name of a widget that was generated by a GladeXML object.   {    pgtk2_verify_inited();    {    const char *s;    struct object *o1;    GtkWidget *widget; -  get_all_args("get_widget_name",args,"%o",&o1); +  get_all_args(NULL,args,"%o",&o1);    widget=GTK_WIDGET(get_gobject(o1));    if (!widget)    Pike_error("GladeXML->get_widget_name: Invalid argument 1, wanted GTK2 object of type WIDGET.\n");    s=glade_get_widget_name(widget);    pgtk2_pop_n_elems(args);    push_text(s);   /* Per documentation, don't free this */   /* g_free((void *)s); */    }   }
pike.git/src/post_modules/GTK2/source/gladexml.pre:175:   int get_signal_id(GTK2.Widget widget)   //! Used to get the signal id attached to a GladeXML object.   {    pgtk2_verify_inited();    {    int id;    struct object *o1;    GtkWidget *w;    struct signal_data *sd;    -  get_all_args("get_signal_id",args,"%o",&o1); +  get_all_args(NULL,args,"%o",&o1);    w=GTK_WIDGET(get_gobject(o1));    if (!w)    Pike_error("GladeXML->get_signal_id: Invalid argument 1, wanted GTK2 object of type WIDGET.\n");    sd=g_object_get_data(G_OBJECT(w),"signal-data");    pgtk2_pop_n_elems(args);    if (sd)    push_int(sd->signal_id);    else    push_int(-1);    }