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

version» Context lines:

pike.git/src/post_modules/GTK2/source/pangofontdescription.pre:19:   {    pgtk2_verify_not_inited();    pgtk2_verify_setup();    if (args) {    char *str;    get_all_args("create",args,"%s",&str);    if (str)    THIS->obj=(void *)pango_font_description_from_string(str);    else    THIS->obj=(void *)pango_font_description_new(); +     pgtk2_pop_n_elems(args);    } else    THIS->obj=(void *)pango_font_description_new(); -  +  +  THIS->owned = 1;    pgtk2__init_this_object();   }      Pango.FontDescription copy()   //! Copy a font description.   {    pgtk2_verify_inited();    {    PangoFontDescription *pfd=pango_font_description_copy(    (PangoFontDescription *)THIS->obj);    pgtk2_pop_n_elems(args); -  push_gobjectclass(pfd,ppango2_font_description_program); +  push_pgdk2object(pfd,ppango2_font_description_program,1);    }   }      int equal(Pango.FontDescription desc)   //! Compares two font descriptions for equality.   {    pgtk2_verify_inited();    {    struct object *o1;    int res;
pike.git/src/post_modules/GTK2/source/pangofontdescription.pre:55:    get_all_args("equal",args,"%o",&o1);    res=pango_font_description_equal((PangoFontDescription *)THIS->obj,    (PangoFontDescription *)get_gobject(o1));    pgtk2_pop_n_elems(args);    PGTK_PUSH_INT(res);    }   }      void destroy()   { -  if (THIS->obj) +  if (THIS->obj && THIS->owned)    pango_font_description_free((PangoFontDescription *)THIS->obj);    THIS->obj=0;    pgtk2_pop_n_elems(args);    push_int(0);   }      void set_family(string family)   //! Sets the family name. The family name represents a family of related   //! fonts styles, and will resolve to a particular PangoFontFamily.   {