gnome-commander r2278 - in branches/gcmd-1-3: . src src/dialogs
- From: epiotr svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-commander r2278 - in branches/gcmd-1-3: . src src/dialogs
- Date: Fri, 14 Nov 2008 23:59:00 +0000 (UTC)
Author: epiotr
Date: Fri Nov 14 23:59:00 2008
New Revision: 2278
URL: http://svn.gnome.org/viewvc/gnome-commander?rev=2278&view=rev
Log:
Activate the default widget for the dialog containing the entry
Modified:
branches/gcmd-1-3/ChangeLog
branches/gcmd-1-3/src/dialogs/gnome-cmd-advrename-regex-dialog.cc
branches/gcmd-1-3/src/gnome-cmd-con-dialog.cc
Modified: branches/gcmd-1-3/src/dialogs/gnome-cmd-advrename-regex-dialog.cc
==============================================================================
--- branches/gcmd-1-3/src/dialogs/gnome-cmd-advrename-regex-dialog.cc (original)
+++ branches/gcmd-1-3/src/dialogs/gnome-cmd-advrename-regex-dialog.cc Fri Nov 14 23:59:00 2008
@@ -86,6 +86,7 @@
if (rx->from)
gtk_entry_set_text (GTK_ENTRY (entry), rx->from);
g_object_set_data (G_OBJECT (dialog), "pattern", entry);
+ gtk_entry_set_activates_default (GTK_ENTRY (entry), TRUE);
gtk_table_attach_defaults (GTK_TABLE (table), entry, 1, 2, 0, 1);
label = gtk_label_new_with_mnemonic (_("_Replace with:"));
@@ -97,6 +98,7 @@
if (rx->to)
gtk_entry_set_text (GTK_ENTRY (entry), rx->to);
g_object_set_data (G_OBJECT (dialog), "replace", entry);
+ gtk_entry_set_activates_default (GTK_ENTRY (entry), TRUE);
gtk_table_attach_defaults (GTK_TABLE (table), entry, 1, 2, 1, 2);
align = gtk_alignment_new (0.0, 0.0, 1.0, 1.0);
Modified: branches/gcmd-1-3/src/gnome-cmd-con-dialog.cc
==============================================================================
--- branches/gcmd-1-3/src/gnome-cmd-con-dialog.cc (original)
+++ branches/gcmd-1-3/src/gnome-cmd-con-dialog.cc Fri Nov 14 23:59:00 2008
@@ -127,6 +127,15 @@
user_entry = gtk_entry_new ();
password_entry = gtk_entry_new ();
+ gtk_entry_set_activates_default (GTK_ENTRY (alias_entry), TRUE);
+ gtk_entry_set_activates_default (GTK_ENTRY (uri_entry), TRUE);
+ gtk_entry_set_activates_default (GTK_ENTRY (server_entry), TRUE);
+ gtk_entry_set_activates_default (GTK_ENTRY (share_entry), TRUE);
+ gtk_entry_set_activates_default (GTK_ENTRY (port_entry), TRUE);
+ gtk_entry_set_activates_default (GTK_ENTRY (folder_entry), TRUE);
+ gtk_entry_set_activates_default (GTK_ENTRY (user_entry), TRUE);
+ gtk_entry_set_activates_default (GTK_ENTRY (password_entry), TRUE);
+
gtk_entry_set_visibility (GTK_ENTRY (password_entry), FALSE);
// We need an extra ref so we can remove them from the table
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]