Move toolbar above treeview which allows windows to resize smaller. Usability feature to allow gramps to work better on netbooks. Feature #2661
svn: r11877
This commit is contained in:
parent
764cc7e083
commit
f05c0ee0f0
@ -90,11 +90,11 @@ class BackRefList(EmbeddedList):
|
||||
self.tooltips = gtk.Tooltips()
|
||||
self.tooltips.set_tip(self.edit_btn, _('Edit reference'))
|
||||
|
||||
vbox = gtk.VBox()
|
||||
vbox.set_spacing(6)
|
||||
vbox.pack_start(self.edit_btn, False)
|
||||
vbox.show_all()
|
||||
self.pack_start(vbox, False)
|
||||
hbox = gtk.HBox()
|
||||
hbox.set_spacing(6)
|
||||
hbox.pack_start(self.edit_btn, False)
|
||||
hbox.show_all()
|
||||
self.pack_start(hbox, False)
|
||||
|
||||
self.add_btn = None
|
||||
self.del_btn = None
|
||||
|
@ -150,20 +150,20 @@ class ButtonTab(GrampsTab):
|
||||
else:
|
||||
self.jump_btn = None
|
||||
|
||||
vbox = gtk.VBox()
|
||||
vbox.set_spacing(6)
|
||||
vbox.pack_start(self.add_btn, False)
|
||||
hbox = gtk.HBox()
|
||||
hbox.set_spacing(6)
|
||||
hbox.pack_start(self.add_btn, False)
|
||||
if share_button:
|
||||
vbox.pack_start(self.share_btn, False)
|
||||
vbox.pack_start(self.edit_btn, False)
|
||||
vbox.pack_start(self.del_btn, False)
|
||||
hbox.pack_start(self.share_btn, False)
|
||||
hbox.pack_start(self.edit_btn, False)
|
||||
hbox.pack_start(self.del_btn, False)
|
||||
if move_buttons:
|
||||
vbox.pack_start(self.up_btn, False)
|
||||
vbox.pack_start(self.down_btn, False)
|
||||
hbox.pack_start(self.up_btn, False)
|
||||
hbox.pack_start(self.down_btn, False)
|
||||
if jump_button:
|
||||
vbox.pack_start(self.jump_btn, False)
|
||||
vbox.show_all()
|
||||
self.pack_start(vbox, False)
|
||||
hbox.pack_start(self.jump_btn, False)
|
||||
hbox.show_all()
|
||||
self.pack_start(hbox, False)
|
||||
|
||||
def double_click(self, obj, event):
|
||||
"""
|
||||
|
@ -347,7 +347,7 @@ class EmbeddedList(ButtonTab):
|
||||
scroll.set_shadow_type(gtk.SHADOW_IN)
|
||||
scroll.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC)
|
||||
scroll.add(self.tree)
|
||||
self.pack_start(scroll, True)
|
||||
self.pack_end(scroll, True)
|
||||
|
||||
def get_selected(self):
|
||||
"""
|
||||
|
@ -194,7 +194,7 @@ class GalleryTab(ButtonTab):
|
||||
|
||||
# put everything together
|
||||
scroll.add(self.iconlist)
|
||||
self.pack_start(scroll, True)
|
||||
self.pack_end(scroll, True)
|
||||
|
||||
def _update_internal_list(self, *obj):
|
||||
newlist = []
|
||||
|
@ -36,7 +36,7 @@ _RIGHT = gtk.gdk.keyval_from_name("Right")
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
class GrampsTab(gtk.HBox):
|
||||
class GrampsTab(gtk.VBox):
|
||||
"""
|
||||
This class provides the base level class for 'tabs', which are used to
|
||||
fill in notebook tabs for GRAMPS edit dialogs.
|
||||
@ -63,7 +63,7 @@ class GrampsTab(gtk.HBox):
|
||||
@param name: Notebook label name
|
||||
@type name: str/unicode
|
||||
"""
|
||||
gtk.HBox.__init__(self)
|
||||
gtk.VBox.__init__(self)
|
||||
|
||||
# store information to pass to child windows
|
||||
self.dbstate = dbstate
|
||||
|
Loading…
Reference in New Issue
Block a user