How can I see the code of gnome panels? for example view the code is executed When I click on shutdown button in the panel.
Asked
Active
Viewed 321 times
0
-
why do you want to view the code? Maybe if you give a better description of what you want to do? :) – myusuf3 Aug 10 '10 at 17:59
-
@garbagecollector I am still looking a method to do this. http://ubuntu.stackexchange.com/questions/1175/execute-script-before-shutting-down Probably looking the code Shutdown button does, I could insert my app before. – juanefren Aug 10 '10 at 18:08
-
ahh. did you try superuser.com? – myusuf3 Aug 10 '10 at 18:12
1 Answers
3
As far as I see it the relevant code is in panel-action-button.c
. This code handles the shutdown and other things. You find the complete code at git repository of gnome-panel.

qbi
- 19,125
-
I thought it was a shell script instead a binary written in C, Thanks for the link, it is interesting to take a look to gnome source code. – juanefren Aug 10 '10 at 23:02