aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Bradford <rob@o-hand.com>2008-04-04 09:46:01 +0000
committerrob <rob@aea7fca7-3721-49c4-ace3-ac8c44b998bb>2008-04-04 09:46:01 +0000
commite0b1dd2f2162c8172e0559376362651e61a3145a (patch)
treefb41e7043cb30f7a05ac6abb08ca1d2f021c8835
parent9cd09522f5c71bfc3c2227804d652a8a2cf5e1b5 (diff)
downloadanjuta-poky-e0b1dd2f2162c8172e0559376362651e61a3145a.tar.gz
anjuta-poky-e0b1dd2f2162c8172e0559376362651e61a3145a.tar.bz2
anjuta-poky-e0b1dd2f2162c8172e0559376362651e61a3145a.zip
2008-04-04 Rob Bradford <rob@openedhand.com>
* src/beaver-target.c: (beaver_target_init), (_beaver_target_run_remote_v): Move initialisation of launcher from just-in-time to on object initialisation.
-rw-r--r--ChangeLog7
-rw-r--r--src/beaver-target.c12
2 files changed, 12 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index 2b5cc10..4b37d60 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2008-04-04 Rob Bradford <rob@openedhand.com>
+
+ * src/beaver-target.c: (beaver_target_init),
+ (_beaver_target_run_remote_v):
+ Move initialisation of launcher from just-in-time to on object
+ initialisation.
+
2008-04-03 Rob Bradford <rob@openedhand.com>
* src/plugin.c: (remote_run_dialog),
diff --git a/src/beaver-target.c b/src/beaver-target.c
index ac4a3ec..a8a0677 100644
--- a/src/beaver-target.c
+++ b/src/beaver-target.c
@@ -150,6 +150,11 @@ beaver_target_class_init (BeaverTargetClass *klass)
static void
beaver_target_init (BeaverTarget *self)
{
+ BeaverTargetPrivate *priv = TARGET_PRIVATE (self);
+
+ priv->launcher = anjuta_launcher_new ();
+ g_signal_connect (priv->launcher, "child-exited",
+ (GCallback)launcher_child_exited_cb, self);
}
BeaverTargetState
@@ -234,13 +239,6 @@ _beaver_target_run_remote_v (BeaverTarget *target, gchar **in_args,
GError *error = NULL;
IAnjutaMessageManager *msg_manager = NULL;
- if (!priv->launcher)
- {
- priv->launcher = anjuta_launcher_new ();
- g_signal_connect (priv->launcher, "child-exited",
- (GCallback)launcher_child_exited_cb, target);
- }
-
args = beaver_util_strv_joinv ((gchar **)ssh_options, ip_args, in_args, NULL);
if (!priv->msg_view)