[geany/geany-plugins] a9c215: geanydoc: Make OK the default button in interactive mode
Vasiliy Faronov
git-noreply at xxxxx
Mon Apr 24 15:02:09 UTC 2017
Branch: refs/heads/master
Author: Vasiliy Faronov <vfaronov at gmail.com>
Committer: Vasiliy Faronov <vfaronov at gmail.com>
Date: Mon, 24 Apr 2017 15:02:09 UTC
Commit: a9c21525abcce90abcf40dec0902aa401c7625f2
https://github.com/geany/geany-plugins/commit/a9c21525abcce90abcf40dec0902aa401c7625f2
Log Message:
-----------
geanydoc: Make OK the default button in interactive mode
With this change, pressing Enter in Geanydoc's interactive dialog
activates the OK button.
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).
More information about the Plugins-Commits
mailing list