Re: Change distance between buttonborder and the containing widget

2005-01-24 Thread Roger Leigh
ives from GtkContainer, you can use gtk_container_set_border_width(GTK_CONTAINER(button), width); Regards, Roger -- Roger Leigh Printing on GNU/Linux? http://gimp-print.sourceforge.net/ GPG Public Key: 0x25BFB848. Please sign and encrypt

Re: Change distance between buttonborder and the containing widget

2005-01-24 Thread Roger Leigh
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Felix Bueltmann <[EMAIL PROTECTED]> writes: > On Mon, 2005-01-24 at 16:47 +0000, Roger Leigh wrote: >> On Mon, Jan 24, 2005 at 04:49:04PM +0100, Felix Bueltmann wrote: >> >> > Is there a way to change the distance be

Re: gtk-can-change-accels

2005-01-28 Thread Roger Leigh
to look into libglade itself yet.) This is probably only 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/

Re: about gtk canvas

2005-02-05 Thread Roger Leigh
the gladewin32 GTK+ packages. It seemed to work OK, though my canvas objects didn't seem to receive every GdkEvent (particularly GdkEventCrossing) they should have, making it a little more difficult to use than under X11. The basic functionality seemed to work just fine, howev

Re: GUI programming vs encapsulation

2005-02-05 Thread Roger Leigh
n to update handlers in disparate objects. The other objects in cse/cse-*.[ch] and uterm/uterm-*.[ch] are other objects (including widgets) derived from other GObjects. There's some documentation in doc/api/. I don't claim to be an expert though!--this is the first project I've

Re: about gtk canvas

2005-02-05 Thread Roger Leigh
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Todd Fisher <[EMAIL PROTECTED]> writes: > Roger Leigh wrote: [libgnomecanvas] >> I built it against GTK+ 2.4 on Windows a few weeks ago using >>MSYS/MinGW and the gladewin32 GTK+ packages. It seemed to work OK, >>thou

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 +0000, Roger Leigh wrote: >> - gnome_canvas_item_new allows one to set object properties on the >> created item. However, it does not pass the

Re: support install into lib64 directory?

2005-02-18 Thread Roger Leigh
two. Some distributions (e.g. Debian) are never going to support biarch. http://www.linuxbase.org/~taggart/multiarch.html http://raw.no/debian/amd64-multiarch-3 Regards, Roger - -- Roger Leigh Printing on GNU/Linux? http://gimp-print.sourceforge.net/ Debian G

GnomeCanvas and keyboard focus

2005-02-19 Thread Roger Leigh
: http://www.whinlatter.ukfsn.org/gtk/uterm-0.1.0.tar.bz2) Many thanks, 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 encry

Re: GnomeCanvas and keyboard focus

2005-02-20 Thread Roger Leigh
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Roger Leigh <[EMAIL PROTECTED]> writes: > This might sound a little vague, but I'm having problems with my > canvas widget grabbing keyboard focus. The canvas is packed into a > derived GtkTable which is packed into a GtkNote

Re: Simple GtkRange Problem

2005-02-22 Thread Roger Leigh
roblem? If you connect a handler that prints a message to the "value-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.

Re: keyboard shortcut on entry

2005-02-25 Thread Roger Leigh
ow I can create a new one with > g_signal_new but I am looking for a simpler way. Have you tried the "key-press-event" 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. Rega

Re: Developer mode ?

2005-02-26 Thread Roger Leigh
_warnings set in the environment. It'll abort when this point is reached, and you can then get a backtrace etc.. 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
t;. It's supposed to be both an introduction to GTK+ 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/

Re: GObject - create with arguments.

2005-04-17 Thread Roger Leigh
e set for the object. These are object properties installed 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-pr

Re: get parent

2005-05-30 Thread Roger Leigh
get_get_parent() in GTK+ 2.x. 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 and encrypt your mail. -BEGIN PGP SIGNATUR

Re: Arguments in GObject-based object constructor

2005-05-30 Thread Roger Leigh
n bar_set_property() ? That way sounds a little > too complicated so I think I'm missing something. If "x" and "y" are properties of the parent Bar class, simply call g_object_new() with the properties to set. You don't need to do anything more, since it will handl

Re: libglade. Adding newly create widgets to GladeXML object

2005-06-15 Thread Roger Leigh
elieve it would must to > mess with the private hash_tables of GladeXML object, or something > like that ). This does beg the question, "why?". It might be possible, but I seriously doubt that it's sensible. Regards, Roger - -- Roger Leigh Printing on GNU/

Re: how to assign full access rights to guest

2005-06-18 Thread Roger Leigh
asily adapt this to your needs. This is basically 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/ Debia

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?

Re: msgfmt -c

2005-09-19 Thread Roger Leigh
(it should be removed and replaced with a wrapper around autopoint). Now that gettext provides "autopoint", there is no need for glib-gettextize. glib-gettextize doesn't exploit the features of current gettext releases (it was forked from gettextize several years ago, and has not been

Re: msgfmt -c

2005-09-20 Thread Roger Leigh
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andreas Stricker <[EMAIL PROTECTED]> writes: > Roger Leigh wrote: >> Now that gettext provides "autopoint", there is no need for >> glib-gettextize. glib-gettextize doesn't exploit the features of >> cu

Re: Memory question

2005-09-28 Thread Roger Leigh
ry chunk, > changing the text in the GtkEntry. Am I right? No. gtk_entry_set_text() will keep its own copy 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

Re: Threads & Glade

2005-10-10 Thread Roger Leigh
ct struct foo *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

Re: how to "dynamically unload" interfaces with libglade

2005-10-14 Thread Roger Leigh
->xml) { g_object_unref(G_OBJECT(window->xml)); window->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

Re: Problem with glade

2005-10-14 Thread Roger Leigh
r for libglade to dlopen and introspect your running program. 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 and encrypt