Branch: refs/heads/master Author: Frank Lanitz frank@frank.uvena.de Committer: GitHub noreply@github.com Date: Sat, 29 Apr 2017 10:35:25 UTC Commit: 47c1d93150aeb14e4ab0b848ac53a640c29d5210 https://github.com/geany/geany-plugins/commit/47c1d93150aeb14e4ab0b848ac53a6...
Log Message: ----------- Merge pull request #566 from vfaronov/geanydoc-default-button
geanydoc: Make OK the default button in interactive mode
Modified Paths: -------------- geanydoc/src/geanydoc.c
Modified: geanydoc/src/geanydoc.c 2 lines changed, 2 insertions(+), 0 deletions(-) =================================================================== @@ -304,11 +304,13 @@ create_Interactive(const gchar * default_word) GTK_STOCK_CANCEL, GTK_RESPONSE_REJECT, NULL); + gtk_dialog_set_default_response(GTK_DIALOG(dialog), GTK_RESPONSE_ACCEPT); dialog_vbox1 = gtk_dialog_get_content_area(GTK_DIALOG(dialog));
entry_word = gtk_entry_new(); if (default_word) gtk_entry_set_text(GTK_ENTRY(entry_word), default_word); + gtk_entry_set_activates_default(GTK_ENTRY(entry_word), TRUE); gtk_widget_show(entry_word); gtk_box_pack_start(GTK_BOX(dialog_vbox1), entry_word, TRUE, TRUE, 0);
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
plugins-commits@lists.geany.org