Thread: Ggmud 0.8.1
View Single Post
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#11
Originally Posted by tobiasj View Post
I wish I could click the thanks button more than once...

That worked so well I just can not believe it.

There are a few things I would like to add now, for example allowing it to pop out of fullscreen now that the menu is gone would be great. I think I can figure that out.

What I want to know is where did that patch/diff come from? did you write (patch?) it?

how would I go about doing the same for a different application?


-John
Yeah, that's my patch & code

Alas, different programs vary. But, in general, you want to link to hildon-1 (that's my Makefile change), add that hildon include to whatever file you're adding hildon functions to, replace the gtk_window_new toplevel with the hildon_window_new. For the menu, I changed it from a menubar to a normal menu as hildon doesn't like menubars, removed the gtk_box_start as that's how the menubar is shown and replaced it with the hildon menu new. First argument to that function is the hildon window, the second argument is the menu (look at the second argument passed to the gtk_box start for the menu)

if you want to #ifdef hildon code, use #ifdef MAEMO_CHANGES as when you compile against hildon-1, -DMAEMO_CHANGES will be sent to gcc.
 

The Following User Says Thank You to qwerty12 For This Useful Post: