Re: Cross-platform apps
I agree on all the advice you are given here ... My experience is that it is not piece of cake, but it can be done. Test often and plan compatibility since the very beginning. Then, i would recommend you take a look at other projects which are cross-platform and you borrow from there ... for example, i am involved with MiniSIP (www.minisip.org), which is builds on linux, win32 and wince. The approach is to isolate OS dependent calls in compatibility layers (in minisips case, libmutil and libmnetutil), so you have a stable API which compiles the appropriate code depending on the platform. Good luck! Cesc On 4/26/06, Jose Hevia [EMAIL PROTECTED] wrote: 2006/4/26, Tor Lillqvist [EMAIL PROTECTED]: Ross Clement writes: How much difficulty am I likely to have when I get around to porting it? a) None! b) No more than a little c) A considerable amount of work d) The project from hell e) Impossible f) Any of the above I agree with Tor here. It all depends on what else your app does, and whether you steer clear of known issues in GTK and GLib that are known to be problematic or differ in the different backends. It really is best to build and test on all platforms every now and then, and not start porting only after everything is written and the design set in stone. It's generally know that when designing something, you need to take into account everything important you could incorporate in early design decisions. This way a fault-deviation could be easily and fast corrected, and don't generate cascade faults that just will take so much effort (money,time,people) to correct, they won't be corrected. Look at how many people are stick on Microsoft products just because they decided to create its product without thinking in portability,because porting to UNIX was too expensive(Unix was very expensive). So you will have: a-b) If you use Posix compatible code and multiplattforms standars. c)If Windows doesn't include by default something you want to use. d)If something you can't control and you need from Microsoft just don't work. e)If your project-program competes with Microsoft ones. Jose Hevia ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
gtk+ and gtkmm for wince?
Hi, I was looking on the web for a port to wince (of both, gtk+ and gtkmm). Couldn't find anything relevant, hopefully i did not look at the rigth places and someone can show me the light. What i want to do is to be able to cross-compile from linux into wince, using the pocketpc-* tools (gcc and so on). Is it possible?? Thanks a lot in advance, Cesc ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Focus on Notebook tab
Hi there, Is it a problem of the page not getting selected or it just won't be refreshed on the screen? I had a problem with set_current_page() not refreshing the screen correctly: the page would be actually set correctly, but it just would not display correctly till you forced it to refresh (for example, minimize and maximize). The problem was with set_current_page being called from outside gtk_main loop. I solved it by passing a command to the dispatcher (i use glibs dispatcher) and then execute the set_current_page from within the main_loop ... it works flawless now. Hope it helps, Cesc On 9/9/05, sadhees kumar [EMAIL PROTECTED] wrote: Friends, I am using GtkNotebook widget, it has 7 pages.i want to navigate all the pages.In my project i am using GDK_Tab key for navigating to next page. This is done in the GtkNotebook widget's keypress callback function. The problem is i'm not getting the focus in the notebook tab(or page label).Foucus is on the child widget in that page. how can i bring the focus to the notebook tab(page label)? Thanks in advance... code is as follows, gboolean on_notebook1_key_press_event (GtkWidget *widget, GdkEventKey *event, gpointer user_data) { int a; if(event-keyval == GDK_Tab) { a = gtk_notebook_get_current_page((GtkNotebook *)notebook1); if (a 6) gtk_notebook_next_page((GtkNotebook *)notebook1); else if (a == 6) gtk_notebook_set_current_page((GtkNotebook *)notebook1,0); } if(event-keyval == GDK_Left) { a = gtk_notebook_get_current_page((GtkNotebook *)notebook1); if (a 0) gtk_notebook_prev_page((GtkNotebook *)notebook1); else if (a == 0) gtk_notebook_set_current_page((GtkNotebook *)notebook1,6); } return FALSE; } Regards, K.Sadheeskumar ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list