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

version» Context lines:

pike.git/src/post_modules/GTK2/source/gtkimage.pre:102:   mapping(string:object) get_image()   //! Returns ([ "image":GDK2.Image img, "mask":GDK2.Bitmap mask ])   {    pgtk2_verify_inited();    pgtk2_pop_n_elems(args);    {    GdkImage *v;    GdkBitmap *m;    gtk_image_get_image(GTK_IMAGE(THIS->obj),&v,&m);    ref_push_string(_STR("image")); -  if(v) +  if (v) {    push_gobject(v); -  else +  g_object_ref(v); +  } else    push_int(0);    ref_push_string(_STR("mask"));    if(m) { -  + /*    push_gdkobject(m,bitmap); -  + */ +  push_gobject(m);    g_object_ref(m);    } else    push_int(0);    f_aggregate_mapping(4);    }   }       - GDK2.Pixbuf get_pixbuf(); + +GDK2.Pixbuf get_pixbuf();   //! Gets the GDK2.Pixbuf being displayed. The storage type of the image must   //! be GTK2.IMAGE_EMPTY or GTK2.IMAGE_PIXBUF).      mapping(string:object) get_pixmap()   //! Gets the pixmap and mask.   {    pgtk2_verify_inited();    pgtk2_pop_n_elems(args);    {    GdkPixmap *v;    GdkBitmap *m;    gtk_image_get_pixmap(GTK_IMAGE(THIS->obj),&v,&m);    ref_push_string(_STR("pixmap")); -  if (v) +  if (v) {    push_gobject(v); -  else +  g_object_ref(v); +  } else    push_int(0);    ref_push_string(_STR("mask"));    if (m) { -  + /*    push_gdkobject(m,bitmap); -  + */ +  push_gobject(m);    g_object_ref(m);    } else    push_int(0);    f_aggregate_mapping(4);    }   }      mapping(string:mixed) get_stock()   //! Gets the stock icon name and size.   {
pike.git/src/post_modules/GTK2/source/gtkimage.pre:162:    GtkIconSize size;    gtk_image_get_stock(GTK_IMAGE(THIS->obj),&stock_id,&size);    ref_push_string(_STR("stock_id"));    push_text(stock_id);    ref_push_string(_STR("size"));    push_int(size);    f_aggregate_mapping(4);    }   }    - GDK2.PixbufAnimation get_animation() + +GDK2.PixbufAnimation get_animation()   //! Gets the GDK2.PixbufAnimation being displayed.   {    pgtk2_verify_inited();    pgtk2_pop_n_elems(args);    {    GdkPixbufAnimation *gpa=gtk_image_get_animation(GTK_IMAGE(THIS->obj));    push_gobject(gpa); -  +  g_object_ref(gpa);    }   }      require gtk26;   mapping(string:mixed) get_icon_name()   //! Gets the icon name and size.   {    pgtk2_verify_inited();    pgtk2_pop_n_elems(args);    {