Gtk2::TreeSelection (C example)

hi ...

I wrote a little example in C to illustrate
the GtkTreeSelection. It just prints out "selection"
if a change happens. 

        select = gtk_tree_view_get_selection (GTK_TREE_VIEW (treeview));
        g_signal_connect (G_OBJECT (select), "changed", G_CALLBACK (tree_selection_changed_cb), NULL);

Currently it is not possible to connect a signal to an Gtk2::TreeSelection object.

Jens Luedicke <jens irs-net com>

"Never offend people with style when you can offend them with substance."
--Sam Brown

Attachment: list-selection.c
Description: Text Data

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