aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Bradford <rob@o-hand.com>2008-02-11 18:23:06 +0000
committerrob <rob@aea7fca7-3721-49c4-ace3-ac8c44b998bb>2008-02-11 18:23:06 +0000
commita2077c08e87251d569e5ece16d12d23e44ca16bd (patch)
tree7968c31ced5fe3a44129293db29b5e72d471ca79
parentc284fbc0fd10a2e9edf5cd866acf28c55e9ce72d (diff)
downloadanjuta-poky-a2077c08e87251d569e5ece16d12d23e44ca16bd.tar.gz
anjuta-poky-a2077c08e87251d569e5ece16d12d23e44ca16bd.tar.bz2
anjuta-poky-a2077c08e87251d569e5ece16d12d23e44ca16bd.zip
2008-02-11 Rob Bradford <rob@openedhand.com>
* src/plugin.c: (remote_debug_dialog), (remote_run_dialog): Fix up the default action behaviour for the Run and Debug dialogs.
-rw-r--r--ChangeLog5
-rw-r--r--src/plugin.c18
2 files changed, 23 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index de4e4d3..9bca987 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2008-02-11 Rob Bradford <rob@openedhand.com>
+ * src/plugin.c: (remote_debug_dialog), (remote_run_dialog):
+ Fix up the default action behaviour for the Run and Debug dialogs.
+
+2008-02-11 Rob Bradford <rob@openedhand.com>
+
* src/plugin.c: (do_local_gdb):
Switch the prefix that the cross gdb uses to find the symbols to the
new location. (Includes the triplet.)
diff --git a/src/plugin.c b/src/plugin.c
index 5c69b8d..7ee30d7 100644
--- a/src/plugin.c
+++ b/src/plugin.c
@@ -681,6 +681,10 @@ remote_debug_dialog (AnjutaPluginSdk *sp)
GTK_FILE_CHOOSER_ACTION_OPEN);
gtk_file_chooser_set_filename (GTK_FILE_CHOOSER (chooser), sp->gdb_local_path);
+ /* Don't grab keyboard focus on click */
+ gtk_file_chooser_button_set_focus_on_click (GTK_FILE_CHOOSER_BUTTON (chooser),
+ FALSE);
+
gtk_size_group_add_widget (control_group, chooser);
gtk_box_pack_start (GTK_BOX (hbox), chooser, TRUE, TRUE, 2);
@@ -694,6 +698,10 @@ remote_debug_dialog (AnjutaPluginSdk *sp)
gtk_box_pack_start (GTK_BOX (hbox), label, TRUE, TRUE, 2);
entry = gtk_entry_new ();
+
+ /* Make hitting enter in the entry do the window default action */
+ gtk_entry_set_activates_default (GTK_ENTRY (entry), TRUE);
+
gtk_entry_set_text (GTK_ENTRY (entry), sp->gdb_remote_command);
gtk_size_group_add_widget (control_group, entry);
gtk_box_pack_start (GTK_BOX (hbox), entry, TRUE, TRUE, 2);
@@ -703,6 +711,12 @@ remote_debug_dialog (AnjutaPluginSdk *sp)
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog)->vbox), inner_vbox,
TRUE, TRUE, 2);
+ /*
+ * Grab the focus away explicitly, otherwise it goes onto the file chooser
+ * button and then we don't get a working default behaviour for the dialog
+ */
+ gtk_widget_grab_focus (entry);
+
gtk_widget_show_all (inner_vbox);
gtk_window_set_resizable (GTK_WINDOW (dialog), FALSE);
@@ -751,6 +765,10 @@ remote_run_dialog (AnjutaPluginSdk *sp)
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 2);
entry = gtk_entry_new ();
+
+ /* Make hitting enter in the entry do the window default action */
+ gtk_entry_set_activates_default (GTK_ENTRY (entry), TRUE);
+
gtk_entry_set_text (GTK_ENTRY (entry), sp->remote_command);
gtk_box_pack_start (GTK_BOX (hbox), entry, TRUE, TRUE, 2);