/srv/irclogs.ubuntu.com/2012/11/11/#ubuntu-desktop.txt

=== 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
m4n1shdesrt: ping20:51
desrtm4n1sh: hi21:15
m4n1shdesrt: I was trying to debug a vala app and getting this error. AFAIK you are the gtk dev21:17
m4n1shhttp://paste.ubuntu.com/1351733/21:17
m4n1shgactionmuxer.c: No such file or directory.21:17
desrtm4n1sh: lars wrote that code :)21:17
m4n1shis gtk in ubuntu not compiled with gactionmuxer.c?21:17
desrt  actions = g_action_group_list_actions (group->group);21:18
desrt  for (i = 0; actions[i]; i++)21:18
desrti bet group->group is NULL21:18
desrtand list_actions() is hitting a critical21:18
desrtm4n1sh: is this when the app is shutting down?21:19
m4n1shI am writing vala code and not even going through all that C code. So it has to to do with vala compiler21:19
m4n1shwhen starting itself21:19
desrthm21:19
m4n1shgdb shows this message21:19
desrtm4n1sh: can you give me the .vala?21:19
m4n1shwell, it is a big app. activity-log-manager (the privacy thing in Ubuntu)21:19
m4n1shdesrt: I will just give you the branch url21:20
desrti assume you don't hit the error while compiling21:20
m4n1shno, I don't21:20
m4n1shonly when running21:20
desrtright21:20
desrtit's not a vala issue21:20
desrtpretty sure...21:21
m4n1shdesrt: lp:~manishsinha/activity-log-manager/run-12-1021:22
m4n1shafter make, run it with ./src/activity-log-manager21:22
desrtk21:22
m4n1shthen it segfaults21:22
desrtm4n1sh: why do you have Makefile.in in version control?21:24
m4n1shthat is what even I am wondering. autotools and related things is something which I still can't get my head around21:25
m4n1shdesrt: build system is something I have been kinda scared of. It is still broken, but I have temporarily commented out broken parts21:26
m4n1shdesrt: brb in 15 mins. lunch21:26
m4n1shdesrt: any progress? I am totally stuck up with this. Even after commenting out a lot of lines in the source code, nothing happens21:44
desrtm4n1sh: i'm afraid i don't see the issue21:56
m4n1shdesrt: this line is worrying me21:57
m4n1sh645/build/buildd/gtk+3.0-3.6.0/./gtk/gactionmuxer.c: No such file or directory.21:57
m4n1shhow come gactionmuxer.c isn't found?21:57
desrtm4n1sh: because you don't have the gtk sources installed21:57
m4n1shdesrt: which package is that?21:58
desrtit's the gtk+3.0 source package21:58
desrtso like...21:58
desrt(activity-log-manager:9266): GLib-GIO-CRITICAL **: g_application_list_actions: assertion `application->priv->is_registered' failed21:58
desrtdon't ignore criticals21:58
desrtthey provide you with valuable information21:58
desrtand really... you have _a lot_ of criticals coming before the segfault21:59
desrtyou're using GtkApplication in an extremely weird way22:00
m4n1shreally? this was my first big Gtk App22:00
desrttake a look at how some other apps are using gtkapplication22:00
m4n1shso I won't be surprised if it isn't done well22:00
desrtbloatpad is a good example22:01
m4n1shyeah. will do22:01
desrtbasically, you should not be calling gtk_init() and gtk_main() from main()22:01
desrtnow should you be creating any windows22:01
desrt*nor22:01
desrtmain() should only create a Gtk.Application subclass and call .run() on it22:01
desrtlike, one line:22:01
desrtint main (string[] args) { return new MyApplication ().run (args); }22:02
m4n1shyeah. Now I understand this thing22:02
desrtMyApplication() should have a virtual function override called 'activate'22:02
desrtit should be what creates the first window22:02
* m4n1sh notes everything down22:04
desrtm4n1sh: baobab is a fairly well-written modern user of GtkApplication in vala22:04
* seiflotfy is a fan of desrt22:04
seiflotfy:D22:04
* desrt blushes22:04
desrtm4n1sh: http://git.gnome.org/browse/baobab/tree/src/main.vala22:05
desrtm4n1sh: and http://git.gnome.org/browse/baobab/tree/src/baobab-application.vala22:05
m4n1shI think I should get back to the board and fix the whole architecture of alm22:05
m4n1shseiflotfy: right?22:05
m4n1shmpt has a mockup of it22:05
seiflotfyyes sir22:05
desrthere's the 3rd most important file: http://git.gnome.org/browse/baobab/tree/src/baobab-window.vala22:07
desrtyou would do well to copy this pattern22:07
desrtnamespace22:07
desrtWhatever {22:07
desrt  class Application : Gtk.Application { ... }22:07
desrt  class Window : Gtk.ApplicationWindow { ... }22:07
desrt}22:07
desrtint main (string[] args) { return new Whatever.Application ().run (args); }22:08
desrtwhere 'Whatever' is the namespace you like for your app22:08
m4n1shdesrt: I think you gave a perfect reference to using vala22:09
m4n1shI will keep it in mind22:09
m4n1shdesrt: thanks a lot :)22:09
desrtno problem22:09
desrtcopying is always the best way22:09
m4n1sh:)22:09
desrtyou just need to make sure you're copying from the right places :)22:09
m4n1shyes22:10
=== m_conley is now known as m_conley_away
desrtwarp10: hey23:16
warp10desrt: hey, welcome aboard ;)23:16
desrtwarp10: i have something you might find useful23:18
desrtwarp10: http://imgur.com/UkTcn23:18
warp10desrt: uh... quite scary23:19
desrtno gimp... i swear it.23:19
desrtanyway... i was noticing that the team lacks an image23:21
=== Ursinha is now known as Ursinha-afk

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!