get_tab_label



hi all,

i am struggling with the notebook widget for a simple text editor.
i want to get the name of the current open notebook page.

i have the following structure in the notebookpage:
notebook->vscrolledwindow->text.

when i do this:

my $file_dialog = new Gtk::FileSelection("Save as...");
my $a = $notebook->get_tab_label($vscrolled);
$file_dialog->set_filename($a);
......

then i get the following from $a:

Gtk::Label=HASH(0x8196bdc)

how do i work around it so it just gives me the labelname...in this
case:
new.txt.

thanks





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]