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

version» Context lines:

pike.git/src/post_modules/GTK2/source/global.pre:192:    gnome_vfs_init();   }   endrequire;      %{   static gchar **get_argv( int *argc_ret, int an )   {    struct array *a;    int argc;    gchar **data; -  if( Pike_sp[-an].type != PIKE_T_ARRAY ) +  if( TYPEOF(Pike_sp[-an]) != PIKE_T_ARRAY )    Pike_error("Expected array\n");    a = Pike_sp[-an].u.array;    if (!a->size)    Pike_error ("Expected array with at least one element.\n");    data=g_malloc0(sizeof(char *)*(a->size+1));    if (data==NULL)    Pike_error(msg_out_of_mem);    for( argc=0; argc<a->size; argc++ )    if (!PGTK_ISSTR(ITEM(a)+argc))    {
pike.git/src/post_modules/GTK2/source/global.pre:691:   {    GList *gl=NULL;    struct array *a;    int i;    GdkPixbuf *gp;       get_all_args("set_default_icon_list",args,"%A",&a);    if (a==NULL)    SIMPLE_ARG_ERROR("set_default_icon_list",args,"Invalid array");    for (i=0; i<a->size; i++) { -  if ((ITEM(a)+i)->type!=PIKE_T_OBJECT) +  if (TYPEOF(ITEM(a)[i]) != PIKE_T_OBJECT)    continue;    gp=GDK_PIXBUF(get_gobject((ITEM(a)+i)->u.object));    if (gp)    gl=g_list_append(gl,gp);    }    if (gl) {    gtk_window_set_default_icon_list(gl);    g_list_free(gl);    }    pgtk2_pop_n_elems(args);