Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
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.… Probably looking the code Shutdown button does, I could insert my app before. – juanefren Aug 10 '10 at 18:08
ahh. did you try – myusuf3 Aug 10 '10 at 18:12
@garbagecollector I just tried there, thanks. – juanefren Aug 10 '10 at 18:59
up vote 3 down vote accepted

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.

share|improve this answer
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

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.