diff --git a/src/sugar3/graphics/palettewindow.py b/src/sugar3/graphics/palettewindow.py
index c48ae55..95cf92e 100644
a
|
b
|
class _PaletteWindowWidget(Gtk.Window): |
276 | 276 | |
277 | 277 | self._palette = palette |
278 | 278 | self.set_decorated(False) |
279 | | self.set_resizable(False) |
| 279 | # self.set_resizable(False) |
| 280 | self.set_has_resize_grip(False) |
280 | 281 | self.set_position(Gtk.WindowPosition.NONE) |
281 | 282 | |
| 283 | self.connect('draw', self.draw_cb) |
| 284 | |
282 | 285 | context = self.get_style_context() |
283 | 286 | # Just assume all borders are the same |
284 | 287 | border = context.get_border(Gtk.StateFlags.ACTIVE).right |
… |
… |
class _PaletteWindowWidget(Gtk.Window): |
351 | 354 | |
352 | 355 | return rect |
353 | 356 | |
| 357 | def draw_cb(self, win, cr): |
| 358 | logging.debug("MANUQ draw_cb") |
| 359 | |
354 | 360 | def do_draw(self, cr): |
| 361 | logging.debug("MANUQ do_draw") |
355 | 362 | # Fall trough to the container expose handler. |
356 | 363 | # (Leaving out the window expose handler which redraws everything) |
357 | 364 | Gtk.Window.do_draw(self, cr) |
… |
… |
class _PaletteWindowWidget(Gtk.Window): |
387 | 394 | self.emit('leave-notify') |
388 | 395 | |
389 | 396 | def popup(self, invoker): |
| 397 | logging.debug("MANUQ _PaletteWindowWidget popup %r", self.get_visible()) |
390 | 398 | if self.get_visible(): |
391 | 399 | return |
392 | 400 | self.connect('enter-notify-event', self.__enter_notify_event_cb) |
… |
… |
class _PaletteWindowWidget(Gtk.Window): |
398 | 406 | return |
399 | 407 | self.disconnect_by_func(self.__enter_notify_event_cb) |
400 | 408 | self.disconnect_by_func(self.__leave_notify_event_cb) |
| 409 | logging.debug("MANUQ _PaletteWindowWidget popdown") |
401 | 410 | self.hide() |
402 | 411 | |
403 | 412 | |
… |
… |
class Invoker(GObject.GObject): |
975 | 984 | |
976 | 985 | def notify_toggle_state(self): |
977 | 986 | self._ensure_palette_exists() |
| 987 | logging.debug("MANUQ notify_toggle_state") |
978 | 988 | self.emit('toggle-state') |
979 | 989 | |
980 | 990 | def get_palette(self): |