Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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. ubuntu.stackexchange.com/questions/1175/… 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
    
@garbagecollector I just tried there, thanks. –  juanefren Aug 10 '10 at 18:59

1 Answer 1

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

 
discard

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.