aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2010-02-26 18:30:22 +0000
committerJoshua Lock <josh@linux.intel.com>2010-02-26 18:30:22 +0000
commit9196f095eecb102c9510ff7c4eb35e20644fdeba (patch)
treed8cd23f27b766a426899d364d9932a2957672542
parent456f978551e65805d00d76ac84cc20d5273cf4ca (diff)
downloadanjuta-poky-9196f095eecb102c9510ff7c4eb35e20644fdeba.tar.gz
anjuta-poky-9196f095eecb102c9510ff7c4eb35e20644fdeba.tar.bz2
anjuta-poky-9196f095eecb102c9510ff7c4eb35e20644fdeba.zip
Add default value for Run remote and Debug remote entries
It's not obvious to all that your just deployed package is in /usr/local/bin so to make it easy pre-populate the entries requesting the binary with the deploy path. Signed-off-by: Joshua Lock <josh@linux.intel.com>
-rw-r--r--src/plugin.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/plugin.c b/src/plugin.c
index 5830e2c..1db6302 100644
--- a/src/plugin.c
+++ b/src/plugin.c
@@ -585,7 +585,10 @@ remote_debug_dialog (AnjutaPluginSdk *sp)
/* 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);
+ if (sp->gdb_remote_command)
+ gtk_entry_set_text (GTK_ENTRY (entry), sp->gdb_remote_command);
+ else
+ gtk_entry_set_text (GTK_ENTRY (entry), "/usr/local/bin/");
gtk_size_group_add_widget (control_group, entry);
gtk_box_pack_start (GTK_BOX (hbox), entry, TRUE, TRUE, 2);
@@ -655,6 +658,8 @@ remote_run_dialog (AnjutaPluginSdk *sp, gchar *prev_cmd)
if (prev_cmd)
gtk_entry_set_text (GTK_ENTRY (entry), prev_cmd);
+ else
+ gtk_entry_set_text (GTK_ENTRY (entry), "/usr/local/bin/");
gtk_box_pack_start (GTK_BOX (hbox), entry, TRUE, TRUE, 2);