Re: GTK, can GtkNotebook have a single control and all tabs pointing to it?
Hello, I'm afraid this is not possible to do it this way; you will have to create some kind of wrapper widget. I would go on with GtkStack, and for the tabs themselves you may take a look into GtkStackSwitcher's source code. Best, Gergely On 9 Feb 2015 14:43, Leo Ufimtsev lufim...@redhat.com wrote: Hello, I'm an SWT developer. We build SWT on top of GTK. In swt, some developers like to create a GtkNotebook (TabFolder) with many tabs but all pointing to the same control. (sigh, odd, I know...) The control is a viewer, and changing tabs changes the content of the viewer. However, in gtk I haven't been able to make this work. If I add the same child twice, it gives me warnings and errors: gtk_notebook_append_page (GTK_NOTEBOOK (notebook), child1, label1); gtk_notebook_append_page (GTK_NOTEBOOK (notebook), child1, label2); Warning: (gtk3_testing:17322): Gtk-WARNING **: Can't set a parent on widget which has a parent Theoretically speaking, can a GtkNotebook have tabs that all point to the same control? (and we just listen to tab-changing events)? Or is this impossible by principle of widget-hierarchy? Thank you Leo Ufimtsev | Intern Software Engineer @ Eclipse Team ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
GTK+ Charts and Blueprint
Hi there. I want to start a library for creating interactive and animated charts with gtk I am going to create a project on github but before I want to know if is there any library for create something like that? and if someone can tell me some advise of how to start or what should I do. Also I want to create a Blueprint app for easily create mockups for Gnome, and mobile systems, something like evolus-pencil. Regards, to everyone. Miguel Angel ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
GTK, can GtkNotebook have a single control and all tabs pointing to it?
Hello, I'm an SWT developer. We build SWT on top of GTK. In swt, some developers like to create a GtkNotebook (TabFolder) with many tabs but all pointing to the same control. (sigh, odd, I know...) The control is a viewer, and changing tabs changes the content of the viewer. However, in gtk I haven't been able to make this work. If I add the same child twice, it gives me warnings and errors: gtk_notebook_append_page (GTK_NOTEBOOK (notebook), child1, label1); gtk_notebook_append_page (GTK_NOTEBOOK (notebook), child1, label2); Warning: (gtk3_testing:17322): Gtk-WARNING **: Can't set a parent on widget which has a parent Theoretically speaking, can a GtkNotebook have tabs that all point to the same control? (and we just listen to tab-changing events)? Or is this impossible by principle of widget-hierarchy? Thank you Leo Ufimtsev | Intern Software Engineer @ Eclipse Team ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list