|
|
| Author |
Message |
|
|
elzbieta
Joined: 09 Aug 2008 Posts: 3
|
Posted: Sat Aug 09, 2008 1:56 pm Post subject: Problem with gdk_draw_point () |
|
|
Hello everyone
I'm writing gtk C program that has to read points from file and then present it in some drawing area or just any window. There is problem with gdk_draw_point () fucntion. I know what is the 1 and 3 and 4 argument of this function but have no idea what to do with 'colour' argument. Is it something with styles? I need to bind some style with widget first? Do I need to use library gtk/styles in this code? Thanks for any help, I'm just begginer... |
|
| Back to top |
|
 |
dreblen Never Seen the Sunlight
Joined: 14 Jun 2007 Posts: 526 Location: Falun, WI USA
|
|
| Back to top |
|
 |
elzbieta
Joined: 09 Aug 2008 Posts: 3
|
Posted: Sun Aug 10, 2008 9:19 am Post subject: |
|
|
Ok thanks, so I think I need touse one more library,
#include <gdk/gdk.h>
not only <gtk/gtk.h> |
|
| Back to top |
|
 |
dreblen Never Seen the Sunlight
Joined: 14 Jun 2007 Posts: 526 Location: Falun, WI USA
|
Posted: Mon Aug 11, 2008 3:00 am Post subject: |
|
|
no, gtk.h #includes gdk/gdk.h, so you don't need to do it yourself.
Gdk can be thought of as a lower level of Gtk, so if you're using Gtk, you're already using Gdk, just not directly all the time |
|
| Back to top |
|
 |
|