[Bug 880318] [NEW] Simple app with gir results in segfault
Jo-Erlend Schinstad
joerlend.schinstad at gmail.com
Sun Oct 23 12:05:07 UTC 2011
Public bug reported:
This simple program results in a segfault all the time, and I see
nothing wrong with it:
from gi.repository import Gtk
window = Gtk.Window(title="My GTK3 window")
window.connect("delete-event", Gtk.main_quit)
mainbox = Gtk.Box(False, 0)
mainbox.set_orientation(Gtk.Orientation.VERTICAL)
toolbox = Gtk.Box(False, 0)
toolbox.set_orientation(Gtk.Orientation.HORIZONTAL)
tb_style_context = toolbox.get_style_context()
tb_style_context.add_class(Gtk.STYLE_CLASS_PRIMARY_TOOLBAR)
toolbar = Gtk.Toolbar()
tb_button = Gtk.ToolButton(stock_id=Gtk.STOCK_NEW)
toolbar.add(tb_button)
toggle_button = Gtk.ToggleButton(label="Normal toggle button")
toolbox.pack_start(toolbox, True, True, 0)
toolbox.pack_start(toggle_button, False, False, 0)
mainbox.pack_start(toolbox, False, False, 0)
window.add(mainbox)
window.show_all()
Gtk.main()
** Affects: python2.7 (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python2.7 in Ubuntu.
https://bugs.launchpad.net/bugs/880318
Title:
Simple app with gir results in segfault
Status in “python2.7” package in Ubuntu:
New
Bug description:
This simple program results in a segfault all the time, and I see
nothing wrong with it:
from gi.repository import Gtk
window = Gtk.Window(title="My GTK3 window")
window.connect("delete-event", Gtk.main_quit)
mainbox = Gtk.Box(False, 0)
mainbox.set_orientation(Gtk.Orientation.VERTICAL)
toolbox = Gtk.Box(False, 0)
toolbox.set_orientation(Gtk.Orientation.HORIZONTAL)
tb_style_context = toolbox.get_style_context()
tb_style_context.add_class(Gtk.STYLE_CLASS_PRIMARY_TOOLBAR)
toolbar = Gtk.Toolbar()
tb_button = Gtk.ToolButton(stock_id=Gtk.STOCK_NEW)
toolbar.add(tb_button)
toggle_button = Gtk.ToggleButton(label="Normal toggle button")
toolbox.pack_start(toolbox, True, True, 0)
toolbox.pack_start(toggle_button, False, False, 0)
mainbox.pack_start(toolbox, False, False, 0)
window.add(mainbox)
window.show_all()
Gtk.main()
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python2.7/+bug/880318/+subscriptions
More information about the foundations-bugs
mailing list