Re: gtk_widget_show() not showing window

2007-09-03 Thread G. Paul Ziemba
[By the way, the bug report in question is http://bugzilla.gnome.org/show_bug.cgi?id=467776 ] I wrote: >>> gtk_widget_show_all(window); >>> gtk_widget_hide(window); >>> gtk_widget_show(window); >>> >>> gtk_main(); > > This test program is a minimal set of code that demonstrates > t

Re: Conversion functions.

2007-09-03 Thread Magnus Myrefors
when I start the test I am in the same state and I use the same text-file evey time. The converted values can be different or the same between different test-runs so the wrong values seem to occur randomly. Magnus On Tue, 4 Sep 2007 00:26:28 +0200 David Nečas (Yeti) <[EMAIL PROTECTED]> wrote: >

GtkWidget inside a GtkMenuItem

2007-09-03 Thread Matí­as Alejandro Torres
Hi, I want to pack a GtkHScale inside a GtkMenuItem, I knew from the beggining that this was not going to work but... what a %"·$$! I did this with the gtk_container_add function BUT the GtkHScale widget does not appears to be receiving signals, like if it's in insensitive state. Is there so

Re: Conversion functions.

2007-09-03 Thread Yeti
On Mon, Sep 03, 2007 at 08:46:51PM +0200, Magnus Myrefors wrote: > I am currently trying to use the glib-functions g_ascii_strtod(x,y) > and g_ascii_strtoll(x,y) to convert values from a text-file. > It works fine most of the time but occasionally the converted values > are absolutely wrong

Conversion functions.

2007-09-03 Thread Magnus Myrefors
Hi, I am currently trying to use the glib-functions g_ascii_strtod(x,y) and g_ascii_strtoll(x,y) to convert values from a text-file. It works fine most of the time but occasionally the converted values are absolutely wrong or just a bit wrong. I am using the glib libraries (libglib2.0-dev

Re: libglade problems under win32 - SOLVED

2007-09-03 Thread carlo
carlo ha scritto lo scorso 31/08/2007 12:19: [...] > > 1. a lot of: libglade-WARNING **: unknown widget class ... ...solved by a clean development environment (downloaded from gladewin32.sf.net) > 2. a lot of: libglade-WARNING **: could not find signal handler ... ... solved thanks to suggestio

Re: Getting a GdkPixbufs from a GtkTextBuffer

2007-09-03 Thread Matí­as Alejandro Torres
Jonathan Winterflood escribió: > Hi, > > Can't you just keep a reference to the pixbuf ? > > Jonathan > The problem with that approch is that I have to keep track for every pixbuf in the TextBuffer if its deleted or moved. It's doable but I rather not :P Matías __

Re: Getting a GdkPixbufs from a GtkTextBuffer

2007-09-03 Thread Jonathan Winterflood
Hi, Can't you just keep a reference to the pixbuf ? Jonathan On 9/3/07, Matí­as Alejandro Torres <[EMAIL PROTECTED]> wrote: > > Hi, > > If I insert a GdkPixbuf inside a GtkTextBuffer with the function > gtk_text_buffer_insert_pixbuf, how do I recover the inserted GdkPixbuf > from the GtkTextBuff

Re: Display grayscale image

2007-09-03 Thread Marco Brambilla
Thank you very much for your advises, guys! I'm going to try immediately. Bramb -- Marco Brambilla Politecnico di Milano - Dipartimento di Fisica Piazza L. Da Vinci, 32 - 20133, Milano - Italy Tel: 02 2399 6058 Fax: 02 2399 6126 e-mail: [EMAIL PROTECTED]

Re: Send mouse button press event to widget??

2007-09-03 Thread eminemence
David Nečas (Yeti)-2 wrote: > > On Thu, Aug 30, 2007 at 05:24:21AM -0700, eminemence wrote: >> >> I am creating a virtual cursor on a web page and want to simulate the >> left >> click of the mouse button >> when the user presses the enter button. >> So I tried even using the gdk_event_put on