drawing area and GPtrArray illogical error

2009-03-21 Thread frederico schardong
static gboolean expose_event (GtkWidget *a, GdkEventButton *event, GtkDesenho *desenho) { guint i, x, y, tamH, tamV, x1, y1; GdkPoint points[5]; // Loop through the coordinates, redrawing them onto the drawing area. for (i = 0; i < desenho->parray->len; i = i + 4) { x =

GPtrArray

2009-03-21 Thread frederico schardong
Hi list, I do a simples struct: typedef struct { GtkWidget *window; GtkWidget *drawingArea; GPtrArray *parray; gint a; } GtkDesenho; In main(): GtkDesenho *desenho; desenho = g_slice_new(GtkDesenho); desenho->window = glade_xml_get_widget(xml, "window2"); de

Re: GTK+ Licensing query

2009-03-21 Thread Larry Reaves
On Fri, 2009-03-20 at 14:32 +0530, sushil wrote: > Hi, > I am new to Linux development and would like to develop a GUI using > gtk+. The following are my queries > > 1. Can I write a close source software using GTK+? Short answer: yes, you just have to share any modifications you make to GTK+ (p

GDK-DirectFB: Moving mouse pointer - alternative to gdk_display_warp_pointer?

2009-03-21 Thread Srikanth Nori
Hi all, First off, I am really sorry for cross-posting but I couldn't quite figure out where to ask this question! I'm using GTK+ over DirectFB on an embedded device. I need to move the mouse pointer, and from the GDK docs it appears that the only function to do this is gdk_display_warp_pointer.

GTK+ Licensing query

2009-03-21 Thread sushil
Hi, I am new to Linux development and would like to develop a GUI using gtk+. The following are my queries 1. Can I write a close source software using GTK+? 2. Do I need my source code to be licensed under GNU LGPL 2.1? 3. I would like to use dbus libs along with GTK+. Is it pissible under the