[Glade-users] Timing out a dialog
- From: tvb at gnome.org (Tristan Van Berkom)
- Subject: [Glade-users] Timing out a dialog
- Date: Thu, 5 Mar 2009 11:06:40 -0500
When you launch the dialog initially then use g_timeout_add()
to register a timeout callback, give it the dialog as user data
(and hold on to the return value of g_timeout_add()...), then
quit the dialog/reset the source_id from the callback ... and/or
when gtk_dialog_run() returns:
if (source_id > 0) source_id = (g_source_remove (source_id), 0);
Cheers,
-Tristan
On Thu, Mar 5, 2009 at 11:00 AM, His Majesty <balakkvj at gmail.com> wrote:
Hello people,
? ? ? ? ? ? ? ? ? ? For sometime now, I have been trying to timeout a
dialog. To illustrate,
imagine you have a button A and when it is clicked, it responds "A clicked".
Now, what I am trying to do is close the dialog window without any
further click after a pre-determined period, say 2 seconds.
Any ideas how to go about it?
PS: I am using debian-2.6.26-1 i686 with glade-3
Thanks in advance for any ideas.
B
_______________________________________________
Glade-users maillist ?- ?Glade-users at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/glade-users
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]