How I can do Double Buffer without OpenGL Ext?
Hi, I'm working in avoid the flicker when i paint my widget draw area. Then my questions are the following: How i can to do double buffer?, but without GL Ext, using just gtk draw area and pixbuf or pixmap. And If it is posible or only can I to work double buffer with GL Ext???. Any idea? Regards. Gustavo Rojas ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
RE: How I can do Double Buffer without OpenGL Ext?
Well in the good old days, when we did have all these fancy smancy libraries ( :P ) we use to double buffer graphics by drawing to an off screen bitmap or any compatible context (to that of the screen) and then simply copy that context to the screen. I.E. 1) Create a new GtkBitmap, 2) Draw everything to the bitmap 3) copy the bits to screen EMAILING FOR THE GREATER GOOD Join me Date: Thu, 11 Feb 2010 11:41:47 -0300 Subject: How I can do Double Buffer without OpenGL Ext? From: grojas@gmail.com To: gtk-app-devel-list@gnome.org Hi, I'm working in avoid the flicker when i paint my widget draw area. Then my questions are the following: How i can to do double buffer?, but without GL Ext, using just gtk draw area and pixbuf or pixmap. And If it is posible or only can I to work double buffer with GL Ext???. Any idea? Regards. Gustavo Rojas ___ 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: How I can do Double Buffer without OpenGL Ext?
El jue, 11-02-2010 a las 11:41 -0300, Gustavo Rojas escribió: Hi, I'm working in avoid the flicker when i paint my widget draw area. Then my questions are the following: How i can to do double buffer? Strictly speaking, all GTK+ widgets have double buffer support enabled by default (see the documentation for GtkWidget:double-buffered, gtk_widget_set_double_buffered() and [1], for an overview of the way double-buffer works in GTK+). Chances are that you are not painting in your expose event callback, or that you are calling this callback directly instead of invalidating the widget or region to redraw (see gdk_window_invalidate_region() and gtk_widget_queue_draw()). If you still have issues, feel free to post a small test case, showing your issue. Claudio [1] http://library.gnome.org/devel/gtk/unstable/chap-drawing-model.html#double-buffering ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: g_spawn_async_with_pipes on windows
2010/2/10 Tor Lillqvist t...@iki.fi: g_spawn_async_with_pipes() to launch an other executable (firefox in this case). Do you expect to provide input to Firefox's stdin, or get output from its stdout, through the pipes then? (That would be a bit strange for a GUI app like a web browser, wouldn't it?) true. firefox was just the most simple example that we tried to get working. We integrate a lot more utilities, and those often need pipes. We better get the simple one working first before we try further. If not, instead of g_spawn_*, just use one of the normal _spawn*() family of functions in the Microsoft C library (declared in process.h) with P_NOWAIT as the first parameter if you don't want to wait for it to finish. Much simpler, and less chance that some bug or misfeature in GLib is confusing you. is there any reason to believe that the glib functions are not working correctly? Olivier ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: g_spawn_async_with_pipes on windows
is there any reason to believe that the glib functions are not working correctly? Your guess is as good as mine? --tml ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Regarding GTK Entry keys
Hi Ashok, This might be because of the incorrect hardware keycode for the function keys on your embedded system. The key events that you mentioned (Backspace , Delete , etc) are activated through key bindings in Gtk which needs a valid hardware keycode. You can try modifying the keymap table for this. xmodmap utility can be helpful for the same. Cheers , Sanny On Wed, Feb 10, 2010 at 4:27 AM, AshokKumar G ashok.sysprogram...@gmail.com wrote: Hi, I am new to GTK+ programming. I have created a test application with GtkEntry on embedded system based on ARM and backend target is DirectFB-1.2.9. I am able to enter the text into GtkEntry field. But when I use BackSpace, Delete, Arrow Keys (left or right for navigation), no action is taken. In my test application I have registered call back key-press-event to verify whether event is coming or not, when I press backspace the event is coming and I am returning FALSE from that call back function. But no character is getting deleted on backspace/delete key press. But when I run my same test application on PC GTK+same version with backend target X11, then all the actions are performing as expected. Could some one help me on this? Thanks Regards, AshokKumar.G ___ 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