On 4/19/06, Jan Arne Petersen <[EMAIL PROTECTED]> wrote: > Disable checkbox-mode: > > g_object_set(G_OBJECT(tree_view), "allow-checkbox-mode", FALSE, NULL);
No it doesn't help and I have an example code to demonstrate it, see attached file. >From that code, Gaim and my library, it seems that _FIRST_ append'ed column that have a GtkCellRendererToogle fails, others works as expected. Try the attached code both on your desktop and on 770 and check it out. Weird, at least... -- Gustavo Sverzut Barbieri -------------------------------------- Jabber: [EMAIL PROTECTED] MSN: [EMAIL PROTECTED] ICQ#: 17249123 Skype: gsbarbieri Mobile: +55 (81) 9927 0010 Phone: +1 (347) 624 6296; [EMAIL PROTECTED] GPG: 0xB640E1A2 @ wwwkeys.pgp.net
#!/usr/bin/env python2.4 import gtk import gobject app = gtk.Window() c1 = gtk.TreeViewColumn( "text", gtk.CellRendererText(), text=0 ) c2 = gtk.TreeViewColumn( "b1", gtk.CellRendererToggle(), active=1 ) c3 = gtk.TreeViewColumn( "b2", gtk.CellRendererToggle(), active=2 ) c4 = gtk.TreeViewColumn( "b3", gtk.CellRendererToggle(), active=1 ) # use 1 again! m = gtk.ListStore( gobject.TYPE_STRING, gobject.TYPE_BOOLEAN, gobject.TYPE_BOOLEAN ) m.append( [ 'True', True, True ] ) m.append( [ 'False', False, False ] ) t = gtk.TreeView( m ) t.set_headers_visible( True ) t.append_column( c1 ) t.append_column( c2 ) t.append_column( c3 ) t.append_column( c4 ) app.add( t ) app.show_all() app.connect( "delete-event", gtk.main_quit ) gtk.main()
_______________________________________________ maemo-developers mailing list [email protected] https://maemo.org/mailman/listinfo/maemo-developers
