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

version» Context lines:

pike.git/src/post_modules/GTK2/source/gtkaboutdialog.pre:119:   void set_authors(array(string) auth)   //! Sets the strings which are displayed in the authors tab of the secondary   //! credits dialog.   {    pgtk2_verify_inited();    {    ONERROR err;    struct array *a;    int i,j;    const gchar **auth; -  get_all_args("set_authors",args,"%A",&a); +  get_all_args(NULL,args,"%A",&a);    if (a==NULL)    Pike_error("Invalid array.\n");       /* Make sure we have space for the strings on the stack. */    check_stack(a->size+2);       auth=xalloc(sizeof(gchar *)*(a->size+1));    SET_ONERROR(err, free, auth);       for (i=j=0; i<a->size; i++) {
pike.git/src/post_modules/GTK2/source/gtkaboutdialog.pre:182:   void set_artists(array(string) art)   //! Sets the strings which are displayed in the artists tab of the secondary   //! credits dialog.   {    pgtk2_verify_inited();    {    ONERROR err;    struct array *a;    int i,j;    const gchar **art; -  get_all_args("set_artists",args,"%A",&a); +  get_all_args(NULL,args,"%A",&a);    if (a==NULL)    Pike_error("Invalid array.\n");       /* Make sure we have space for the strings on the stack. */    check_stack(a->size+2);       art=xalloc(sizeof(gchar *)*(a->size+1));    SET_ONERROR(err, free, art);       for (i=j=0; i<a->size; i++) {
pike.git/src/post_modules/GTK2/source/gtkaboutdialog.pre:245:   void set_documenters(array(string) doc)   //! Sets the strings which are displayed in the documenters tab of the   //! secondary credits dialog.   {    pgtk2_verify_inited();    {    ONERROR err;    struct array *a;    int i,j;    const gchar **doc; -  get_all_args("set_documenters",args,"%A",&a); +  get_all_args(NULL,args,"%A",&a);    if (a==NULL)    Pike_error("Invalid array.\n");       /* Make sure we have space for the strings on the stack. */    check_stack(a->size+2);       doc=xalloc(sizeof(gchar *)*(a->size+1));    SET_ONERROR(err, free, doc);       for (i=j=0; i<a->size; i++) {
pike.git/src/post_modules/GTK2/source/gtkaboutdialog.pre:304:      void set_logo_icon_name(string name);   //! Sets the icon name.      mixed get_property(string property)   //! Get property.   {    pgtk2_verify_inited();    {    struct pike_string *prop; -  get_all_args("get_property",args,"%n",&prop); +  get_all_args(NULL,args,"%n",&prop);    if (is_same_string(prop,_STR("artists")) ||    is_same_string(prop,_STR("authors")) ||    is_same_string(prop,_STR("documenters"))) {    gchar **a;    int i=0;    g_object_get(G_OBJECT(THIS->obj),prop->str,&a,NULL);    while (a[i])    PGTK_PUSH_GCHAR(a[i]);    f_aggregate(i);    g_strfreev(a);    } else {    char *s=g_strdup(prop->str);    pgtk2_pop_n_elems(args);    pgtk2_get_property(G_OBJECT(THIS->obj),s);    g_free(s);    }    }   }      endrequire;