Re: gtk apps on iOS/Android?

2012-09-10 Thread Patrick Shirkey
On Mon, September 10, 2012 3:40 pm, Tristan Van Berkom wrote: > On Mon, Sep 10, 2012 at 3:15 AM, Michael Torrie wrote: >> On 09/07/2012 07:40 AM, Allin Cottrell wrote: >>> I'm contemplating trying to produce a version of my gtk app >>> for tablet use. Can anyone point me to relevant resources or

Re: gtk apps on iOS/Android?

2012-09-10 Thread Michael Torrie
On 09/09/2012 11:40 PM, Tristan Van Berkom wrote: > interesting, wouldnt the quartz backend for osx build for iOS ? > > not exactly sure but I think the NSView and highlevel cocoa stuff > is built upon the same low level windowing apis that are available > on osx... I'm sure it could be ported of

Re: gtk apps on iOS/Android?

2012-09-10 Thread Michael Cronenworth
Michael Torrie wrote: > GTK+ could be ported to Android of course, but again, but that would > require considerable effort. Laying aside Java for a moment, Android > apps are built and run very differently than desktop apps. The > application life cycle is quite different. Not to mention Android

Re: gtk apps on iOS/Android?

2012-09-10 Thread Ardhan Madras
On Mon, Sep 10, 2012 at 8:42 PM, Michael Cronenworth wrote: > Michael Torrie wrote: > > Not to mention Android does NOT use X11. You will also have to port > Glib, Pango, etc. to Android. > Actually, there is a Java based X11 Server running on Android and was available in Play Store (Android Mark

Re: gtk apps on iOS/Android?

2012-09-10 Thread Michael Cronenworth
Ardhan Madras on 09/10/2012 11:08 AM wrote: > Actually, there is a Java based X11 Server running on Android and was > available in Play Store (Android Market). Yes, I am fully aware of this app. However, it is not a usable solution. It was written from the ground up so who knows what part of the X

Re: gtk apps on iOS/Android?

2012-09-10 Thread Michael Cronenworth
Tomaz Canabrava on 09/10/2012 11:27 AM wrote: > Well, actually there's an working Qt version for Android, called Necessitas. > so, there's no need to 'waste your time porting', it's already ported. Wow! Everyone is an expert! @kde.org! Sweet! /sarcasm Anyone else want to tell me something I alre

gtk_tree_view/store, best way to select all nodes of a branch

2012-09-10 Thread Arne Pagel
Dear all, I am currently searing for the best method to perform an action on one nodes of a branch in a treestore. At the moment the user just selectes one row of my treeview, so I have to determine if this node is part of a branch and then selecting all other nodes of the branch. I found som

glib array help

2012-09-10 Thread Rudra Banerjee
Dear friends, I am trying to learn using glib array. From the gtk documentation, I managed to write this piece of code: #include #include int main(int argc, char** argv) { int i; FILE *finp; char *alst[100]; GArray* a = g_array_new(FALSE, FALSE, sizeof(char*)); finp=fopen("fauth","r"); for (i==

Re: glib array help

2012-09-10 Thread Ardhan Madras
statement with no effect [-Wunused-value]: > for (i==0;i<=100;i++){ format ‘%s’ expects argument of type ‘char *’, but argument 3 has type ‘char **’ [-Wformat]: > fscanf(finp, "%s", &alst[i]); And in this case, you need to allocate char *arls[100] before using it. As I already told you, this is a