[Bugs] #4388 sugar-toolkit-gtk3 UNSP: Clipboard use in ebook mode can cause Sugar to crash

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Thu Jan 17 12:21:40 EST 2013


#4388: Clipboard use in ebook mode can cause Sugar to crash
------------------------------------------+---------------------------------
    Reporter:  erikos                     |          Owner:  erikos
        Type:  defect                     |         Status:  closed
    Priority:  Unspecified by Maintainer  |      Milestone:  0.98  
   Component:  sugar-toolkit-gtk3         |        Version:  0.98.x
    Severity:  Unspecified                |     Resolution:  fixed 
    Keywords:                             |   Distribution:  OLPC  
Status_field:  Unconfirmed                |  
------------------------------------------+---------------------------------
Changes (by erikos):

  * status:  new => closed
  * resolution:  => fixed


Comment:

 {{{
 commit ea9b86e3efa4b8ba793aa7cd3648a64d3a101b21
 Author: Carlos Garnacho <carlos at lanedo.com>
 Date:   Thu Jan 17 13:29:51 2013 +0100

     palettemenuwidget: Ensure the widget is realized before popping it up,
 SL #4388

     Otherwise the internal state is messed up, GTK+ grabs may be held on
     unrealized widgets.

     Signed-off-by: Carlos Garnacho <carlos at lanedo.com>
     Acked-by: Simon Schampijer <simon at laptop.org>

 diff --git a/src/sugar3/graphics/palettewindow.py
 b/src/sugar3/graphics/palettewindow.py
 index ff5e340..c48ae55 100644
 --- a/src/sugar3/graphics/palettewindow.py
 +++ b/src/sugar3/graphics/palettewindow.py
 @@ -148,6 +148,7 @@ class _PaletteMenuWidget(Gtk.Menu):

          self._invoker = invoker
          self._find_all_menus(self)
 +        self.realize()
          for menu in self._menus:
              if self._invoker:
                  menu.connect('motion-notify-event',
 self._motion_notify_cb)
 }}}

 Pushed to master and 0.98 branch of tookit-gtk3:
 ea9b86e3efa4b8ba793aa7cd3648a64d3a101b21

-- 
Ticket URL: <http://bugs.sugarlabs.org/ticket/4388#comment:1>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list