Re: Problem with references

2008-03-17 Thread Gabriele Greco
After some headache with my gtk C++ classes I've found with a small test program this fact about the gobject references: Sorry, not sure what you're trying to do. Are you trying to do something with gtkmm? Or are you creating your own bindings? I'm doing some experimental header only

GtkTextView: inserting text with different styles

2008-03-17 Thread Carlos Pereira
Hi, Let's say I have a GtkTextView, with two color tags, red and blue: text_view = gtk_text_view_new (); buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (text_view)); gtk_text_buffer_create_tag (buffer, my_red, foreground, #ff, NULL); gtk_text_buffer_create_tag (buffer, my_blue, foreground,

gtktextview render hint-rules effect

2008-03-17 Thread mbrz
Hi there, How can I realise a hint-rules effect like gtktreeview to have lines rendered with alternating row colors on my gtktextview widget ? everybody can help me with this question? thanks. ___ gtk-app-devel-list mailing list

Re: gtktextview render hint-rules effect

2008-03-17 Thread Damien Caliste
Hello, Le 17/03/2008, mbrz [EMAIL PROTECTED] a écrit : How can I realise a hint-rules effect like gtktreeview to have lines rendered with alternating row colors on my gtktextview widget ? You can do this: g_object_set(G_OBJECT(treeView), rules-hint, TRUE, NULL); When you read the

Re: GtkTextView: inserting text with different styles

2008-03-17 Thread Lance Dillon
- Original Message From: Carlos Pereira [EMAIL PROTECTED] To: gtk-app-devel-list@gnome.org Sent: Monday, March 17, 2008 8:46:02 AM Subject: GtkTextView: inserting text with different styles Hi, Let's say I have a GtkTextView, with two color tags, red and blue: text_view =

How create new GtkBin widget

2008-03-17 Thread gege2061
Hello, I would like create a new GtkBin widget, but this simple code (writen in Vala) don't work (label don't show) : using Gtk; public class Gtk.StackContainer : Gtk.Bin { } public class Test { public static int main (string[] args) { Gtk.init (ref args); Gtk.Window win = new

gdk_pixbuf_composite() issue

2008-03-17 Thread Michael
I've got a pixbuf, created with gdk_pixbuf_new() (let's call it combined_pixbufs), with a width/height large enough to accommodate two pixbufs side-by-side. I then have two smaller pixbufs: pixbuf_one and pixbuf_two. I'm trying to use gdk_pixbuf_composite() to combine them side-by-side into

Re: How create new GtkBin widget

2008-03-17 Thread Emmanuele Bassi
On Mon, 2008-03-17 at 15:46 +0100, gege2061 wrote: Hello, I would like create a new GtkBin widget, but this simple code (writen in Vala) don't work (label don't show) : using Gtk; public class Gtk.StackContainer : Gtk.Bin { } a Bin is a specialised container that can contain just

Re: How create new GtkBin widget

2008-03-17 Thread gege2061
2008/3/17, Emmanuele Bassi [EMAIL PROTECTED]: a Bin is a specialised container that can contain just *one* child at a time. I know, I would like create a container that can contain several widgets but just one is showing (to simulate a superposition of widgets). if you want to implement a

Re: How create new GtkBin widget

2008-03-17 Thread Eduardo M KALINOWSKI
gege2061 wrote: I know, I would like create a container that can contain several widgets but just one is showing (to simulate a superposition of widgets). Use a GtkNotebook with the tabs hidden. It works perfectly for that purpose. -- O maior castigo para um bígamo? Duas sogras! Eduardo

cross platform gtk app

2008-03-17 Thread adrian vraciu
hello i need to create a GUI app that will run on a windows PC, Linux X11, Windows CE PDA, and the Nokia N800. It will be basically a dockable tool bar with some floating bitmaps. It's like the bottom bar in windows with the start button. Normally it's docked, meaning all the other windows

Re: gdk_pixbuf_composite() issue

2008-03-17 Thread Andrey Tsyvarev
Michael wrote: I've got a pixbuf, created with gdk_pixbuf_new() (let's call it combined_pixbufs), with a width/height large enough to accommodate two pixbufs side-by-side. I then have two smaller pixbufs: pixbuf_one and pixbuf_two. I'm trying to use gdk_pixbuf_composite() to combine them

Re: gtktextview render hint-rules effect

2008-03-17 Thread Brian J. Tarricone
Damien Caliste wrote: Hello, Le 17/03/2008, mbrz [EMAIL PROTECTED] a écrit : How can I realise a hint-rules effect like gtktreeview to have lines rendered with alternating row colors on my gtktextview widget ? You can do this: g_object_set(G_OBJECT(treeView), rules-hint, TRUE, NULL);

Re: gdk_pixbuf_composite() issue

2008-03-17 Thread Brian J. Tarricone
Michael wrote: I've got a pixbuf, created with gdk_pixbuf_new() (let's call it combined_pixbufs), with a width/height large enough to accommodate two pixbufs side-by-side. I then have two smaller pixbufs: pixbuf_one and pixbuf_two. I'm trying to use gdk_pixbuf_composite() to combine them