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:
parent
4697422bed
commit
a5732076d6
@ -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>
|
2007-04-01 Zsolt Foldvari <zfoldvar@users.sourceforge.net>
|
||||||
* src/GrampsWidgets.py: Statusbar widget added.
|
* src/GrampsWidgets.py: Statusbar widget added.
|
||||||
* src/ViewManager.py: use custom Statusbar.
|
* src/ViewManager.py: use custom Statusbar.
|
||||||
|
@ -762,14 +762,14 @@ class Statusbar(gtk.HBox):
|
|||||||
def _set_packing(self):
|
def _set_packing(self):
|
||||||
"""Set packing style of the statusbars.
|
"""Set packing style of the statusbars.
|
||||||
|
|
||||||
All bars are packed with "expand"=False, "fill"=False parameters,
|
All bars are packed with "expand"=True, "fill"=True parameters,
|
||||||
except the last one, which is packed with "expand"=True, "fill"=True.
|
except the last one, which is packed with "expand"=False, "fill"=False.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
for bar in self.get_children():
|
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, True, True, 0, gtk.PACK_START)
|
self.set_child_packing(bar, False, False, 0, gtk.PACK_START)
|
||||||
|
|
||||||
def _get_next_id(self):
|
def _get_next_id(self):
|
||||||
"""Get next unused statusbar id.
|
"""Get next unused statusbar id.
|
||||||
@ -2555,8 +2555,8 @@ def main(args):
|
|||||||
statusbar.push(1, "A short one", yet_another_statusbar)
|
statusbar.push(1, "A short one", yet_another_statusbar)
|
||||||
|
|
||||||
last_statusbar = statusbar.insert()
|
last_statusbar = statusbar.insert()
|
||||||
statusbar.push(1, "I'm the last statusbar always taking "
|
statusbar.push(1, "The last statusbar has always fixed width",
|
||||||
"the remaining space", last_statusbar)
|
last_statusbar)
|
||||||
|
|
||||||
# =========================================================================
|
# =========================================================================
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user