Re: Draw in a GdkPixbuf

2008-05-28 Thread James Scott Jr
Take a look at the executable 'gtk-demo'. It should have been installed with gtk's development tools; i.e. already loaded on you machine. Hint: double click the sample for a live preview, then look at the source code. Additionally, here is a link to glinegraph, a simple line graph widget written

Draw in a GdkPixbuf

2008-05-28 Thread Luis Menina
Hi list! I'm trying to find a way to draw in a GdkPixbuf (for example draw a rectangle on the pixbuf) and save the result to a file afterwards. I found in devhelp the gdk_draw_* functions, but to use them I need a GdkPixmap. gdk_pixmap_new requires a GdkDrawable. The problem is that I'm develo

Re: Scrolling text in Gtk

2008-05-28 Thread Gian Mario Tagliaretti
On Mon, May 26, 2008 at 3:23 PM, Tuvok <[EMAIL PROTECTED]> wrote: > What I need to do, is to make a bar with scrolling text inside it (like > the bars with stock prices on tv). A more modern canvas library such as goocanvas comes with animation support, it should be really trivial to implement. Y

Re: Scrolling text in Gtk

2008-05-28 Thread Micah Carrick
In the book "Foundations of GTK+ Development", there is a chapter on creating custom widgets in which a marquee widget is created (which scrolls text across the widget). You could take a look at the source code from the book available at www.gtkbook.com - Micah Carrick Developer - http://ww

Using GtkTreeViewDropPosition in drag and drop

2008-05-28 Thread Micah Carrick
I haven't worked with drag and drop all that much. I have an application in which I'm dragging rows from one tree view onto another tree view. It's working great except for one piece... Using the gtk_tree_view_get_dest_row_at_pos () in the "drag-motion" signal handler, I am able to get the GtkT