[hafqa] [hafqa] [Bug 1239] HPaned and VPaned set_position is broken
From: bugzilla-daemon at maemo.org bugzilla-daemon at maemo.orgDate: Thu May 3 17:19:17 EEST 2007
- Previous message: [hafqa] [Bug 1239] HPaned and VPaned set_position is broken
- Next message: [hafqa] [Bug 1240] label_yalign is broken in gtk.Frame, yet text is too close to frame box
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
https://maemo.org/bugzilla/show_bug.cgi?id=1239 ------- Additional Comments From sean at cs.gmu.edu 2007-05-03 17:19 ------- Okay, here's a test case example. set_position is supposed to set the pane position in pixels. So if I set it to 70, it's supposed to move to be 70 pixels away from the left edge. But instead it goes 2/3 across the screen! Setting it to other values does similar things. Note also that the values don't have consistency -- they have some strange nonlinearity to them. And get_position still insists that the bar is located at 70 pixels! If I call set_position *after* gtk.main() is running and everything's been set up, then it sets to the right position. In the example below, this happens when you click on either of the buttons. See for yourself; and try other values (100, 50, etc.) for fun. import gtk w = gtk.Window() h = gtk.HPaned() b1 = gtk.Button("Bad") b1.connect("clicked", lambda widget, data=None: h.set_position(70)) b2 = gtk.Button("Bad") b2.connect("clicked", lambda widget, data=None: h.set_position(70)) h.pack1(b1, resize=True, shrink=True) h.pack2(b2, resize=True, shrink=True) h.set_position(70) w.add(h) w.show_all() gtk.main() -- Configure bugmail: https://maemo.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug, or are watching the QA contact.
- Previous message: [hafqa] [Bug 1239] HPaned and VPaned set_position is broken
- Next message: [hafqa] [Bug 1240] label_yalign is broken in gtk.Frame, yet text is too close to frame box
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]