randomly accessing "man pages" of gtk doc.

2005-07-11 Thread David Morse
Are there no man pages for gtk &c functions? I see the web-based doc, but I find myself hopping around from gtk to gdk to glib to pango to gnome, and never having the right index loaded. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org ht

width of string rendered by pango font?

2005-07-11 Thread David Morse
How does one figure out the width of a certain string in a certain pango font? (Other than abandoning pango fonts and reverting to gdkfonts, of course. ; ) ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/list

g_param_spec_ ??

2005-07-11 Thread Arx Henrique
Hi all, I'm buy the gnome developers guide and one of chapter talks about gobject and oo, and have many functions to create a gparamspec struture like g_param_spec_uint (to guint), but i have no idea what's the g_param_spec_* that i need to GString type, can anyone help-me ? tks []'s Arx Cruz -

Re: window and children resizable

2005-07-11 Thread Chris Vine
On Monday 11 July 2005 09:09, Luca Cappa wrote: > Chris Vine wrote: [snip] > >It is a bit difficult to penetrate your question. If you don't want the > >contained widgets to have a minimum size then don't set the widgets to > > have a minimum size. > > > >Chris > > For example, i would simply li

Re: cloning an object ...

2005-07-11 Thread Antonio Gomes
> > ANSWER from the list : Make an item with the same name to all the > > menus, and connect the same callback to both/all of them. This is the > > only way to do this > > currently, in the future you can do it with *GtkUIManager* magic, but > > that's in the future... > > > > :( so , there is no '

Re: cloning an object ...

2005-07-11 Thread Tristan Van Berkom
Antonio Gomes wrote: [...] ANSWER from the list : Make an item with the same name to all the menus, and connect the same callback to both/all of them. This is the only way to do this currently, in the future you can do it with *GtkUIManager* magic, but that's in the future... :( so , there is no

Re: cloning an object ...

2005-07-11 Thread Antonio Gomes
> I wasn't sugesting that you link with glade (which wouldn't work > anyway), just sugesting that you look at the code I wrote to get the > feel of how to do it yourself. it's true. I'll investigate this path ... ;) > Hmm, > then your probably better off writing some menu specific code; > r

Re: cloning an object ...

2005-07-11 Thread Tristan Van Berkom
Antonio Gomes wrote: [...] Depending on what you are trying to acomplish, you probably want to forget about cloning objects and take some other approach, but you are welcome to take a look at the `glade_widget_dup()' function in glade-widget.c (cvs co glade3). hu ... I got it. Well, being

Re: cloning an object ...

2005-07-11 Thread Antonio Gomes
> > I would like to know how can I clone an Object (widget). I mean, > > creating an widget exactly identical to the first one (but allocated > > in different places in memory). > We do it in glade-3, its a question of recursing through the object > heirarchy (so that children are also recursivly

Re: whatever happened to the gtk_kennel?

2005-07-11 Thread Owen Taylor
On Mon, 2005-07-11 at 10:05 -0400, David Morse wrote: > Back in the day there were plans to incorporate "kennels" into gtk - > it was a method for sizing widgets without the contraints of the > widget heirarchy. I think they were first used in > "BEAST", but were planned for general consumption.

Unresponsive gtk entry

2005-07-11 Thread davidgn
I am writing a small application to identify users using pam. As gtk won't acept sbit binaries, its done with two programs. one cli program to interface with pam and talk on two pipes with the gui one gui who forks to exec the first one and talk with it with the set of pipes. This one also starts

Re: cloning an object ...

2005-07-11 Thread Tristan Van Berkom
Antonio Gomes wrote: Hi , I would like to know how can I clone an Object (widget). I mean, creating an widget exactly identical to the first one (but allocated in different places in memory). Hehe, its quite tricky; and not supported by the GObject mechanism. We do it in glade-3, its a qu

cloning an object ...

2005-07-11 Thread Antonio Gomes
Hi , I would like to know how can I clone an Object (widget). I mean, creating an widget exactly identical to the first one (but allocated in different places in memory). regards -- Antonio Gomes ___ gtk-app-devel-list mailing list gtk-app-devel-list@g

Re: What's the deal with gtkglarea?

2005-07-11 Thread Pete Nagy
I've found these useful: http://developer.gnome.org/dotplan/porting/ http://developer.gnome.org/doc/API/2.0/gtk/gtk-changes-2-0.html http://gtkglext.sourceforge.net/reference/gtkglext/ http://inigo.katxi.org/docs/Python2/pygtk-faq.html#2.3 -> Pete ---

gtk tree error

2005-07-11 Thread srinivas
hi; i want to display gtktreeview with expand, collapse functionality. i created tree using glade, and later accessed that using gtk_tree_view_set_model(), created tree view also. now when i want to display using expand/collapse functionality, i am getting error like this. Gtk-CRITICAL **: f

whatever happened to the gtk_kennel?

2005-07-11 Thread David Morse
Back in the day there were plans to incorporate "kennels" into gtk - it was a method for sizing widgets without the contraints of the widget heirarchy. I think they were first used in "BEAST", but were planned for general consumption. I don't see them in the docs now.

Re: [gdk;gdkpixbuf] Optimisation. Is it possible?

2005-07-11 Thread Owen Taylor
On Mon, 2005-07-11 at 09:58 +0200, [EMAIL PROTECTED] wrote: > I'd like to create a lot of images from some values. > Values is in some type of tree (background, what in right upper > corner, what in ...). > Is it possible to reuse GdkGC for enother GdkDrawable then in > constructor? > > Somethin

Re: closing a GtkFileChooserDialog (The Saltydog)

2005-07-11 Thread Muthiah Annamalai
> > > >the dialog stays open until my_subroutine returns > and as the sub is a > >very long time-demanding sub, it is annoying to see > the dialog stuck > >opened.. > > Probably you must use, gtk_widget_hide() on the dialog, before you enter your subroutine? Cheers Muthu. ___

Re: GtkTextView

2005-07-11 Thread Eduardo M KALINOWSKI
Tomasz Wegrzanowski wrote: >GtkTextView is such a cool widget for implementing application's own richtext >display. >There's just one thing I couldn't find - how can I implement links in it ? > >If there are no high-level links implemented, I just need information that user >clicked with such and

tree exapnd

2005-07-11 Thread srinivas
hi; i want to develop a treeview items with expand and collapse. i used gtk_tree but this one is deprecated, so using gtk tree view how can i get this functionality. i.e with main root tree will be having sub tree, and expand collapse functionality. thanks; srinivas ___

GtkTextView

2005-07-11 Thread Tomasz Wegrzanowski
GtkTextView is such a cool widget for implementing application's own richtext display. There's just one thing I couldn't find - how can I implement links in it ? If there are no high-level links implemented, I just need information that user clicked with such and such button on certain GtkTextIte

Re: window and children resizable

2005-07-11 Thread Luca Cappa
Chris Vine wrote: On Friday 08 July 2005 08:48, Luca Cappa wrote: Greg Breland wrote: On Thu, 2005-07-07 at 08:06, Luca Cappa wrote: Hello all, I found that if a create a window and I put inside this window a widget, the window could not resize itself to a size smaller than th

[gdk;gdkpixbuf] Optimisation. Is it possible?

2005-07-11 Thread uzytkownik22
I'd like to create a lot of images from some values. Values is in some type of tree (background, what in right upper corner, what in ...). Is it possible to reuse GdkGC for enother GdkDrawable then in constructor? Something like: G_INLINE GdkGC *return_gc_background1(GdkDrawable *gd) { static