[gnome-commander] Sets the focus to the rename dialog window
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] Sets the focus to the rename dialog window
- Date: Tue, 5 Sep 2017 20:25:13 +0000 (UTC)
commit 6f3125d6ab4ecb0d816dcae22ac471950015dbe8
Author: Uwe Scholz <uwescholz src gnome org>
Date: Tue Sep 5 22:24:30 2017 +0200
Sets the focus to the rename dialog window
src/dialogs/gnome-cmd-rename-dialog.cc | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/dialogs/gnome-cmd-rename-dialog.cc b/src/dialogs/gnome-cmd-rename-dialog.cc
index 2659e2c..20a8058 100644
--- a/src/dialogs/gnome-cmd-rename-dialog.cc
+++ b/src/dialogs/gnome-cmd-rename-dialog.cc
@@ -148,6 +148,7 @@ GtkWidget *gnome_cmd_rename_dialog_new (GnomeCmdFile *f, gint x, gint y, gint wi
gtk_entry_set_text (dialog->priv->textbox, fname);
+ gtk_window_set_focus (GTK_WINDOW (dialog), GTK_WIDGET (dialog->priv->textbox));
gtk_widget_grab_focus (GTK_WIDGET (dialog->priv->textbox));
gtk_editable_select_region (GTK_EDITABLE (dialog->priv->textbox), 0, -1);
gtk_widget_show (GTK_WIDGET (dialog->priv->textbox));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]