Re: how to dynamically unload interfaces with libglade

2005-10-14 Thread Roger Leigh
-xml = NULL; } [...] GObjectClass *parent_object_class = G_OBJECT_CLASS(parent_class); if (parent_object_class-finalize) parent_object_class-finalize(G_OBJECT(window)); } Regards, Roger -- Roger Leigh Printing on GNU/Linux? http://gimp-print.sourceforge.net

Re: Threads Glade

2005-10-10 Thread Roger Leigh
*fptr = (struct foo *) gptr // pointer-to-struct from // gpointer. Now to get the struct back, just dereference the pointer (*fptr). Remember that gpointer is just void *. Regards, Roger -- Roger Leigh Printing on GNU/Linux? http://gimp

Re: Memory question

2005-09-28 Thread Roger Leigh
of the text internally, which is contained within the GtkEntry object. Once you set the text, you can safely free your copy. If it didn't work this way, you would quickly run into all sorts of memory leaks. Regards, Roger -- Roger Leigh Printing on GNU/Linux? http://gimp

Re: msgfmt -c

2005-09-19 Thread Roger Leigh
years ago, and has not been kept up-to-date), such as e.g. gettext-0.14.5. See http://bugzilla.gnome.org/show_bug.cgi?id=308769 for an example. Regards, Roger - -- Roger Leigh Printing on GNU/Linux? http://gimp-print.sourceforge.net/ Debian GNU/Linuxhttp

Re: changing the model in a treeview

2005-07-19 Thread Roger Leigh
On Tue, Jul 19, 2005 at 12:39:57PM +0200, The Saltydog wrote: I need to switch (from user action) 2 different models on the same gtktreeview. Is it allowed? Yes. Just call gtk_tree_view_set_model(). -- Roger Leigh Printing on GNU/Linux? http://gimp

Re: how to assign full access rights to guest

2005-06-18 Thread Roger Leigh
a GObject-based wrapper around the Linux-PAM (Pluggable Authentication Modules) library, and is pretty flexible. Regards, Roger - -- Roger Leigh Printing on GNU/Linux? http://gimp-print.sourceforge.net/ Debian GNU/Linuxhttp://www.debian.org

Re: get parent

2005-05-30 Thread Roger Leigh
, Roger - -- Roger Leigh Printing on GNU/Linux? http://gimp-print.sourceforge.net/ Debian GNU/Linuxhttp://www.debian.org/ GPG Public Key: 0x25BFB848. Please sign and encrypt your mail. -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (GNU

Re: Arguments in GObject-based object constructor

2005-05-30 Thread Roger Leigh
g_object_new() with the properties to set. You don't need to do anything more, since it will handle setting the properties for you. Regards, Roger - -- Roger Leigh Printing on GNU/Linux? http://gimp-print.sourceforge.net/ Debian GNU/Linuxhttp

Re: GObject - create with arguments.

2005-04-17 Thread Roger Leigh
with g_object_class_install_property() with G_PARAM_CONSTRUCT. See the GObject tutorial for examples (http://www.le-hacker.org/papers/gobject/) Regards, Roger - -- Roger Leigh Printing on GNU/Linux? http://gimp-print.sourceforge.net/ Debian GNU/Linuxhttp://www.debian.org

Re: GTK Coding Conventions

2005-04-13 Thread Roger Leigh
+ and an example using of the GObject techniques in the GObject tutorial (you'll still need the GObject tutorial to refer to). Regards, Roger -- Roger Leigh Printing on GNU/Linux? http://gimp-print.sourceforge.net/ Debian GNU/Linuxhttp://www.debian.org

Re: keyboard shortcut on entry

2005-02-25 Thread Roger Leigh
signal emitted by GtkWidget? If the key (event-key.keyval) is GDK_Left or GDK_KP_Left, do your stuff and return TRUE, else return FALSE. Regards, Roger - -- Roger Leigh Printing on GNU/Linux? http://gimp-print.sourceforge.net/ Debian GNU/Linuxhttp

Re: Simple GtkRange Problem

2005-02-22 Thread Roger Leigh
-changed signal of either the GtkRange or the GtkAdjustment, this should tell you if it's adjusted twice. Does GtkRange use Pango units or something? It's just a gdouble in the adjustment; no units. Regards, Roger - -- Roger Leigh Printing on GNU/Linux? http://gimp

Re: Canvas basics

2005-02-08 Thread Roger Leigh
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jody Goldberg [EMAIL PROTECTED] writes: On Sat, Jan 08, 2005 at 11:26:45PM +, Roger Leigh wrote: - gnome_canvas_item_new allows one to set object properties on the created item. However, it does not pass them to g_object_new, so

Re: gtk-can-change-accels

2005-01-28 Thread Roger Leigh
an issue when using a non-GtkWindow root with glade_xml_new*. Regards, Roger - -- Roger Leigh Printing on GNU/Linux? http://gimp-print.sourceforge.net/ Debian GNU/Linuxhttp://www.debian.org/ GPG Public Key: 0x25BFB848. Please sign