Re: windows resource files

2006-02-09 Thread Georg Fritzsche
Gorshkov wrote: I now have a working programme . except that a DOS box opens up directly behind it. with mingw32 the switch -mwindows should do it, afair -- Georg Fritzsche [EMAIL PROTECTED] ___ gtk-app-devel-list mailing list

Re: windows resource files

2006-02-09 Thread Tor Lillqvist
Gorshkov writes: I assume that in order to get rid of that, I have to turn my ordinary DOS programme into a windows programme - First a clarification: There is absolutely nothing DOS-related in your programme even if it requires a console window to run. It is still a 100% Win32 executable.

SIGSEGV in XRenderFindDisplay ( ) by gtk_clist_clear ( )

2006-02-09 Thread zun03127
Hi ALL, I have just got a problem with GTK+-2.0 on RHEL AS4. I don't have any idea where a root cause is and how I should deal with. Please give me some suggestions or solutions to solve this problem. The problem was assumed to be generated when clist was cleared. The gdb backtrace information

Re: question about combo box

2006-02-09 Thread Gus Koppel
yeajchao wrote: I have a question about GtkcomboBox You know,every combobox have a GList which stores some optional item. My problem is about the GList. When I click the triangle to pull down the list, and move my mouse to select item, the highlight item

Re: question about combo box

2006-02-09 Thread Georg Fritzsche
Gus Koppel wrote: yeajchao wrote: I have a question about GtkcomboBox You know,every combobox have a GList which stores some optional item. My problem is about the GList. When I click the triangle to pull down the list, and move my mouse to select item, the

Re: question about combo box

2006-02-09 Thread Gus Koppel
Georg Fritzsche wrote: I have a question about GtkcomboBox You know,every combobox have a GList which stores some optional item. My problem is about the GList. When I click the triangle to pull down the list, and move my mouse to select item, the

Resize Event

2006-02-09 Thread Philippe CHAUVAT
Hello the list, I wrote a program (Win32, VC++, Gtk2.8.10rc1, GLADE) which is describe like the following tree: - Window - Vbox - ScrolledWindow - Viewport - DrawingArea with GL support (gtk_widget_set_gl_capability func) = named D.A. - button - and other things I

Re: Resize Event

2006-02-09 Thread David Necas (Yeti)
On Thu, Feb 09, 2006 at 02:51:02PM +0100, Philippe CHAUVAT wrote: I wrote a program (Win32, VC++, Gtk2.8.10rc1, GLADE) which is describe like the following tree: - Window - Vbox - ScrolledWindow - Viewport - DrawingArea with GL support (gtk_widget_set_gl_capability

Re: Resize Event

2006-02-09 Thread Philippe CHAUVAT
Hello Yeti, IIUC you are looking for size-allocate; size-request is emitted when widget is asked for preferred size, but size-allocate when it's told the actual allocation. When I follow those steps: - maximize the window: size_request and size_allocate are both called - then reduce the

Re: Resize Event

2006-02-09 Thread Axel Simon
On Thu, 2006-02-09 at 15:14 +0100, Philippe CHAUVAT wrote: Hello Yeti, IIUC you are looking for size-allocate; size-request is emitted when widget is asked for preferred size, but size-allocate when it's told the actual allocation. When I follow those steps: - maximize the window:

Re: Resize Event

2006-02-09 Thread Philippe CHAUVAT
Thanks to David information I've found the way to do: - the right widget *is not* the drawing area but the viewport. The drawing area is not resized (down) but the viewport is. Using the size_allocate event and the GdkRectangle information, everything could be managed. Thanks to all Philippe

How to perform 2D drawing on top of 3D OpenGL scene

2006-02-09 Thread Douglas Vechinski
I'm writing a program using Gtk and GtkGLExt. I have a drawing area which is using OpenGL to display a scene. I receive mouse motion events to rotate, translate, zoom, on this scene. In the display window, I would also like to draw some primitives on top of the scene rendered by OpenGL. For

Re: Resize Event

2006-02-09 Thread Tor Lillqvist
Philippe CHAUVAT writes: When I follow those steps: - maximize the window: size_request and size_allocate are both called - then reduce the window: none of them is called. (You have verified that it works as you expect against X11 (Linux or some other Unix), I assume?) Might well be a bug

Widget to pick timezone

2006-02-09 Thread [EMAIL PROTECTED]
Hi I'm looking for a widget that allows the user to pick a capital city from a world map of countries, so that he can set he timezone he is in; the app i need it for is written in pure C language (no C++ noe GLADE). Browsing the Gnome CVS repo, i found the e-timezone-dialog widget [1]: is this

Embedding in icon into an executable

2006-02-09 Thread Gorshkov
Hopefully, this is the last silly question I have to ask before I can get down to some serious programming .. OK. I've linked my programme (Thanks Tor). I've gotten rid of the ($#(*$#@ DOS window (Thanks Tor Georg). Now . how do I add an icon for the programme, so that this icon shows

Re: How to perform 2D drawing on top of 3D OpenGL scene

2006-02-09 Thread Daniel Pekelharing
Hi, Are you sure it would be that hard to do in OpenGL? In my GtkGlExt based animation app (kudu.sourceforge.net) I have to draw a selection rectangle based on a mouse drag, which is essentially a 2D drawing over a 3D scene (including rotations and zooming), I simply switched to a orthographic