From: Zefirov S. <ze...@pr...> - 2009-07-09 11:36:48
|
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 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). 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. So what should I do? And what did I do wrong? |