Enable/Disable a button and mouse clicks

2007-01-03 Thread Gabriele Greco
I've found that if I disable a button after a click on it (gtk_widget_set_sensitive(button, FALSE)), and then enable it back after a timed event or something else occurs (...set_sensitive(button, TRUE) ), I'm unable to click on the button with the mouse pointer unless I exit with the pointer

How to detect the presence of scrollbar on scrolled window.

2007-01-03 Thread amol
Does anyone know how to find out whether a vertical scrollbar is present on scolled window or not. I need to detect its presence at runtime. below is the code which i tried to find out.but it is not working as expected. line 3 is always returning false.irrespective of vscrollbar presence. 1.

Re: Enable/Disable a button and mouse clicks

2007-01-03 Thread Ed Catmur
Gabriele Greco wrote: I've found that if I disable a button after a click on it (gtk_widget_set_sensitive(button, FALSE)), and then enable it back after a timed event or something else occurs (...set_sensitive(button, TRUE) ), I'm unable to click on the button with the mouse pointer unless

Re: How to detect the presence of scrollbar on scrolled window.

2007-01-03 Thread Ed Catmur
amol wrote: Does anyone know how to find out whether a vertical scrollbar is present on scolled window or not. I need to detect its presence at runtime. below is the code which i tried to find out.but it is not working as expected. line 3 is always returning false.irrespective of vscrollbar

GtkEntry text selection

2007-01-03 Thread Anurag Chaudhary
When I bring focus to a GtkEntry, all of its text gets selected by default. How can I disable this behaviour? I want the text to remain un-selected and cursor in the end. Thanks Anurag _ Tried the new MSN Messenger? It’s cool!

Re: How to capture mouse movements independend of a Window?

2007-01-03 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wed, Jan 03, 2007 at 12:18:17PM +0100, [EMAIL PROTECTED] wrote: Hello!! hello! (please, keep the list CC'ed so that others may lurk/chime-in) I'm new in this treatment, but your help is good for me. Glad it is :) I compile your code in a

How to convert GtkWidget into GdkPixbuf

2007-01-03 Thread sunny chawla
I want to convert GtkWidget into GdkPixbuf. Is there any way to do that? I am trying to write an application in which i have a top-level widget which has some data (text and images) . I want to have panning and zooming support for that window. Thanks and Regards, Sanny Chawla

Re: How to capture mouse movements independend of a Window?

2007-01-03 Thread Andreas Stricker
Yo tomas! OK, here is a rough sketch (tested). As soon as the pointer crosses the window boundary (inward), it is grabbed (the app changes the cursor's appearance to show it). WARNING! IT IS A TRAP! Once your pointer is inside, you won't be let out. See to it that you have a console around

Using GLib main loop to free up temporary memory

2007-01-03 Thread Leandro A. F. Pereira
Greetings! When you program with GTK+ (or GLib) with C, sometimes there's a need for temporary dynamically-allocated variables. The problem is to free them in the right time — or worse — having to use even more auxiliary variables, like in the example below: gchar *func(void) { gchar *temp =

Saving a GdkWindow to a file

2007-01-03 Thread Leandro A. F. Pereira
Greetings, In my application I have to save the contents of a widget to a PNG file. So far it works (using GDK Pixbuf and gdk_pixbuf_save), but garbage appears if the window is obscured by another window, or if some part of it is hidden. How can someone get a GtkWidget's GdkWindow in a way no

Re: [SPAM] Re: Enable/Disable a button and mouse clicks

2007-01-03 Thread Gabriele Greco
Ed Catmur wrote: You've discovered bug 56070[1]. There are some workarounds at the bug, but we're fairly close to getting it fixed in GTK+. After a complete read of the thread I've implemented the workaround based on the window motion events capture, seems to work correctly both on linux

Re: Using GLib main loop to free up temporary memory

2007-01-03 Thread Iago Rubio
On Wed, 2007-01-03 at 13:02 -0200, Leandro A. F. Pereira wrote: Greetings! When you program with GTK+ (or GLib) with C, sometimes there's a need for temporary dynamically-allocated variables. The problem is to free them in the right time — or worse — having to use even more auxiliary

Re: GtkEntry text selection

2007-01-03 Thread Micah Carrick
You can use the focus signal to set the cursor position using gtk_editable_set_position with a position of -1 to indicate the end of the text. - Micah Carrick http://www.micahcarrick.com | http://www.gtkforums.com Anurag Chaudhary wrote: When I bring focus to a GtkEntry, all of its text

Tooltip per GtkClist row

2007-01-03 Thread Preeti Joshi
Hi, Is it possible to add tooltip to individual GtkCList rows? Regards, Preeti ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Tooltip per GtkClist row

2007-01-03 Thread Edward Catmur
On Thu, 2007-01-04 at 09:00 +0530, Preeti Joshi wrote: Hi, Is it possible to add tooltip to individual GtkCList rows? Um, you do realise GtkCList is deprecated? You should be using GtkTreeView with a GtkListStore. That said, the answer to your question is: Not yet. See

Re: GtkEntry text selection

2007-01-03 Thread Anurag Chaudhary
The real problem is not setting the cursor position but the automatic selection of the text in the GtkEntry field. The text should remain un-selected when focussed. From: Micah Carrick [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: gtk-app-devel-list@gnome.org Subject: Re: GtkEntry text

Re: GtkEntry text selection

2007-01-03 Thread Yeti
On Thu, Jan 04, 2007 at 10:31:15AM +0530, Anurag Chaudhary wrote: The text should remain un-selected when focussed. gtk-entry-select-on-focus = 0 in gtkrc? Yeti -- http://physics.muni.cz/~yeti/pf2007.png ___ gtk-app-devel-list mailing list

Re: GtkEntry text selection

2007-01-03 Thread Anurag Chaudhary
This will change the behaviour for all the Gtkentry widgets system wide. Can something be done for just one specific widget? Anurag From: David Neèas (Yeti) [EMAIL PROTECTED] To: gtk-app-devel-list@gnome.org Subject: Re: GtkEntry text selection Date: Thu, 4 Jan 2007 07:52:02 +0100 On Thu,