The Following User Says Thank You to qwerty12 For This Useful Post: | ||
|
2009-04-01
, 19:47
|
|
Posts: 241 |
Thanked: 74 times |
Joined on Jul 2007
|
#12
|
The Following User Says Thank You to tobiasj For This Useful Post: | ||
|
2009-04-01
, 20:56
|
|
Posts: 241 |
Thanked: 74 times |
Joined on Jul 2007
|
#13
|
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.
|
2009-04-01
, 21:29
|
|
Posts: 4,274 |
Thanked: 5,358 times |
Joined on Sep 2007
@ Looking at y'all and sighing
|
#14
|
That makes it sound a lot less complicated then I am betting it is.
One other app I am working on is gFTP and I will adapt what you have shown me here to that app and see if I can do it myself. I REALLY appreciate your patch/diff and I wanna learn how to do it myself eventually. Thing is your patch gives me a good map to work from for hildonizing in other apps.
Did you have some way of generating that diff file after making changes to the files or did you create it manually?
I have found a few pdf's and a few websites (including maemo.org's porting apps walkthrough) that touch on hildonizing, but there isnt that one site that really walks you through a gtk application hildon conversion. (though maemo's is real good)
Thanks again,
-John
The Following User Says Thank You to qwerty12 For This Useful Post: | ||
|
2009-04-01
, 21:45
|
|
Posts: 241 |
Thanked: 74 times |
Joined on Jul 2007
|
#15
|
gFTP has already been hildonized by me and yerga (OK, yerga much more than me - I worked on the menu & the packaging) and has been in Extras for a while now.
That diff was generated by having a copy of the original folder, and my modified folder and running "diff -ur "original folder" "modified folder" > my.diff". -a and -p can also be nice options too, depending on the situation.
Best Regards,
Faheem
|
2011-07-27
, 08:15
|
Posts: 1 |
Thanked: 0 times |
Joined on May 2011
|
#16
|
|
2011-07-28
, 02:03
|
|
Posts: 3,811 |
Thanked: 1,151 times |
Joined on Oct 2007
@ East Lansing, MI
|
#17
|
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.