[10:43] <johhnn> Hello, I am using GtkEntry to get user input in my app. Is it possible to remember this input and set it to entrybox when the app is closed and launched again?
[10:43] <johhnn> The text field resets when the app is launched again.
[10:58] <commandoline> johhnn: how about saving the contents as a setting?
[10:59] <johhnn> How to do that? I am making app for the first time :)
[11:01] <commandoline> hmm, just a moment, I'll see if I can find some details for GTK (I'm using Qt myself)
[11:02] <commandoline> ok, it looks like a window has a 'delete-event' (that's how it's literally called in GTK)
[11:04] <commandoline> if you react on that by saving the setting, e.g. via the http://docs.python.org/library/configparser.html module if you're using python.
[11:04] <commandoline> and just read out the setting again when starting.
[11:05] <johhnn> I found a guide for gsettings --> http://www.micahcarrick.com/gsettings-python-gnome-3.html
[11:05] <commandoline> fine too
[11:06] <johhnn> yeah thanks for the link, i am reading it now :)
[11:07] <commandoline> The last approach is what gnome apps would typically do, but it looks like a bit more work to me (writing a scheme first). Just use whatever you prefer.
[11:43] <johhnn> commandoline: hey thanks configparser works like charm, feels like magic :)
[19:55] <imnichol> I'm using quickly and I'd like to have a list of things, what widget should I use?
[19:58] <commandoline> http://python-gtk-3-tutorial.readthedocs.org/en/latest/treeview.html I'd think (but I'm not a GTK dev myself)
[19:58] <commandoline> imnichol: ^
[19:58] <imnichol> Thanks commandoline
[21:52] <Phoenix87> any idea about how I can get rid of /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.py:391: Warning: g_object_set_property: construct property "type" for object `Window' can't be set after construction
[22:27] <guinea-pig> Phoenix87: it's not in your project
[22:29] <guinea-pig> https://bugzilla.gnome.org/show_bug.cgi?id=678510
[22:29] <guinea-pig> http://git.gnome.org/browse/pygobject/commit/?id=de4aa426002eeb09a060f8fd70bd6cb25a17766a
[22:29] <ubot2> Gnome bug 678510 in introspection "g_object_set_property: construct property "type" for object `Window' can't be set after construction" [Minor,Resolved: fixed]