gtk_widget_grab_default



Hi,
I have not very but complex window with 3 boxes one in another and some
widgets in them. QUIT button is in the inner box and I want it to be
default.
Before 
gtk_widget_show(qbut); // QuitBUTton
I insert:
          GTK_WIDGET_SET_FLAGS(qbut,GTK_CAN_DEFAULT);
          gtk_widget_grab_default(qbut);

but it gtk_widget_grab_default does not work at all -- button have ability
to be default, but it is not default right after progrm runs, may be I
need to do something more?

Thanks,
_____
Alexander Kotelnikov
Saint-Petersburg, Russia
mailto:sasha@ak2614.spb.edu



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]