Re: [gtk-list] Blocking Dialog and Button listening to right,left mouse
- From: Tero Pulkkinen <terop students cc tut fi>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Blocking Dialog and Button listening to right,left mouse
- Date: 02 Jul 1998 13:26:57 +0300
Christoph "Gröver" <grover@hottemax.uni-muenster.de> writes:
> I want to be able to popup a dialog which asks the user for 1 out of 3
> options, but the MainWindow should not be usable at that time and
> - most importantly - the execution of the program waits for the user to
> select one of the options. The dialog then returns a number (or something
> similar) to the calling function and there is a switch statement
> which selects the appropriate handling code.
gtk_grab_add()
/* connect something to gtk_main_quit() */
gtk_main();
gtk_grab_remove()
> So I want a kind of blocking dialog, which enforces the user to act and
> which doesn't call signal handlers, but instead just returns the user made
> selection.
>
> Is this possible with gtk ?
yup. Of course. Not recommended, but possible.
> Also I would like to try and make the Normal Button widget listen to
> the left and middle mouse buttons.
see button_press_event in GtkWidget.
--
-- Tero Pulkkinen -- terop@modeemi.cs.tut.fi --
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]