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

version» Context lines:

pike.git/src/post_modules/GTK2/source/global.pre:730:    char *name;    INT_TYPE size;    struct object *o1;    get_all_args("add_builtin_icon",args,"%s%i%o",&name,&size,&o1);    gtk_icon_theme_add_builtin_icon(name,size,GDK_PIXBUF(get_gobject(o1)));    }    my_pop_n_elems(args);   }   endrequire;    + %{ + #ifdef DYNAMIC_MODULE + struct program *image_color_program = NULL; + struct program *image_program = NULL; + #else + extern struct program *image_color_program; + extern struct program *image_program; + #endif + %} +  + INIT { + #ifdef DYNAMIC_MODULE +  image_color_program = PIKE_MODULE_IMPORT(Image, image_color_program); +  if(!image_color_program) +  Pike_error("Could not load Image module.\n"); +  +  image_program = PIKE_MODULE_IMPORT(Image, image_program); +  if(!image_program) +  Pike_error("Could not load Image module.\n"); + #endif + } +