Re: some erros

2009-01-15 Thread James Scott Jr
Frederico, From your code listing part of your problem could be this syntax error: gtk_file_chooser_add_filter(*chooser, *filtro); it should read; gtk_file_chooser_add_filter(chooser, filtro); James, On Thu, 2009-01-15 at 22:58 -0200, frederico schardong wrote: > Hi, > > anybody can help me

Re: some erros

2009-01-15 Thread Allin Cottrell
On Thu, 15 Jan 2009, frederico schardong wrote: > anybody can help me to resolve this? > > GtkFileFilter *filtro; > GtkWidget *chooser; > //GtkFileChooser *chooser; > > gtk_file_filter_set_name(filtro,"bmp"); > > chooser = gtk_file_chooser_dialog_new ("Open File", > parent_wi

some erros

2009-01-15 Thread frederico schardong
Hi, anybody can help me to resolve this? GtkFileFilter *filtro; GtkWidget *chooser; //GtkFileChooser *chooser; gtk_file_filter_set_name(filtro,"bmp"); chooser = gtk_file_chooser_dialog_new ("Open File", parent_window, GTK_FILE_CHOOSER_ACTION_OPEN,

Re: qt vs gtk

2009-01-15 Thread Michael Torrie
jvette...@users.sourceforge.net wrote: > I find that deriving classes in C++ is alot easier than going through > the GObject type system. Yes this is true, in C. GTKmm makes things rather nice if you work in C++. In fact I kind of like how GTKmm works without a preprocessor, with type-safe call

Re: Question about Callback

2009-01-15 Thread Rudolfo Pinewood
Hi, thanks again for your help. 1) I did change my function to a static one 2) I updated my g_signal_connect_swapped to use G_CALLBACK(staticfunc) + param parent (which I use to get the other buttons) 3) I noticed that the pointers were in wrong order (parent was the first one instead of second)

Re: qt vs gtk

2009-01-15 Thread jvetterli
Some of my thoughts on the matter: On Wed, Jan 14, 2009 at 10:10:42AM -0600, Thomas Stover wrote: > ... > -QT (last time I checked) is not even C++. It's C++ and a custom macro > language. building ouch. debugging ouch. C++ paradigm ouch. The Qt macros aren't very intrusive. Once you have your

Re: Question about Callback

2009-01-15 Thread Rudolfo Pinewood
Hi, thanks for your answer. I think I understand my code a bit better now... I wonder whether it is "best practice" to use static functions for these callbacks - in my code it is actually a member function (because of having many different buttons whose states form a bitfield that is "compresse

Re: Question about Callback

2009-01-15 Thread Rudolfo Pinewood
Hi, I think I should post some more lines of "my" code... as a sidenote: I did not do much c++ programming before, neither anything with GTK. Here is a link to what I have (actually): http://ufoai.svn.sourceforge.net/viewvc/ufoai/ufoai/trunk/src/tools/radiant/radiant/sidebar/surfaceinspector.cp

Re: gtk_file_chooser_hangs (win32 libgdk-win32-2.0-0.dll)

2009-01-15 Thread Tor Lillqvist
> Now i have the problem, that the gtk_file_chooser is not working anymore in > my application under win32. > I get just a sandglass-curser over it. Do you have some network drives connected to dead servers? Do you have some "strange" removable drives? Or can you think of anything else special on

gtk_file_chooser_hangs (win32 libgdk-win32-2.0-0.dll)

2009-01-15 Thread arne . pagel
Hello, i updated my mingw with the new All-in-one bundle on gtk download page. Now i have the problem, that the gtk_file_chooser is not working anymore in my application under win32. I get just a sandglass-curser over it. I get no warning or errormessage on the console. When I am taking older dll

the style of focus ring

2009-01-15 Thread zhenghe zhang
Hi all Now I am learning GTK+ , and I have two problems, I hope you help me, thank you! As followed: 1).when a button obtains the focus , there is a focus ring. Now I want to change the style of "focus ring", Through code how to achieve, but not "rc document". 2).if the button has a style , and I