Re: How create new GtkBin widget
2008/3/17, Eduardo M KALINOWSKI <[EMAIL PROTECTED]>: > Use a GtkNotebook with the tabs hidden. It works perfectly for that purpose. This is generally what I use, but for fun I want test implement this feature from to GtkBin. -- Nicolas Joseph Responsable de la rubrique GTK+ de developpez.com http://nicolasj.developpez.com ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: How create new GtkBin widget
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 M KALINOWSKI [EMAIL PROTECTED] http://move.to/hpkb ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: How create new GtkBin widget
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 container, subclass Gtk.Container and > override the add, remove and forall handlers. For the moment, the default behavior implemented by GtkBin satisfies me. Thanks for your rapid answer. Regards, -- Nicolas Joseph Responsable de la rubrique GTK+ de developpez.com http://nicolasj.developpez.com ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: How create new GtkBin widget
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 *one* child at a time. if you want to pack more than one child, use a VBox or a HBox (depending on the layout). if you want to implement a container, subclass Gtk.Container and override the add, remove and forall handlers. ciao, Emmanuele. -- Emmanuele Bassi, W: http://www.emmanuelebassi.net B: http://log.emmanuelebassi.net ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
How create new GtkBin widget
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 Gtk.Window (Gtk.WindowType.TOPLEVEL); win.destroy += Gtk.main_quit; Gtk.StackContainer stack = new Gtk.StackContainer (); win.add (stack); stack.add (new Gtk.Label ("Label")); win.show_all (); Gtk.main (); return 0; } } Can you help me? Regards, -- Nicolas Joseph Responsable de la rubrique GTK+ de developpez.com http://nicolasj.developpez.com ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list