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