Re: selecting an iter in a single liststore




On Sep 17, 2004, at 7:04 AM, Alexandre Jousset wrote:

I have a problem to select a item in a ListStore when the list is in 'single' or 'browse' mode. When the list is in 'multiple' mode, the problem does not occur. Here is the code:

this is a known bug: http://bugzilla.gnome.org/show_bug.cgi?id=143270

fixed already in gtk+ 2.4.10. the fix was committed last tuesday on both HEAD and the stable branch: http://cvs.gnome.org/viewcvs/gtk%2B/gtk/gtktreeview.c? rev=1.414&view=log

as a workaround, make your list not be the first widget in the focus chain of your dialog (or just upgrade gtk+).



my $win = Gtk2::Window->new('toplevel');
$win->show;

my $dialog = Gtk2::Dialog->new_with_buttons("title",
                                            $win,

if the only reason you created $win was for the dialog to have a parent, you didn't need to; you can pass undef for $parent and the dialog will use the desktop as its parent window. (you don't want to do that for a modal dialog in a normal app, of course.)


--
Eight, eight, eight, eight ounces to gooooo, you're gonna be sedated!
  -- Elysse, singing while feeding rice cereal formula to
    fussy infant Yvonne




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