Re: When are these g_io_channel_*() input conditions occurring ?
Hello, Thanks for specifying this G_IO_NVAL condition. If I remember correctly, there can be passed an Out-Of-Bound character(/message) on a pipe. It's some kind of priority message, generated for internal pipe management purposes. I *think* that G_IO_PRI condition will be the condition that's fulfilled when receiving such an OOB character (but this is only based on my own -wild- assumption, not on any documentation I found on the subject). Kind regards, PhB Daniel Yek wrote: At 11:07 PM 12/5/2006, Philippe Bertin wrote: Hello all, This is a new thread, based upon a very recent thread in this list, and a some things I asked myself in the (recent) past when I programmed a g_io_channel watcher callback. I used, for my GIOChannel, the condition G_IO_IN, in order to have my callback called whenever there was any input data available. Although I could imagine when one would possibly get any of both the G_IO_PRI (I guess the socket's O-O-B condition is triggering it ?) or G_IO_HUP conditions, still I had wondered when one would possibly get G_IO_NVAL ? Maybe that last one is only applicable in case of nonblocking operations ? Closing write-end of the pipe causes G_IO_HUP. Shutting down GIOChannel without removing g_io_add_watch() or closing the read-end of the pipe generate G_IO_NVAL. I'm not quite sure G_IO_PRI. I found out by writing a test application to (more) systematically test GIOChannel. I must've missed some documentation ? Kind regards, PhB ... That web site is really useful, but it didn't point out that you need to handle G_IO_HUP, G_IO_NVAL, (and maybe G_IO_PRI). Handling these helped my troubles, but I don't know if these have anything to do with your trouble. -- Daniel Yek ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
DnD in compoundwidget with notebooks in 2.10
Hi all, when we go with our application from gtk+-2.8 to gtk+-2.10, we have a little problem with dnd in a special case. We have some complex compound widget with gtk_notebook and hbox with entries in the notebook pages. Since we work with 2.10 these compound widget don't work as dnd_dest and dnd_source. May be the new dnd_notebook feature block our dnd handling. Can anybody show me a way so that our dnd works? MfG Bernd ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
How to find custom engines
I want to use a custom engine in my gtk app, the problem is that I find no way to tell GTK where my engine is located, the app is multiplatform (linux/w32) and it doesn't find the engine except if I put it in the default engine path (Common Files/GTK/lib/gtk-2.0/engines or usr/lib/gtk-2.0/engines). I've tried both: (in the app rc file) module_path my/engine/path (also with the absolute path it doesn't work) and: export GTK_PATH=my/absolute/engine/path In both cases gtk doesn't find my engine and starts with the default look! Bye, Gabry ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Possible Code to make Visual Studio compile easier
Didn't I tell you to use the mailing list, and not send me private mail? for one this magic thing your talking about is not 100% true. i do know about that one bit in the header of the exe that make windows consider a exe a console app or a gui app. but there is still a difference in what is passed to the main function. Umm, is there? Have you, like, verified this empirically? Take this very trivial program, m.c: #include windows.h int main (int argc, char **argv) { MessageBox (NULL, argv[1], argv[0], MB_OK); return 0; } Compile it, producing a console app m.exe: C:\srccl -MD m.c user32.lib Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.10.3077 for 80x86 Copyright (C) Microsoft Corporation 1984-2002. All rights reserved. m.c Microsoft (R) Incremental Linker Version 7.10.3077 Copyright (C) Microsoft Corporation. All rights reserved. /out:m.exe m.obj user32.lib Verify that it is a console (CUI) app: C:\srcdumpbin -headers m.exe |findstr subsystem 4.00 subsystem version 3 subsystem (Windows CUI) Run it from the command line, with some command-line parameter(s). The MessageBox shows the argv[0] as title and argv[1] as the message. Now turn it into a windowing (GUI) app: C:\srceditbin -subsystem:windows m.exe Microsoft (R) COFF/PE Editor Version 7.10.3077 Copyright (C) Microsoft Corporation. All rights reserved. Verify this: C:\srcdumpbin -headers m.exe |findstr subsystem 4.00 subsystem version 2 subsystem (Windows GUI) Again, run it with some command-line parameter(s). Notice any difference in behaviour? Does it still display the same argv[0] and argv[1] in the message box? You can also create a shortcut in Explorer to m.exe, and add command-line parameters there. They too get passed to main() in the same way regardless whether m.exe is marked as a console or windowing executable. yes that stupid trigger dictates what is getting sent to entry function When you say entry function, do you mean the C level entry function (main() or WinMain()), or the real entry function where the executable actually begins its execution? I hope you aren't confusing the two concepts. The real entry function of an exectuable written in C (or C++) on Windows is a routine statically linked in from the C library, which then calls the programmer-written main() or WinMain(). If you are setting the executable's entry function in the Visual Studio IDE (which eventually ends up being passed to the linker as /ENTRY) to main or WinMain, you lose badly. Then the C library will not be initialized properly. Don't touch that unless you know exactly what you are doing. but it does not dictate how local memory allocation for the entry fucntion is allocated when the program starts. since at the ASM level any pointer or anything that is 4byte big that needs to be passed is a dword you could just change that gui trigger to console and it would not cause a stack problem. but if you where to change a console app to a gui app via that trigger you could have stack problems. I do not understand what you talk about here. and no do you think anything that microsoft sends to anyone or any books that are not about Reverse engineering would cover something like that. to anyone? No, but perhaps their customers who buy their products get some kind of documentation. Not physical books, but on the CD? Lots of documentation is also online. also there is the problem with the gnu compiler where is does not handle dll entry points correctly so that is the main reson why i wont use it for this type of project im using. Please tell me more. I have used the GNU compiler successfully for a long time on Windows. I have built DLLs with DllMain() functions without problem with it. so i figured after looking around and seeing that people had some questions on how to do it and i figured a way out to just add a cpp file along with the sample projects along with others that make it compile correctly that it might be of interest but i guess not. oh and yes the code is 100% compatible with the visual studios compiler even when compiled as c++. --tml ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Adding custom buttons to a scrolled window
Dear developers, I need to implement a version of a GtkScrolledWindow that features a custom button as part of the scrollbar. Please find a mockup attached. What do you think is the most simple way to implement that (i.e. by using most of the logics that's already there in GtkScrolledWindow and the GtkScrollbars)? Regards, :M: -- Michael 'Mickey' Lauer | IT-Freelancer | http://www.vanille-media.de___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Adding custom buttons to a scrolled window
Michael 'Mickey' Lauer wrote: I need to implement a version of a GtkScrolledWindow that features a custom button as part of the scrollbar. Please find a mockup attached. What do you think is the most simple way to implement that (i.e. by using most of the logics that's already there in GtkScrolledWindow and the GtkScrollbars)? Looks like the attachment didn't make it. Please see http://linuxtogo.org/~mickeyl/misc/mscrolledwindow.png Thanks. Regards, :M: -- Michael 'Mickey' Lauer | IT-Freelancer | http://www.vanille-media.de ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Adding custom buttons to a scrolled window
On 12/6/06, Michael 'Mickey' Lauer [EMAIL PROTECTED] wrote: I need to implement a version of a GtkScrolledWindow that features a custom button as part of the scrollbar. Please find a Your graphic got lost (put it on a webpage and post a link), but the usual answer to these questions is to use a table to do the layout. Put two scrollbars plus a viewport in a table and add any other buttons you need. Make your work area the child of the viewport. Connect the scrollbar adjustments to the viewport. http://developer.gnome.org/doc/API/2.0/gtk/GtkViewport.html John ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Finding Version of GTK installed
On Tue, 5 Dec 2006 09:42:02 -0500 David Vandepol [EMAIL PROTECTED] wrote: It appears that GTK isn't installed. Just to be clear, GTK is installed with Red Hat OS correct? Check if there is a -dev package for gtk+ (gtk+-dev... or something). I believe redhat does install the basic gtk libraries, but not the headers and the pkg-config info necessary. John ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: GTK - Proper Way to Code Pipes
On Tue, 2006-12-05 at 22:27 +, Christopher Bland wrote: Based on suggestions from this mailing list I've implemented a pipe to pass data from my other processes to the main GTK thread. I noticed that when writing to the pipe there was a long delay before it was handled. I'm assuming this is because it was a pending event. Can someone please let me know if my code to fix this (for lack of a better word) is correct? The code solves my issue and the pipe is read immediately, I'm not sure if it is the proper way to do it. [code] ... main processing ... written = write(status_pipe[1], var, strlen(var)); gtk_main_iteration(); ... continue processing ... [/code] Is there a better way to do this? Thanks for any input. Um, yes I'd say. Maybe its just my personal opinion but I always prefer letting the main loop do its thing and not hack around it by adding: while (events_pending) iteration_do(); sprinkles here and there, I think its important to write your code in short callbacks and return to the main loop as much as possible. I felt the same way, which is the main reason I posted to the list. I'm fairly new to GTK especially when it comes to complex issues like this. Pipes are pipes, in glib or otherwise you need an understanding of how they work in order to give a precise forecast of what your program will do. Pipes block, for instance if you open a pipe for writing it will block until a reader has opened the other end, writing to the pipe will block until the reader reads the written bytes. I'm pretty sure this is exactly what I've been seeing. Within my app I have a 'clicked' event attached to a button which basically starts all of my processing. Within this callback I call my main C++ routine which creates my objects and starts doing work. My app is multi- threaded but I had such a headache trying with the threads_enter/leave and someone suggested using pipes and use g_io_add_watch to watch a pipe. It would be alot easier for you to pass data to the main thread from a child thread using g_idle_add(), just call g_idle_add() from a thread and the callback will be executed in the main thread - g_idle_add() is thread safe (you dont need the gdk lock to call g_idle_add()). If you then need to pass data you can use GAsyncQueue for that I think (I never used it) - you can equally store the data you want to pass on any data struct/list if you protect it properly with a mutex. Cheers, -Tristan ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re[2]: Adding custom buttons to a scrolled window
John Cupitt wrote: On 12/6/06, Michael 'Mickey' Lauer [EMAIL PROTECTED] wrote: I need to implement a version of a GtkScrolledWindow that features a custom button as part of the scrollbar. Please find a Your graphic got lost (put it on a webpage and post a link), but the usual answer to these questions is to use a table to do the layout. Understood - thanks. Put two scrollbars plus a viewport in a table and add any other buttons you need. Make your work area the child of the viewport. Connect the scrollbar adjustments to the viewport. Will that do everything that embedding a child widget in a GtkScrolledWindow can do? gtkscrolledwindow.c is twice as large as gtkviewport.c -- what does it more? Basically what I'd need is to get a GtkScrolledWindow but make it talk to my scrollbars, not to its. Regards, :M: -- Michael 'Mickey' Lauer | IT-Freelancer | http://www.vanille-media.de ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Re[2]: Adding custom buttons to a scrolled window
On 12/6/06, Michael 'Mickey' Lauer [EMAIL PROTECTED] wrote: Put two scrollbars plus a viewport in a table and add any other buttons you need. Make your work area the child of the viewport. Connect the scrollbar adjustments to the viewport. Will that do everything that embedding a child widget in a GtkScrolledWindow can do? gtkscrolledwindow.c is twice as large as gtkviewport.c -- what does it more? They do different things ... gtkscrolledwindow (usually) uses gtkviewport to do the scrolling. You'd be using gtktable to do the layout, not gtkscrolledwindow. The only thing you lose is the automatic show/hide of scrollbars when the window is big enough. Basically what I'd need is to get a GtkScrolledWindow but make it talk to my scrollbars, not to its. That's (almost) exactly what happens if you put two scrollbars and a viewport into a table. John ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Adding custom buttons to a scrolled window
Basically what I'd need is to get a GtkScrolledWindow but make it talk to my scrollbars, not to its. That's (almost) exactly what happens if you put two scrollbars and a viewport into a table. I see. Last question then... what if I have widgets that are scrollable on their own like e.g. a GtkTreeView. Those not only don't need a viewport, but also emit very strange scrolling effects if you do stick them into a viewport anyhow. Thank you! Regards, :M: -- Michael 'Mickey' Lauer | IT-Freelancer | http://www.vanille-media.de ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Adding custom buttons to a scrolled window
On 12/6/06, Michael 'Mickey' Lauer [EMAIL PROTECTED] wrote: Basically what I'd need is to get a GtkScrolledWindow but make it talk to my scrollbars, not to its. That's (almost) exactly what happens if you put two scrollbars and a viewport into a table. I see. Last question then... what if I have widgets that are scrollable on their own like e.g. a GtkTreeView. Those not only don't need a viewport, but also emit very strange scrolling effects if you do stick them into a viewport anyhow. :-( sorry, no idea, never tried putting a treeview into a viewport. I guess the scrolledwindow sources would give clues about the right way to fix it. John ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Possible Code to make Visual Studio compile easier
devilsclaw continues replying personally to me, despite me having twice asked him to use the list instead. I won't bother with hiding his identity (if hiding behind a nickname like devilsclaw can be said to be an identity) any longer then. And anyway, I won't bother following up to his mails any longer. Clearly he is in a different world than I am. Other list subscribers, feel free to follow up, if you can make sense what he is getting at. Or not. --tml devilsclaw writes: i decided to do some test and if you compile either a gui or cui app in visual studios in debug mode they have the exact same entry point even on the Assembly level if you compile it for release there entry points actually do allocate the local stack. here is a snippet from the dasm program i use for a release gui app ; int __stdcall WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPSTR lpCmdLine,int nShowCmd) [EMAIL PROTECTED] proc near //right here are local variables that are allocated to the stack hInstance= dword ptr 4 hPrevInstance= dword ptr 8 lpCmdLine= dword ptr 0Ch nShowCmd= dword ptr 10h push0 ; uType pushoffset Caption ; test pushoffset Caption ; test push0 ; hWnd callds:MessageBoxA xor eax, eax retn10h [EMAIL PROTECTED] endp and here is a cui app in the dasm program as release ; int __cdecl main(int argc,const char **argv,const char *envp) _main proc near ; CODE XREF: start+16Ep //here is the local stack argguments for a cui app argc= dword ptr 0Ch argv= dword ptr 10h envp= dword ptr 14h pushesi pushedi mov edi, [esp+argc] xor esi, esi testedi, edi jle short loc_401036 pushebx mov ebx, [esp+4+argv] pushebp mov ebp, ds:MessageBoxA jmp short loc_401020 ; --- align 10h loc_401020: ; CODE XREF: _main+18j _main +32j mov eax, [ebx+esi*4] push0 pushoffset aParameter ; Parameter pusheax push0 callebp inc esi cmp esi, edi jl short loc_401020 pop ebp pop ebx loc_401036: ; CODE XREF: _main+Aj pop edi xor eax, eax pop esi retn _main endp as you can tell the local stacks are different. by 4bytes so then after looking at the i tryed changing the subsystem trigger using lordpe. i re-dasm'd the program that was a cui and now a gui and the entry point looks the same as it did originally. both WinMain and main(int argc,char* argv[]) seem to be part of a microsoft class since as you see in the dasm'd code main(int argc,const char **argv,const char *envp) i only used main(int argc,char* argv[]) and it decided to also use the envp and for the fact you can also just do int main(); since i did do what you told me and changed the bit and tested the incomming input of argv and argc they did indeed still pass the same information even when it was a subsystem of gui. and since my dasm program showed that it still reconizes the entry point as main and no winmain that must me it uses a patter to check to see what it is and i guess no doubt that the operating system it self does it also that way and then chooses what to pass to the program. which means the there would be no stack problem. since windows is still going to pass the appropriate variables since it can tell what the entry point actually is. now for the dll entry point thing i was talking about.. a while back i tryed Dev-C++ and i compiled a dll that i used in varias things for testing for cheats in a game that does not have a builtin anti cheat software. i also have other dlls that i inject into programs to check to see what trainers are doing to the game so i can add those addresses to the protected range. when the dll is injected in the entry point i have code that needs to be executed when the dll is loaded and no matter what i tryed the code would never get executed. sure i could make the a export that calls on the code i want executed but that is a much bigger pain in the but and also is not always something i want done since once the dll is loaded the program loads other dlls that have proper entry points that could be dlls that are doing
Re: Cross compilation error
On Mon, 2006-12-04 at 11:37 +0530, Shyjumon N. wrote: Hi group, This is a very basic question, if any body can help me i will be glad. I am using gtk for my ARM board, i am using eldk development suit and crosstools. Can any body tell me how can i cross compile gtk applications for arm target. Do i need to configure the gtk package and dependancies for arm ? Yes. Please help me with some clues or links. You'll likely want to take this up with the mailing lists at handhelds.org. They specialize in building software for embedded devices. Michael Thanks for all supports. With regds, Shyjumon N Mobile: +91-9945006965 The information contained in this e-mail message and in any annexure is confidential to the recipient and may contain privileged information. If you are not the intended recipient, please notify the sender and delete the message along with any annexure. You should not disclose, copy or otherwise use the information contained in the message or any annexure. Any views expressed in this e-mail are those of the individual sender except where the sender specifically states them to be the views of SoCrates Software India Pvt Ltd., Bangalore. ___ 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
Re: Adding custom buttons to a scrolled window
Just want to say thanks to John! Your suggestions brought me into the right direction -- everything works fine now. Regards, :M: -- Michael 'Mickey' Lauer | IT-Freelancer | http://www.vanille-media.de ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Finding Version of GTK installed
On Tue, 2006-12-05 at 12:06 -0500, David Vandepol wrote: Thanks, you're right, I am looking for a run-time type of detection to see if the GUI for the installer will even show up. The installer that I'm creating is Java based, and I'm trying not to mix too many languages unneccessarily, is there any known way to fine the versions in Java? I've looked at API's but havn't been able to find anything other than Without using a native call into the GTK libraries, you cannot find out such information from Java. JAF itself doesn't use GTK either, but only uses the gtk engine shared libraries if available. And even then it can only use certain engines (like bluecurve or pixmap-based ones). GTKLookAndFeel.isSupportedLookAndFeel() but that doesn't give enough information to determine if the version is actually what my product supports or not. Worst case senario I have to execute some C code during the installation. If your app is in Swing, why are you worried about this in the first place? Java Swing doesn't really use GTK directly anyway, and certain it never worked with my default theme. If the user has a version of GTK or a theme that Java's JAF doesn't like it won't work anyway, so how would you deal with this situation? Michael David VandePol On Tue, Dec 05, 2006 at 09:42:02AM -0500, David Vandepol wrote: I'm still having problems. When I run java tool and view all of the LaF's GTK is displayed, however gtk isn't available in the pkg-config Does the LaF actually use Gtk+ or just emulates the look? And if it uses Gtk+, does it use the common library or some private copy? AFAIK Java 1.5 Gtk+ LaF is Synth-based. Just to be clear, GTK is installed with Red Hat OS correct? In a typical installation, yes. But it is not mandatory. I installed all the packages when installing the OS and I assumed that it would be installed. If you installed everything you should have Gtk+. And java picks it up. Or maybe not. Also there are other gtk packs in the pkgconfig folder, such as gkt-engines-2.pc . Do you or anyone know why the required info is not in pkgconfig? First of all, pkg-config is intended for *compile time* detection, and .pc files are in the develoment package, not in run-time, you can't detect Gtk+ run-time with pkg-config (of course if you installed everything, you should have the development package too, but maybe you did not install really everything). So if you want to detect the run-time, forget pkg-config and run something like this: #include dlfcn.h #include stdio.h int main(void) { void *gtk; int *maj, *min, *mic; int status = 1; gtk = dlopen(libgtk-x11-2.0.so, RTLD_LAZY); if (!gtk) return 1; maj = dlsym(gtk, gtk_major_version); min = dlsym(gtk, gtk_minor_version); mic = dlsym(gtk, gtk_micro_version); if (maj min mic) { printf(%d.%d.%d\n, *maj, *min, *mic); status = 0; } dlclose(gtk); return status; } (needs dlopen(), i.e. Linux, BSD, or something like that) or just do printf(%d.%d.%d\n, gtk_major_version(), gtk_minor_version(), gtk_micro_version()); but such a program has to be linked with the lowest acceptable version of Gtk+ to make sense, then it can be run on systems with higher Gtk+. Or depending on what you do, you can ask the package management system... Generally, the answer to the run-time environment question `if I run something using Foo, what version of Foo it will get dynamically linked with' is to actually do it and check the outcome. Yeti -- Whatever. ___ 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-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
GtkIconView
hi, why gtk_icon_view_set_row_spacing and gtk_icon_view_set_column_spacing are disable of my application. there is not any change before and after i use these two APIs. GtkIconView *icon_view = gtk_icon_view_new (); gtk_icon_view_set_columns (icon_view, 3); gtk_icon_view_set_margin (icon_view, 10); gtk_icon_view_set_row_spacing (icon_view, 30); //disable gtk_icon_view_set_column_spacing (icon_view, 30); //disable gtk_widget_show (icon_view); many thanks sun zhiyong 2006-12-07 [EMAIL PROTECTED] ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Source code for gtk-demo
Hello All, Can anyone guide me to source code for gtk-demo application. Actually I want to know what is the entry point for a GUI application (like int main() for ordinary applications). Thanks in advance Sai Korada ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
RE: Source code for gtk-demo
Whenever an application is created using int main(), it leaves a black console window open, that just looks as ugly as possible. When running gtk-demo, I could realize that it doesn't even start a black console window. Any hint on how this can be done. I've been trying all the methods, but unfortunately nothing seems to work as expected. Thanks Sai -Original Message- From: Jim George [mailto:[EMAIL PROTECTED] Sent: Thursday, December 07, 2006 11:47 AM To: Sai Korada Subject: Re: Source code for gtk-demo Actually I want to know what is the entry point for a GUI application (like int main() for ordinary applications). It's still int main(int argc, char *argv[]) just like everything else. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Source code for gtk-demo
On Wed, 6 Dec 2006 22:20:00 -0800, Sai Korada [EMAIL PROTECTED] wrote: Hi, Whenever an application is created using int main(), it leaves a black console window open, that just looks as ugly as possible. When running You should have mentioned that you are talking about GTK on windows. Nobody could know this. Try to add -mwindows to the linker flags. This had been discussed several times on the list. So a search on google probably had solved the question. Regards, Enrico -- Get my GPG key from http://www.uvena.de/pub.key ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list