2007-04-01 Zsolt Foldvari <zfoldvar@users.sourceforge.net>

* src/GrampsWidgets.py (Statusbar._set_packing): Reverse packing style.


svn: r8345
This commit is contained in:
Zsolt Foldvari 2007-04-01 20:12:14 +00:00
parent 4697422bed
commit a5732076d6
2 changed files with 9 additions and 6 deletions

View File

@ -1,3 +1,6 @@
2007-04-01 Zsolt Foldvari <zfoldvar@users.sourceforge.net>
* src/GrampsWidgets.py (Statusbar._set_packing): Reverse packing style.
2007-04-01 Zsolt Foldvari <zfoldvar@users.sourceforge.net>
* src/GrampsWidgets.py: Statusbar widget added.
* src/ViewManager.py: use custom Statusbar.

View File

@ -762,15 +762,15 @@ class Statusbar(gtk.HBox):
def _set_packing(self):
"""Set packing style of the statusbars.
All bars are packed with "expand"=False, "fill"=False parameters,
except the last one, which is packed with "expand"=True, "fill"=True.
All bars are packed with "expand"=True, "fill"=True parameters,
except the last one, which is packed with "expand"=False, "fill"=False.
"""
for bar in self.get_children():
self.set_child_packing(bar, False, False, 0, gtk.PACK_START)
self.set_child_packing(bar, True, True, 0, gtk.PACK_START)
self.set_child_packing(bar, False, False, 0, gtk.PACK_START)
def _get_next_id(self):
"""Get next unused statusbar id.
"""
@ -2555,8 +2555,8 @@ def main(args):
statusbar.push(1, "A short one", yet_another_statusbar)
last_statusbar = statusbar.insert()
statusbar.push(1, "I'm the last statusbar always taking "
"the remaining space", last_statusbar)
statusbar.push(1, "The last statusbar has always fixed width",
last_statusbar)
# =========================================================================