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:
Gary Burton 2009-02-05 20:25:28 +00:00
parent 764cc7e083
commit f05c0ee0f0
5 changed files with 20 additions and 20 deletions

View File

@ -90,11 +90,11 @@ class BackRefList(EmbeddedList):
self.tooltips = gtk.Tooltips() self.tooltips = gtk.Tooltips()
self.tooltips.set_tip(self.edit_btn, _('Edit reference')) self.tooltips.set_tip(self.edit_btn, _('Edit reference'))
vbox = gtk.VBox() hbox = gtk.HBox()
vbox.set_spacing(6) hbox.set_spacing(6)
vbox.pack_start(self.edit_btn, False) hbox.pack_start(self.edit_btn, False)
vbox.show_all() hbox.show_all()
self.pack_start(vbox, False) self.pack_start(hbox, False)
self.add_btn = None self.add_btn = None
self.del_btn = None self.del_btn = None

View File

@ -150,20 +150,20 @@ class ButtonTab(GrampsTab):
else: else:
self.jump_btn = None self.jump_btn = None
vbox = gtk.VBox() hbox = gtk.HBox()
vbox.set_spacing(6) hbox.set_spacing(6)
vbox.pack_start(self.add_btn, False) hbox.pack_start(self.add_btn, False)
if share_button: if share_button:
vbox.pack_start(self.share_btn, False) hbox.pack_start(self.share_btn, False)
vbox.pack_start(self.edit_btn, False) hbox.pack_start(self.edit_btn, False)
vbox.pack_start(self.del_btn, False) hbox.pack_start(self.del_btn, False)
if move_buttons: if move_buttons:
vbox.pack_start(self.up_btn, False) hbox.pack_start(self.up_btn, False)
vbox.pack_start(self.down_btn, False) hbox.pack_start(self.down_btn, False)
if jump_button: if jump_button:
vbox.pack_start(self.jump_btn, False) hbox.pack_start(self.jump_btn, False)
vbox.show_all() hbox.show_all()
self.pack_start(vbox, False) self.pack_start(hbox, False)
def double_click(self, obj, event): def double_click(self, obj, event):
""" """

View File

@ -347,7 +347,7 @@ class EmbeddedList(ButtonTab):
scroll.set_shadow_type(gtk.SHADOW_IN) scroll.set_shadow_type(gtk.SHADOW_IN)
scroll.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC) scroll.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC)
scroll.add(self.tree) scroll.add(self.tree)
self.pack_start(scroll, True) self.pack_end(scroll, True)
def get_selected(self): def get_selected(self):
""" """

View File

@ -194,7 +194,7 @@ class GalleryTab(ButtonTab):
# put everything together # put everything together
scroll.add(self.iconlist) scroll.add(self.iconlist)
self.pack_start(scroll, True) self.pack_end(scroll, True)
def _update_internal_list(self, *obj): def _update_internal_list(self, *obj):
newlist = [] newlist = []

View File

@ -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 This class provides the base level class for 'tabs', which are used to
fill in notebook tabs for GRAMPS edit dialogs. fill in notebook tabs for GRAMPS edit dialogs.
@ -63,7 +63,7 @@ class GrampsTab(gtk.HBox):
@param name: Notebook label name @param name: Notebook label name
@type name: str/unicode @type name: str/unicode
""" """
gtk.HBox.__init__(self) gtk.VBox.__init__(self)
# store information to pass to child windows # store information to pass to child windows
self.dbstate = dbstate self.dbstate = dbstate