Adding a child widget to a custom widget

2006-09-06 Thread Alexandre
Hi I'm creating a widget, a plotting widget, and I have done a scale widget too. So, I want that the plotting widget has a child, the scale widget, to be it's axis. So, I fill the allocation structure of the scale widget to the position I want, and then I call gtk_widget_set_parent

Re: Adding a child widget to a custom widget

2006-09-06 Thread Tristan Van Berkom
Alexandre wrote: Hi I'm creating a widget, a plotting widget, and I have done a scale widget too. So, I want that the plotting widget has a child, the scale widget, to be it's axis. So, I fill the allocation structure of the scale widget to the position I want, and then I call

Re: [Valgrind-users] debugging gtk-related memory leaks

2006-09-06 Thread David Ellis
I tried it with the debug info packages and malloc, and now there are only a few X/gtk errors. Anyone have suggestions on how to approach those? Maybe someone on the gtk-app-devel-list? Thanks, David Julian Seward wrote: Maybe you should set G_SLICE=always-malloc in the environment in

Re: gtk_notebook_set_current_page and the switch-page signal

2006-09-06 Thread Tristan Van Berkom
Francesco Montorsi wrote: Hi all, I'd like to know how to change the currently selected page in a GtkNotebook *without* generating a switch-page signal. My switch-page handler in fact performs some code which should be executed only on user-actions, not on selection changes by GTK.

Re: gtk_notebook_set_current_page and the switch-page signal

2006-09-06 Thread Eduardo M KALINOWSKI
Francesco Montorsi wrote: Hi all, I'd like to know how to change the currently selected page in a GtkNotebook *without* generating a switch-page signal. You can't. My switch-page handler in fact performs some code which should be executed only on user-actions, not on selection

text with links

2006-09-06 Thread Paul Drynoff
Hello. I need component like GtkTextView, but with abbilities handle click on some words (links), with interface like this: component_name_mark_text_as_link(position) on_click(gchar *link_value, gpointer arg) is it possible implement with GtkTextView(exists any examples?), or there is around

Re: text with links

2006-09-06 Thread Lance Dillon
- Original Message From: Paul Drynoff [EMAIL PROTECTED] To: gtk-app-devel-list@gnome.org Sent: Wednesday, September 6, 2006 11:40:20 AM Subject: text with links Hello. I need component like GtkTextView, but with abbilities handle click on some words (links), with interface like this:

Re: gtk_notebook_set_current_page and the switch-page signal

2006-09-06 Thread Tristan Van Berkom
Francesco Montorsi wrote: [...] My switch-page handler in fact performs some code which should be executed only on user-actions, not on selection changes by GTK. from the docs about switch-page: Emitted when the user or a function changes the current page a.) switch-page maybe isnt

Re: gtk_notebook_set_current_page and the switch-page signal

2006-09-06 Thread Tristan Van Berkom
Eduardo M KALINOWSKI wrote: [...] You can, however, block the signal prior to calling the gtk_notebook_set_current_page function, and unblock it afterwards. Ah yes, I had completely forgot about the slightly more elegant/convenient g_signal_handler_block_by_func() method :)

Re: text with links

2006-09-06 Thread Paul Drynoff
On 9/6/06, Lance Dillon [EMAIL PROTECTED] wrote: The easiest and quickest way I can think of is create a TextView, add some TextAnchors, define some LinkButtons, and anchor the LinkButtons to the TextAnchors. Thanks, without your help I never catch this feature of GtkTextView, but there is

Re: text with links

2006-09-06 Thread Lance Dillon
- Original Message From: Paul Drynoff [EMAIL PROTECTED] To: Lance Dillon [EMAIL PROTECTED] Cc: gtk-app-devel-list@gnome.org Sent: Wednesday, September 6, 2006 12:31:20 PM Subject: Re: text with links On 9/6/06, Lance Dillon [EMAIL PROTECTED] wrote: The easiest and quickest way I can

Re: text with links

2006-09-06 Thread Paul Drynoff
No, actually, GtkLinkButton is a new widget in 2.10 I think. Sad, as I remember, starting from some version gtk+ supports only windows windows 98, and I suppose 2.10 is this version. What I would probably do is create a blank button, create a label with markup, then add the label to the button,

Re: text with links

2006-09-06 Thread Lance Dillon
- Original Message From: Paul Drynoff [EMAIL PROTECTED] To: Lance Dillon [EMAIL PROTECTED] Cc: gtk-app-devel-list@gnome.org Sent: Wednesday, September 6, 2006 2:52:00 PM Subject: Re: text with links I would have to test this. I think the gtk example does some anchors inline. The

Recording widget motion

2006-09-06 Thread Samuel Cormier-Iijima
Hi everyone, I have a GtkAdjustment and HScale and I'd like to be able to record and playback the user's movement. To clarify: a user should be able to push a record button, after which he can drag the Scale widget however he wishes for a couple of seconds. Afterwards, he should be able to push

Reference Counting

2006-09-06 Thread Matias Torres
Hi all, I'm working on some simple app which only use gtk and sqlite libraries and i KNOW it's leaking memory. Would you please help me? (damn beatles!, i shouldn't be listening music when writing a mail!) *- Is there a way to pass a function to free certain struct in a GtkTreeModel so GTK

Re: Reference Counting

2006-09-06 Thread Nikhil Dinesh
*- Is there a way to pass a function to free certain struct in a GtkTreeModel so GTK frees the allocated space when the model's reference count reach to 0? (without registering it as a G_TYPE).* One way is to register the struct as a weak reference to the model, using