diff options
Diffstat (limited to 'montage.py')
-rw-r--r-- | montage.py | 19 |
1 files changed, 8 insertions, 11 deletions
@@ -98,7 +98,7 @@ class View(Gtk.EventBox): def set_emittion(self, value): self._emission = value - + frame = GObject.property(type=object, getter=None, setter=set_frame) ground = GObject.property(type=object, getter=None, setter=set_ground) sound = GObject.property(type=object, getter=None, setter=set_sound) @@ -182,11 +182,8 @@ class View(Gtk.EventBox): self._add_frame(i) # frames box - # FIXME: There is no longer VscrooledBox - #table_scroll = VScrolledBox() - table_scroll = Gtk.ScrolledWindow() - table_scroll.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC) - table_scroll.add_with_viewport(self.table) + table_scroll = VScrolledBox() + table_scroll.set_viewport(self.table) table_scroll.modify_bg(Gtk.StateType.NORMAL, Gdk.color_parse('BUTTON_BACKGROUND')) yellow_frames = Gtk.EventBox() @@ -455,11 +452,11 @@ class View(Gtk.EventBox): def _screen_size_cb(self, sender, aloc, widget): - size = min(aloc.width, aloc.height) - widget.set_size_request(size, size) + # FIXME: Clear the set_size() function and enable the following lines to avoid the error: received an X Window System error. + #size = min(aloc.width, aloc.height) + #widget.set_size_request(size, size) + #return True - return True - ''' def set_size(): size = min(aloc.width, aloc.height) @@ -469,4 +466,4 @@ class View(Gtk.EventBox): if self._screen_size_id is not None: GObject.source_remove(self._screen_size_id) - self._screen_size_id = GObject.timeout_add(500, set_size)''' + self._screen_size_id = GObject.timeout_add(500, set_size) |