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

version» Context lines:

pike.git/src/post_modules/GTK2/source/gtkimage.pre:95:      mapping(string:object) get_image()   //! Returns ([ "image":GDK2.Image img, "mask":GDK2.Bitmap mask ])   {    pgtk_verify_inited();    my_pop_n_elems(args);    {    GdkImage *v;    GdkBitmap *m;    gtk_image_get_image(GTK_IMAGE(THIS->obj),&v,&m); -  push_text("image"); +  ref_push_string(_STR("image"));    if(v)    push_gobject(v);    else    push_int(0); -  push_text("mask"); +  ref_push_string(_STR("mask"));    if(m) {    push_gdkobject(m,bitmap);    g_object_ref(m);    } else    push_int(0);    f_aggregate_mapping(4);    }   }      
pike.git/src/post_modules/GTK2/source/gtkimage.pre:124:      mapping(string:object) get_pixmap()   //! Gets the pixmap and mask.   {    pgtk_verify_inited();    my_pop_n_elems(args);    {    GdkPixmap *v;    GdkBitmap *m;    gtk_image_get_pixmap(GTK_IMAGE(THIS->obj),&v,&m); -  push_text("pixmap"); +  ref_push_string(_STR("pixmap"));    if (v)    push_gobject(v);    else    push_int(0); -  push_text("mask"); +  ref_push_string(_STR("mask"));    if (m) {    push_gdkobject(m,bitmap);    g_object_ref(m);    } else    push_int(0);    f_aggregate_mapping(4);    }   }      mapping(string:mixed) get_stock()   //! Gets the stock icon name and size.   {    pgtk_verify_inited();    my_pop_n_elems(args);    {    gchar *stock_id;    GtkIconSize size;    gtk_image_get_stock(GTK_IMAGE(THIS->obj),&stock_id,&size); -  push_text("stock_id"); +  ref_push_string(_STR("stock_id"));    push_text(stock_id); -  push_text("size"); +  ref_push_string(_STR("size"));    push_int(size);    f_aggregate_mapping(4);    }   }      GDK2.PixbufAnimation get_animation()   //! Gets the GDK2.PixbufAnimation being displayed.   {    pgtk_verify_inited();    my_pop_n_elems(args);
pike.git/src/post_modules/GTK2/source/gtkimage.pre:177:   require gtk26;   mapping(string:mixed) get_icon_name()   //! Gets the icon name and size.   {    pgtk_verify_inited();    my_pop_n_elems(args);    {    const gchar *icon_name;    GtkIconSize size;    gtk_image_get_icon_name(GTK_IMAGE(THIS->obj),&icon_name,&size); -  push_text("icon_name"); +  ref_push_string(_STR("icon_name"));    push_text(icon_name); -  push_text("size"); +  ref_push_string(_STR("size"));    push_int(size);    f_aggregate_mapping(4);    }   }   endrequire;      int get_storage_type();   //! Gets the type of representation being used to store data. If it has no   //! image data, the return value will be GTK2.IMAGE_EMPTY.   //! One of CONST(GTK_IMAGE_)