You have been subscribed to a public bug:

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: pygobject (Ubuntu)
     Importance: Undecided
         Status: New

-- 
Simple app with gir results in segfault
https://bugs.launchpad.net/bugs/880318
You received this bug notification because you are a member of Desktop 
Packages, which is subscribed to pygobject in Ubuntu.

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to