~ubuntu-branches/ubuntu/utopic/anjuta/utopic-proposed

« back to all changes in this revision

Viewing changes to libanjuta/anjuta-launcher.c

  • Committer: Package Import Robot
  • Author(s): Andreas Henriksson, Jackson Doak
  • Date: 2014-07-12 15:17:39 UTC
  • mfrom: (1.4.14)
  • Revision ID: package-import@ubuntu.com-20140712151739-p9xy0ntlgbpm2nxq
Tags: 2:3.12.0-1
* Team upload.

[ Jackson Doak ]
* New upstream release
* Drop 03_valac_0.22.patch, fixed upstream\
* debian/control:
  - Bump b-dep version on libgtk-3-dev (>= 3.6.0), libglib2.0-dev (>= 2.34.0)
  - Bump stardards-version to 3.9.5. No changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 *
16
16
 * You should have received a copy of the GNU Library General Public
17
17
 * License along with this library; if not, write to the Free
18
 
 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
18
 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19
19
 */
20
20
 
21
21
/**
295
295
        parent_class = g_type_class_peek_parent (klass);
296
296
 
297
297
        /**
298
 
         * AnjutaLauncher::child-exited
 
298
         * AnjutaLauncher::child-exited:
299
299
         * @launcher: a #AnjutaLancher object.
300
300
         * @child_pid: process ID of the child
301
301
         * @status: status as returned by waitpid function
319
319
                                        G_TYPE_INT, G_TYPE_ULONG);
320
320
        
321
321
        /**
322
 
         * AnjutaLauncher::busy
 
322
         * AnjutaLauncher::busy:
323
323
         * @launcher: a #AnjutaLancher object.
324
 
         * @busy: TRUE is a child is currently running
 
324
         * @busy: %TRUE is a child is currently running
325
325
         * 
326
326
         * Emitted when a child starts after a call to one execute function
327
 
         * (busy is TRUE) or when a child exits and all i/o channels are
328
 
         * closed (busy is FALSE).
 
327
         * (busy is %TRUE) or when a child exits and all i/o channels are
 
328
         * closed (busy is %FALSE).
329
329
         **/
330
330
        launcher_signals[BUSY_SIGNAL] =
331
331
                g_signal_new ("busy",
355
355
 *
356
356
 * Tells if the laucher is currently executing any command.
357
357
 *
358
 
 * Return value: TRUE if launcher is busy, otherwisee FALSE.
 
358
 * Return value: %TRUE if launcher is busy, otherwise %FALSE.
359
359
 */
360
360
gboolean
361
361
anjuta_launcher_is_busy (AnjutaLauncher *launcher)
389
389
}
390
390
 
391
391
/**
392
 
 * anjuta_launcher_send_stdin:
 
392
 * anjuta_launcher_send_stdin_eof:
393
393
 * @launcher: a #AnjutaLancher object.
394
394
 * 
395
395
 * Sends a EOF to Standard input of the process currently being executed.
940
940
        {       
941
941
                g_io_channel_shutdown (launcher->priv->stdout_channel, emit_signal, NULL);
942
942
                g_io_channel_unref (launcher->priv->stdout_channel);
943
 
                g_source_remove (launcher->priv->stdout_watch);
 
943
                if (!launcher->priv->stdout_is_done)
 
944
                        g_source_remove (launcher->priv->stdout_watch);
944
945
        }
945
946
 
946
947
        if (launcher->priv->stderr_channel)
947
948
        {
948
949
                g_io_channel_shutdown (launcher->priv->stderr_channel, emit_signal, NULL);
949
950
                g_io_channel_unref (launcher->priv->stderr_channel);
950
 
                g_source_remove (launcher->priv->stderr_watch);
 
951
                if (!launcher->priv->stderr_is_done)
 
952
                        g_source_remove (launcher->priv->stderr_watch);
951
953
        }
952
954
 
953
955
        if (launcher->priv->pty_channel)
1247
1249
/**
1248
1250
 * anjuta_launcher_execute_v:
1249
1251
 * @launcher: a #AnjutaLancher object.
1250
 
 * @dir: Working directory or NULL.
 
1252
 * @dir: Working directory or %NULL.
1251
1253
 * @argv: Command args.
1252
1254
 * @envp: Additional environment variable.
1253
1255
 * @callback: The callback for delivering output from the process.
1256
1258
 * The first of the @args is the command itself. The rest are sent to the
1257
1259
 * as it's arguments. This function works similar to anjuta_launcher_execute().
1258
1260
 * 
1259
 
 * Return value: TRUE if successfully launched, otherwise FALSE.
 
1261
 * Return value: %TRUE if successfully launched, otherwise %FALSE.
1260
1262
 */
1261
1263
gboolean
1262
1264
anjuta_launcher_execute_v (AnjutaLauncher *launcher, gchar *const dir,
1301
1303
 * it. Please note that not all formats of the password are recognized. Those
1302
1304
 * with the standard 'assword:' substring in the prompt should work well.
1303
1305
 * 
1304
 
 * Return value: TRUE if successfully launched, otherwise FALSE.
 
1306
 * Return value: %TRUE if successfully launched, otherwise %FALSE.
1305
1307
 */
1306
1308
gboolean
1307
1309
anjuta_launcher_execute (AnjutaLauncher *launcher, const gchar *command_str,