[Sugar-devel] Read port to Gtk 3 status

C. Scott Ananian cscott at laptop.org
Sat Nov 5 13:02:46 EDT 2011


On Sat, Nov 5, 2011 at 7:49 AM, Walter Bender <walter.bender at gmail.com> wrote:
>> -        self._view.set_flags(gtk.CAN_DEFAULT | gtk.CAN_FOCUS)
>> +        # TODO
>> +        #self._view.set_flags(Gtk.CAN_DEFAULT | Gtk.CAN_FOCUS)
>
> This one I think I can help with. Try:
>
> self._view.set_can_focus(True)
>
> -walter

The set_flags method has been deprecated since GTK 2.22.  You should
use the set_can_default(), set_can_focus(), etc methods (in both GTK2
and GTK3).
 --scott

-- 
      ( http://cscott.net )


More information about the Sugar-devel mailing list