Re: Quitting an application

2008-03-31 Thread Andreas Stricker
Sujith wrote: 1 * Init various GUI elements including the track treeview. 2 * Read the DB and append elements to the treeview. 3 * call gtk_main() and wait for events. What about: 1. Init various GUI elements including the track treeview. 2. Install a g_idle callback. 3. call gtk_main() and

I'd like (working) printing sample code

2008-03-31 Thread Garth's KidStuff
Hi, Thanks in advance. The sample code at: http://www.gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/sec-printing-example.html doesn't work for me. I get the on_begin_print callback as expected, but never receive the on_draw_page callback. Instead I get an endless series of error/warning

gtk_grab_add problem

2008-03-31 Thread dexter
Hey there, I have a little problem with gtk_grab_add(). I've created a very simple app, which contains a window. The window has a hbox which has 1 button and 1 progressbar. If I do a: gtk_grab_add(progressbar), I cannot click on the button as I expect, but I _can_ press Enter on it. The

GtkGlext pedantic warning

2008-03-31 Thread Carlos Pereira
When compiling with -pedantic, gtkglext produces this warning (all the other libraries come clean): /usr/include/gtkglext-1.0/gdk/gdkgltokens.h:146: warning: ISO C restricts enumerator values to range of ‘int’ /usr/include/gtkglext-1.0/gdk/gdkgltokens.h:158: warning: ISO C restricts enumerator

GtkTextView issue

2008-03-31 Thread Carlos Pereira
Hi, This is to report an issue with gtk_text_buffer_create_tag, affecting Gtk 2.10.0 (Fedora 8, amd64): gtk_text_buffer_create_tag (buffer, my_tag, scale, 1, NULL); When the scaling factor is 1.0 (or 2.0 or PANGO_SCALE_MEDIUM or PANGO_SCALE_LARGE, etc.) everything works fine. However, when

Re: Rotating scaling a widget or set of widgets

2008-03-31 Thread Stefan Kost
hi, Jason Edgecombe schrieb: Hi There, I'm developing an application for a Nokia N800 Internet Tablet. I want to rotate and scale the whole screen or at least a set widgets so that the application can be used when holding the application in portrait or landscape orientations. How can

problems saving gdkpixbuf to png image

2008-03-31 Thread Luka Napotnik
Hello. I have a custom widget from GtkDrawingArea and done some cairo drawing. The custom widget is inside a ScrolledWindow because sometimes the whole custom widget is not visible Now I tried to save the contents of that widget to a PNG file. Here's the code: -- private =

Re: identify unused functions?

2008-03-31 Thread Brian J. Tarricone
G Hasse wrote: On Sun, Mar 30, 2008 at 10:25:05PM +0300, Stefan Kost wrote: Hi, Undefined and unused is not the same. There is NO way to clerify all unused functions in a program. You could call functions by their addresses and those addresses could be calculated in runtime. So you don't

Query regarding drawing gtk_draw_rectangle API

2008-03-31 Thread nisha jain
Hi All, I have to create a simple box filled with some color. I am using the gdk_draw_rectangle API but it takes gc graphics Context parameter. I am not able to find out proper values for gc. I saw the scribble.c program available but it is not compiling using gcc. Does some one has some

Re: gtkclipboard.c

2008-03-31 Thread Sven Neumann
Hi, On Mon, 2008-03-31 at 00:49 -0400, Yu Feng wrote: In order to make a blocked operation, the main thread(thread 0) spawns a new thread(saying, thread 1) to wait for the callback. There are no threads being spawned here. g_main_loop_new() doesn't spawn a thread. Of course I may have missed

Re: Query regarding drawing gtk_draw_rectangle API

2008-03-31 Thread Sven Neumann
Hi, this list is about development of GTK+, not about developing applications using GTK+. Please ask such questions on gtk-list. Sven ___ gtk-devel-list mailing list gtk-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-devel-list

Re: gtkclipboard.c

2008-03-31 Thread Yevgen Muntyan
Yu Feng wrote: Hi, everyone, I have a question about gtkclipboard.c, there might be a problem. Look at these functions - [snip] --- In order to make a blocked operation, the main thread(thread 0) spawns a new thread(saying,

redraw priorities

2008-03-31 Thread Benjamin Otte
Hey, I've recently investigated problems Swfdec has when running cpu-intensive Flash files and could need some suggestions on how to best fix it. There should be other apps that have had the same problem after all. During a run of Swfdec (either stand-alone or as part of a browser), there's the

Re: GTK+ 2.12.9 released

2008-03-31 Thread Guillaume Cottenceau
On Wed, Mar 12, 2008 at 3:20 PM, Matthias Clasen [EMAIL PROTECTED] wrote: GTK+ 2.12.9 is now available for download at: http://download.gnome.org/sources/gtk+/2.12/ I've noticed that on gtk.org, http://gtk.org/download-linux.html , the link for Stable release / Gnu Linux and Unix / Stable

glib cygwin build patch.

2008-03-31 Thread Lieven van der Heide
Glib currently doesn't build on cygwin. I attached a patch that fixes it. Greets, Lieven van der Heide. glib cygwin build fix.patch Description: Binary data ___ gtk-devel-list mailing list gtk-devel-list@gnome.org

Re: glib cygwin build patch.

2008-03-31 Thread Tor Lillqvist
Glib currently doesn't build on cygwin. I attached a patch that fixes it. Thanks, committed. --tml ___ gtk-devel-list mailing list gtk-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-devel-list

Re: gtkclipboard.c

2008-03-31 Thread Yu Feng
Thank you for the clearify! but I am still confused. On Mon, 2008-03-31 at 02:22 -0500, Yevgen Muntyan wrote: Yu Feng wrote: Note that there are no threads involved, main loops are not threads (like, not threads at all). Yes. They shouldn't be threads at least for on some platforms, but will

http://bugzilla.gnome.org/show_bug.cgi?id=348080

2008-03-31 Thread Stefan Kost
hi, libexo has a nice implementation for binding properties together, so that one syncs the other or they both sync each other. The implementation is used in xfce for some years. I was about to copy that into my app, but then I wonder if that would be accepted in glib. I could prepare a patch

GSoC proposal: gtk+ bindings for prolog

2008-03-31 Thread Ben Torfs
Hello, developers! As a fan of both the prolog programming language and the GTK+ toolkit (as a user), I was wondering why the GTK page makes no mention of any prolog bindings. For those of you that are unfamiliar: prolog is a declarative language (like haskell, but very different in the way it

Re: GTK+ 2.12.9 released

2008-03-31 Thread Allin Cottrell
On Mon, 31 Mar 2008, Guillaume Cottenceau wrote: On Wed, Mar 12, 2008 at 3:20 PM, Matthias Clasen [EMAIL PROTECTED] wrote: GTK+ 2.12.9 is now available for download at: http://download.gnome.org/sources/gtk+/2.12/ I've noticed that on gtk.org, http://gtk.org/download-linux.html , the