GTK find dialog should activate on enter.
Posted: 26.10.2009, 12:14
You'll have to forgive that I'm not working under subversion, I didn't intend to write a patch for Celestia, just to run it, but this is really annoying, so I delved in. Simple change:
Now you can hit ctrl-f, hit enter, and it works! Perhaps this is fixed in svn, apologies if so.
-Bernard.
Code: Select all
bash-4.0 [gtk]$ diff -u actions.original.cpp actions.cpp
--- actions.original.cpp 2009-10-27 01:17:38.000000000 +1300
+++ actions.cpp 2009-10-27 01:17:45.000000000 +1300
@@ -323,6 +323,7 @@
gtk_box_pack_start(GTK_BOX(box), label, TRUE, TRUE, 0);
GtkWidget* entry = gtk_entry_new();
+ gtk_entry_set_activates_default(GTK_ENTRY(entry), TRUE);
gtk_box_pack_start(GTK_BOX(box), entry, TRUE, TRUE, 0);
gtk_dialog_set_default_response(GTK_DIALOG(dialog), GTK_RESPONSE_OK);
Now you can hit ctrl-f, hit enter, and it works! Perhaps this is fixed in svn, apologies if so.
-Bernard.