[20:51] <m4n1sh> desrt: ping
[21:15] <desrt> m4n1sh: hi
[21:17] <m4n1sh> desrt: I was trying to debug a vala app and getting this error. AFAIK you are the gtk dev
[21:17] <m4n1sh> http://paste.ubuntu.com/1351733/
[21:17] <m4n1sh> gactionmuxer.c: No such file or directory.
[21:17] <desrt> m4n1sh: lars wrote that code :)
[21:17] <m4n1sh> is gtk in ubuntu not compiled with gactionmuxer.c?
[21:18] <desrt>   actions = g_action_group_list_actions (group->group);
[21:18] <desrt>   for (i = 0; actions[i]; i++)
[21:18] <desrt> i bet group->group is NULL
[21:18] <desrt> and list_actions() is hitting a critical
[21:19] <desrt> m4n1sh: is this when the app is shutting down?
[21:19] <m4n1sh> I am writing vala code and not even going through all that C code. So it has to to do with vala compiler
[21:19] <m4n1sh> when starting itself
[21:19] <desrt> hm
[21:19] <m4n1sh> gdb shows this message
[21:19] <desrt> m4n1sh: can you give me the .vala?
[21:19] <m4n1sh> well, it is a big app. activity-log-manager (the privacy thing in Ubuntu)
[21:20] <m4n1sh> desrt: I will just give you the branch url
[21:20] <desrt> i assume you don't hit the error while compiling
[21:20] <m4n1sh> no, I don't
[21:20] <m4n1sh> only when running
[21:20] <desrt> right
[21:20] <desrt> it's not a vala issue
[21:21] <desrt> pretty sure...
[21:22] <m4n1sh> desrt: lp:~manishsinha/activity-log-manager/run-12-10
[21:22] <m4n1sh> after make, run it with ./src/activity-log-manager
[21:22] <desrt> k
[21:22] <m4n1sh> then it segfaults
[21:24] <desrt> m4n1sh: why do you have Makefile.in in version control?
[21:25] <m4n1sh> that is what even I am wondering. autotools and related things is something which I still can't get my head around
[21:26] <m4n1sh> desrt: build system is something I have been kinda scared of. It is still broken, but I have temporarily commented out broken parts
[21:26] <m4n1sh> desrt: brb in 15 mins. lunch
[21:44] <m4n1sh> desrt: any progress? I am totally stuck up with this. Even after commenting out a lot of lines in the source code, nothing happens
[21:56] <desrt> m4n1sh: i'm afraid i don't see the issue
[21:57] <m4n1sh> desrt: this line is worrying me
[21:57] <m4n1sh> 645	/build/buildd/gtk+3.0-3.6.0/./gtk/gactionmuxer.c: No such file or directory.
[21:57] <m4n1sh> how come gactionmuxer.c isn't found?
[21:57] <desrt> m4n1sh: because you don't have the gtk sources installed
[21:58] <m4n1sh> desrt: which package is that?
[21:58] <desrt> it's the gtk+3.0 source package
[21:58] <desrt> so like...
[21:58] <desrt> (activity-log-manager:9266): GLib-GIO-CRITICAL **: g_application_list_actions: assertion `application->priv->is_registered' failed
[21:58] <desrt> don't ignore criticals
[21:58] <desrt> they provide you with valuable information
[21:59] <desrt> and really... you have _a lot_ of criticals coming before the segfault
[22:00] <desrt> you're using GtkApplication in an extremely weird way
[22:00] <m4n1sh> really? this was my first big Gtk App
[22:00] <desrt> take a look at how some other apps are using gtkapplication
[22:00] <m4n1sh> so I won't be surprised if it isn't done well
[22:01] <desrt> bloatpad is a good example
[22:01] <m4n1sh> yeah. will do
[22:01] <desrt> basically, you should not be calling gtk_init() and gtk_main() from main()
[22:01] <desrt> now should you be creating any windows
[22:01] <desrt> *nor
[22:01] <desrt> main() should only create a Gtk.Application subclass and call .run() on it
[22:01] <desrt> like, one line:
[22:02] <desrt> int main (string[] args) { return new MyApplication ().run (args); }
[22:02] <m4n1sh> yeah. Now I understand this thing
[22:02] <desrt> MyApplication() should have a virtual function override called 'activate'
[22:02] <desrt> it should be what creates the first window
[22:04]  * m4n1sh notes everything down
[22:04] <desrt> m4n1sh: baobab is a fairly well-written modern user of GtkApplication in vala
[22:04]  * seiflotfy is a fan of desrt
[22:04] <seiflotfy> :D
[22:04]  * desrt blushes
[22:05] <desrt> m4n1sh: http://git.gnome.org/browse/baobab/tree/src/main.vala
[22:05] <desrt> m4n1sh: and http://git.gnome.org/browse/baobab/tree/src/baobab-application.vala
[22:05] <m4n1sh> I think I should get back to the board and fix the whole architecture of alm
[22:05] <m4n1sh> seiflotfy: right?
[22:05] <m4n1sh> mpt has a mockup of it
[22:05] <seiflotfy> yes sir
[22:07] <desrt> here's the 3rd most important file: http://git.gnome.org/browse/baobab/tree/src/baobab-window.vala
[22:07] <desrt> you would do well to copy this pattern
[22:07] <desrt> namespace
[22:07] <desrt> Whatever {
[22:07] <desrt>   class Application : Gtk.Application { ... }
[22:07] <desrt>   class Window : Gtk.ApplicationWindow { ... }
[22:07] <desrt> }
[22:08] <desrt> int main (string[] args) { return new Whatever.Application ().run (args); }
[22:08] <desrt> where 'Whatever' is the namespace you like for your app
[22:09] <m4n1sh> desrt: I think you gave a perfect reference to using vala
[22:09] <m4n1sh> I will keep it in mind
[22:09] <m4n1sh> desrt: thanks a lot :)
[22:09] <desrt> no problem
[22:09] <desrt> copying is always the best way
[22:09] <m4n1sh> :)
[22:09] <desrt> you just need to make sure you're copying from the right places :)
[22:10] <m4n1sh> yes
[23:16] <desrt> warp10: hey
[23:16] <warp10> desrt: hey, welcome aboard ;)
[23:18] <desrt> warp10: i have something you might find useful
[23:18] <desrt> warp10: http://imgur.com/UkTcn
[23:19] <warp10> desrt: uh... quite scary
[23:19] <desrt> no gimp... i swear it.
[23:21] <desrt> anyway... i was noticing that the team lacks an image