Re: Reparenting a GtkSocket to another GtkContainer loses its GtkPlug

2007-09-06 Thread Nigel Tao
> You should be able to keep the socket alive by incrementing the > reference count before removing it, and decrementing it again after > adding it in the new container. I should have mentioned that I g_object_ref the socket before I remove it, but it is still getting unrealized -- _gtk_socket_end

Re: Conversion functions.

2007-09-06 Thread Matí­as Alejandro Torres
Jaja, so it wasn't crappy, it was **crap*.* :P ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: focus-out-event and GtkEntry

2007-09-06 Thread Zvi Sebrow
My focus out signal handler DID return FALSE; the problem is that it popped up a dialog box---which steals the focus--before the focus-out-event gets to return the FALSE, and while the dialog box is open and alive and waiting for the user to hit OK, I got the error but i found the solution:

Re: Conversion functions.

2007-09-06 Thread Magnus Myrefors
yeti>> I have tested your minimal testprogram with the whole test-file. Unfortunately the program doesn't print anything to stdout. It doesn't seem to be any data stored in the GSList or in the datastructure, Data *data. (I tried to print a field every time a new line was about to be read in the w

Using GtkFileChooserWidget

2007-09-06 Thread Nikolaj Thygesen
Hi list, I wonder if anyone here has ever used the GtkFileChooserWidget directly?? When I create the widget and add it to a window everything goes ok - but if I close the window (I did add an extra "g_object_ref(widget);" to the widget keeping it alive) and open a new window adding the sam

Re: focus-out-event and GtkEntry

2007-09-06 Thread Yeti
On Thu, Sep 06, 2007 at 02:49:12PM -0400, Zvi Sebrow wrote: > I need to check data a user inputs on one of numerous GtkEntry's on window, > and I need to handle the situation when the entry loses focus (by TABing out > of the field, or by mouse control. When I encouter bad input, I bring up a > di

Re: Conversion functions.

2007-09-06 Thread Yeti
On Thu, Sep 06, 2007 at 11:00:11AM -0300, Matí­as Alejandro Torres wrote: > Here's the minimal program to read that. The reading part is kind of > crappy but it works with that example. The trouble with the reading part is not that it's kind of crappy (well, it is IMO, reading by character makes

Re: Reparenting a GtkSocket to another GtkContainer loses its GtkPlug

2007-09-06 Thread Chris Vine
On Thu, 2007-09-06 at 23:57 +1000, Nigel Tao wrote: > I have two GTK programs (i.e. two separate processes), S and P, and I > want a GtkSocket running in S to hold a GtkPlug running in P. I've > followed the docs, and that's straightforward to get working. > > Now, in S, the GtkSocket actually li

Copying a gtk_list_store

2007-09-06 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Is there a good way to create a full copy of a gtk_list_store that will not be altered if you make changes to the original list store? Thanks, Kevin - -- Get my public GnuPG key from http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x7D0BD5D1 -B

focus-out-event and GtkEntry

2007-09-06 Thread Zvi Sebrow
I need to check data a user inputs on one of numerous GtkEntry's on window, and I need to handle the situation when the entry loses focus (by TABing out of the field, or by mouse control. When I encouter bad input, I bring up a dialog box. The problem is I get an GtkWarning and GtkError: the Gtk

How get actuell Fonts of widget

2007-09-06 Thread [EMAIL PROTECTED]
Hello how can I get the font of an widget what is teh pango or gtk or ??? API to get it. to use is as paramenter in pango_get_font_metrics call. Who can help me please mfg günther -- R=I+S Rapp Informatik Systeme GmbH Rosenbühlstr. 24 D-89182 Bernstadt Tel: +49 (0)73

Re: retrieve user input in child widget embedding Ogre

2007-09-06 Thread Vincent Delannoy
OK, I eventually got my Ogre + Gtk app to work. For those interested, have a look at the GtkOgre app on the Ogre wiki, and replace gtk_ogre_realize() with this version (which creates a GdkWindow first, then passes it as external window handle to Ogre when creating the RenderWindow) : static vo

Re: Conversion functions.

2007-09-06 Thread Matí­as Alejandro Torres
Magnus Myrefors escribió: > Hi, > Ok, here's a small part of it. The whole file is about > 2400 rows. I can read over approximately 95 % of it ok > but the rest is somewhat corrupted. I think it is > the function g_ascii_isdigit() that fails sometimes which > leaves a uncompleted conversion. I a

Reparenting a GtkSocket to another GtkContainer loses its GtkPlug

2007-09-06 Thread Nigel Tao
I have two GTK programs (i.e. two separate processes), S and P, and I want a GtkSocket running in S to hold a GtkPlug running in P. I've followed the docs, and that's straightforward to get working. Now, in S, the GtkSocket actually lives in one GtkVBox, and after the GtkSocket and GtkPlug have f

textview can set background picture ?

2007-09-06 Thread lerosua
hi, i want to set the textview background with a picture. can Gtkmm work it ? anyone has ever do with this ? if yes, can show me some example code. thanks to all. ...lerosua ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org htt