How to make changes to alarm-clock.ui
I've made a branch of the project, and I'm looking to add some menu items. Now, I see all of the settings in the alarm-clock.ui in the data directory, but when I make a change to this file, run make, then run the program, I don't see any of the settings under the app-indicator icon.
I also see in the src/ui folder is a alarm-clock.glade, but that doesn't seem to have the app-indicator menu in it. I've tried to edit the /usr/share/
Can you point me in the right direction? I'm trying to edit the file manually, but I don't see any reason why I shouldn't be able to do that from the looks of it. I appreciate any help you can provide.
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Alarm Clock Edit question
- Assignee:
- No assignee Edit question
- Last query:
- 2012-05-07
- Last reply:
- 2012-05-07
Johannes H. Jensen (joh) said : | #1 |
Hi Matt!
On Mon, May 7, 2012 at 1:25 PM, Matt Parlette
<email address hidden> wrote:
> I've made a branch of the project, and I'm looking to add some menu items. Now, I see all of the settings in the alarm-clock.ui in the data directory, but when I make a change to this file, run make, then run the program, I don't see any of the settings under the app-indicator icon.
>
> I also see in the src/ui folder is a alarm-clock.glade, but that doesn't seem to have the app-indicator menu in it. I've tried to edit the /usr/share/
>
> Can you point me in the right direction? I'm trying to edit the file manually, but I don't see any reason why I shouldn't be able to do that from the looks of it. I appreciate any help you can provide.
You are right, the app-indicator is not in alarm-clock.ui. The glade
file is old and no longer used (I guess I should remove it!)
If you want to change the app-indicator, you need to make changes to
src/ui.c in the function alarm_applet_
The *menu* which is opened when clicking the app-indicator is in
alarm-clock.ui though. The name of the GtkMenu widget is
"status_menu". You should be able to open it in glade and add your
menu items there.
Hope it helps :)
- Johannes
Can you help with this problem?
Provide an answer of your own, or ask Matt Parlette for more information if necessary.