LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   about gtk+ program (https://www.linuxquestions.org/questions/linux-general-1/about-gtk-program-322333/)

ganguly 05-11-2005 07:08 AM

about gtk+ program
 
GdkFont *font
#ifndef USE_GTK2
textStyle->font = gdk_font_load(setup.status_fontname);
#else
textStyle->font_desc = pango_font_description_from_string(setup.status_fontname);
#endif

we re trying to create the software for gerber viewer , but i am getting this type of error
error: structure has no member named `font' .

so please guide me to solve it. we re trying to design printed circuit board in linux , for which we re using gtk+ programming , the input is gerber data and we re using this data to design PCB. the components Rs-274 X, Rs - 274D , there re layers in PCB and having the aperture..

acid_kewpie 05-11-2005 07:29 AM

what is "textStyle" ??? how are we supposed to know the member attributes of a wholly unknown object? we're not psychic....

now, *IF* this is a gtkStyle object, then you need to use the object properly. use access methods rather than dircet data.

http://developer.gnome.org/doc/API/2.../GtkStyle.html


All times are GMT -5. The time now is 05:17 PM.