LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-11-2005, 07:08 AM   #1
ganguly
LQ Newbie
 
Registered: May 2005
Location: bangalore
Posts: 1

Rep: Reputation: 0
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..
 
Old 05-11-2005, 07:29 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to debug GTK+ program asahlot Programming 4 10-19-2005 04:23 AM
installing a gtk program.. minm Linux - Newbie 5 05-07-2005 07:29 PM
Program GTK apps objorkum Programming 5 11-20-2004 10:30 PM
Gtk-Warning but program still works... I close konsole, program closes Laptop2250 Linux - Software 2 11-14-2003 11:18 PM
gtk program souvik Programming 1 06-08-2001 04:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration