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

version» Context lines:

pike.git/src/post_modules/GTK2/source/global.pre:462:   {    GSList *gsl,*gs2;    gchar **gca;    int i=0,j,k;    pgtk_verify_setup();    my_pop_n_elems(args);    gs2=gsl=gdk_pixbuf_get_formats();    while (gs2) {    i++;    k=0; -  push_text("name"); +  ref_push_string(_STR("name"));    push_text(gdk_pixbuf_format_get_name(gs2->data));    k++;    -  push_text("description"); +  ref_push_string(_STR("description"));    push_text(gdk_pixbuf_format_get_description(gs2->data));    k++;    -  push_text("mime_types"); +  ref_push_string(_STR("mime_types"));    gca=gdk_pixbuf_format_get_mime_types(gs2->data);    j=0;    while (gca[j]) {    PGTK_PUSH_GCHAR(gca[j]);    j++;    }    f_aggregate(j);    g_strfreev(gca);    k++;    -  push_text("extensions"); +  ref_push_string(_STR("extensions"));    gca=gdk_pixbuf_format_get_extensions(gs2->data);    j=0;    while (gca[j]) {    PGTK_PUSH_GCHAR(gca[j]);    j++;    }    f_aggregate(j);    g_strfreev(gca);    k++;      #ifdef HAVE_GTK26 -  push_text("disabled"); +  ref_push_string(_STR("disabled"));    push_int(gdk_pixbuf_format_is_disabled(gs2->data));    k++;   #endif      #ifdef HAVE_GTK26 -  push_text("license"); +  ref_push_string(_STR("license"));    push_text(gdk_pixbuf_format_get_license(gs2->data));    k++;   #endif    -  push_text("is_writable"); +  ref_push_string(_STR("is_writable"));    push_int(gdk_pixbuf_format_is_writable(gs2->data));    k++;      #ifdef HAVE_GTK26 -  push_text("is_scalable"); +  ref_push_string(_STR("is_scalable"));    push_int(gdk_pixbuf_format_is_scalable(gs2->data));    k++;   #endif       f_aggregate_mapping(k*2);    gs2=g_slist_next(gs2);    }    f_aggregate(i);    g_slist_free(gsl);   }
pike.git/src/post_modules/GTK2/source/global.pre:538:    gchar **gca;    int j,k;    char *filename;    int width,height;       get_all_args("get_file_info",args,"%s",&filename);    gpf=gdk_pixbuf_get_file_info(filename,&width,&height);    my_pop_n_elems(args);    k=0;    -  push_text("name"); +  ref_push_string(_STR("name"));    push_text(gdk_pixbuf_format_get_name(gpf));    k++;    -  push_text("description"); +  ref_push_string(_STR("description"));    push_text(gdk_pixbuf_format_get_description(gpf));    k++;    -  push_text("mime_types"); +  ref_push_string(_STR("mime_types"));    gca=gdk_pixbuf_format_get_mime_types(gpf);    j=0;    while (gca[j]) {    PGTK_PUSH_GCHAR(gca[j]);    j++;    }    f_aggregate(j);    g_strfreev(gca);    k++;    -  push_text("extensions"); +  ref_push_string(_STR("extensions"));    gca=gdk_pixbuf_format_get_extensions(gpf);    j=0;    while (gca[j]) {    PGTK_PUSH_GCHAR(gca[j]);    j++;    }    f_aggregate(j);    g_strfreev(gca);    k++;      #ifdef HAVE_GTK26 -  push_text("disabled"); +  ref_push_string(_STR("disabled"));    push_int(gdk_pixbuf_format_is_disabled(gpf));    k++;   #endif      #ifdef HAVE_GTK26 -  push_text("license"); +  ref_push_string(_STR("license"));    push_text(gdk_pixbuf_format_get_license(gpf));    k++;   #endif    -  push_text("is_writable"); +  ref_push_string(_STR("is_writable"));    push_int(gdk_pixbuf_format_is_writable(gpf));    k++;      #ifdef HAVE_GTK26 -  push_text("is_scalable"); +  ref_push_string(_STR("is_scalable"));    push_int(gdk_pixbuf_format_is_scalable(gpf));    k++;   #endif    -  push_text("width"); +  ref_push_string(_STR("width"));    push_int(width);    k++;    -  push_text("height"); +  ref_push_string(_STR("height"));    push_int(height);    k++;       f_aggregate_mapping(k*2);   }      void set_default_icon(GDK2.Pixbuf icon)   //! Sets an icon to be used as fallback for windows that haven't had set_icon()   //! called on them from a pixbuf.   {