parent
3ad5248af0
commit
60b4866296
@ -165,7 +165,7 @@ class PageView(DbGUIElement, metaclass=ABCMeta):
|
|||||||
self.widget.show_all()
|
self.widget.show_all()
|
||||||
self.widget.set_name('view')
|
self.widget.set_name('view')
|
||||||
self.vpane.pack1(self.widget, resize=True, shrink=False)
|
self.vpane.pack1(self.widget, resize=True, shrink=False)
|
||||||
self.vpane.pack2(self.bottombar, resize=False, shrink=True)
|
self.vpane.pack2(self.bottombar, resize=False, shrink=False)
|
||||||
self.vpane.show()
|
self.vpane.show()
|
||||||
self._config.register('vpane.slider-position', -1)
|
self._config.register('vpane.slider-position', -1)
|
||||||
self.vpane.set_position(self._config.get('vpane.slider-position'))
|
self.vpane.set_position(self._config.get('vpane.slider-position'))
|
||||||
|
@ -371,10 +371,6 @@ class GrampletBar(Gtk.Notebook):
|
|||||||
"""
|
"""
|
||||||
Add a tab to the notebook for the given gramplet.
|
Add a tab to the notebook for the given gramplet.
|
||||||
"""
|
"""
|
||||||
width = -1 # Allow tab width to adjust (smaller) to sidebar
|
|
||||||
height = min(int(self.uistate.screen_height() * 0.20), 400)
|
|
||||||
gramplet.set_size_request(width, height)
|
|
||||||
|
|
||||||
label = self.__create_tab_label(gramplet)
|
label = self.__create_tab_label(gramplet)
|
||||||
page_num = self.append_page(gramplet, label)
|
page_num = self.append_page(gramplet, label)
|
||||||
return page_num
|
return page_num
|
||||||
|
Loading…
Reference in New Issue
Block a user