Re: Make notebook page active

2006-07-22 Thread César Leonardo Blum Silveira
Well, I guess after this page_label = gtk_label_new("Client"); gtk_notebook_append_page(GTK_NOTEBOOK(notebook), vbox0, page_label); gtk_box_pack_start(GTK_BOX(vbox), notebook, TRUE, TRUE, 0); the page exists, right? So, there is really something missing? What is it? Thanks, César B. S. On 7/2

GLib 2.12.1 released

2006-07-22 Thread Matthias Clasen
GLib 2.12.1 is now available for download at: ftp://ftp.gtk.org/pub/gtk/v2.12/ http://download.gnome.org/sources/glib/2.12/ glib-2.12.1.tar.bz2 md5sum: 97786d2a03f0f190bd782749139dc10c glib-2.12.1.tar.gzmd5sum: 5273280fb79dd959cd54351fbd57e80e GLib is the low-level core library that form

Re: use a picture and a label as gtk_notebook_tab_label

2006-07-22 Thread Christian Neumair
Am Samstag, den 22.07.2006, 17:07 +0200 schrieb rupert: > Im trying to use an image and a gtk_label as a tab_label. > I pack both into a hbox and put this hbox as the tablabel in the append_page > option: > > [code] > mainbook = gtk_notebook_new (); > gtk_box_pack_start(GTK_BOX (vb

use a picture and a label as gtk_notebook_tab_label

2006-07-22 Thread rupert
Im trying to use an image and a gtk_label as a tab_label. I pack both into a hbox and put this hbox as the tablabel in the append_page option: [code] mainbook = gtk_notebook_new (); gtk_box_pack_start(GTK_BOX (vboxmain), mainbook, TRUE, TRUE, 0); gtk_notebook_set_tab_pos (G

Re: Make notebook page active

2006-07-22 Thread tomas
On Sat, Jul 22, 2006 at 11:45:08AM -0300, C?sar Leonardo Blum Silveira wrote: > Hello all > > My software uses a GtkNotebook with two pages. I would like to make > the second page active when the program starts. I tried using the > following piece of code > > gtk_notebook_set_current_page(GTK_NOT

Make notebook page active

2006-07-22 Thread César Leonardo Blum Silveira
Hello all My software uses a GtkNotebook with two pages. I would like to make the second page active when the program starts. I tried using the following piece of code gtk_notebook_set_current_page(GTK_NOTEBOOK(notebook), 1); But it didn't actually work. Is there anything else I should do? Some

Re: Removing selected items from a list

2006-07-22 Thread Christopher Backhouse
I like option 2. Strange that I didn't think of it, as this exactly what I usually do for std::vector (although the performance of deleting from the middle of a vector is obviously not good) David Nečas (Yeti) wrote: > On Fri, Jul 21, 2006 at 11:23:40PM +0100, Christopher Backhouse wrote: >> so

Re: New to GObject, few questions

2006-07-22 Thread Tomasz Jankowski
Thanks! Now GObject is much clear for me. If I understood you good I should use methods, which will affect on propertys of concrete object and Interface should be defined to be able to work with many object (classes) - like GtkTreeModel can work with GtkListStore and GtkTreeStore. Interfaces are on

Re: Removing selected items from a list

2006-07-22 Thread Yeti
On Fri, Jul 21, 2006 at 11:23:40PM +0100, Christopher Backhouse wrote: > so - I loop through the selection, converting all the paths into > references and put them in a new list. > Then I loop through that list, convert the references back to iters so i > can remove them from the tree. > It also