From: Axel S. <Axe...@en...> - 2009-07-09 13:24:58
|
On Jul 9, 2009, at 13:19, Zefirov Sergey wrote: > I created a dialog in Glade, one of its' buttons has ResponseID 1. > > Then I invoked it in Haskell code through loading and used > dialogSetDefaultResponse dialog (ResponseUser 1) to make my > responseID 1 the default one. > > I got a error message: Gtk-CRITICAL **: gtk_widget_grab_default: > assertion `GTK_WIDGET_CAN_DEFAULT (widget)' failed Hm, that's weird. The assertion above might be triggered because there is no button that has ReponseID 1 in the button part of the dialog. > Pressing Return in dialog's text entries in dialog do not activate > my button (I set their "Activates default" switch to Yes expecting > they do just that). Does the button in the dialog work by itself (i.e. does clicking on the button work)? I wouldn't expect the default button to be triggered when you press return and you are in a text field, although I'm not sure about this. > I do not want to add action buttons with dialogAddButton, because > my action button has a name not from easily translatable stock > palette. This will I18N a little harder. Fair enough. It should work anyway. Does the 'onResponse' signal get called? Axel. |