Notices


Reply
Thread Tools
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:
tobiasj's Avatar
Posts: 241 | Thanked: 74 times | Joined on Jul 2007
#12
OK fullscreen toggle is in place and working properly. it is quite nice at this point.

I have repacked it and posted it to my website (4-01-2009 3:40pm EST) with the working hildon menu and full screen toggle.

let me know if anything else isn't working.


Thanks,

-John

Last edited by tobiasj; 2009-04-01 at 19:54. Reason: spelling
 

The Following User Says Thank You to tobiasj For This Useful Post:
tobiasj's Avatar
Posts: 241 | Thanked: 74 times | Joined on Jul 2007
#13
Originally Posted by qwerty12 View Post
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.
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
 
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#14
Originally Posted by tobiasj View Post
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
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
 

The Following User Says Thank You to qwerty12 For This Useful Post:
tobiasj's Avatar
Posts: 241 | Thanked: 74 times | Joined on Jul 2007
#15
Originally Posted by qwerty12 View Post
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
yeah, I saw that. there is a new ('NEW') version of gFTP, (.19) and I wanted to use it as a learning experience (I figured since it had been done already it COULD be done and that was half the battle...) Besides, I couldnt find anything else to work on.


Ah, so that is how it is done.. OK I will try that myself and see what happens... Thanks!

-John
 
Posts: 1 | Thanked: 0 times | Joined on May 2011
#16
Originally Posted by Addison View Post
This looks awesome!

Hey, any good places you could recommend?
Originally Posted by qwerty12 View Post
....
Sorry to bump an old Thread...

Does anyone (Addison, Qwerty12, or others)
know how to keep the buffer at the end of the output window?
similar to:
"/more off" (in Tinyfugue) or
"#buffer end" (afaik in tintin)

any help greatly appreciated.
modifying the review buffer size (in vi, or from gui) doesnt seem to stick, or to work...
perhaps I'm missing something?

Thanks
 
Addison's Avatar
Posts: 3,811 | Thanked: 1,151 times | Joined on Oct 2007 @ East Lansing, MI
#17
^ I'm not seeing an option for this either.

There doesn't seem to be any good documentation for Ggmud.

Why not just use Tinyfugue? I think it works perfect on my end.
 
Reply


 
Forum Jump


All times are GMT. The time now is 04:48.