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 y

Re: Highlighting text with color

2008-03-31 Thread Jeffrey Barish
Jeffrey Barish wrote: > I need to highlight some text in a TreeView. I know how to change the > color, but I am wondering what color to use. I am thinking that I should > choose a color that is used elsewhere so that the highlighted text does > not > clash with the theme, even if the user were t

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 = GTK_

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. > >

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 s

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 v

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 docume

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 messages

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