diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2008-11-01 23:18:25 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2008-11-01 23:18:25 +0000 |
commit | 75d5211a5ed497021b2e19a66db3116ad4a36e61 (patch) | |
tree | 18459c62bb73936c3630737f5ae02755bcccae29 /src/main.c | |
parent | a2c01f0fab5e0106f6053bbbcbc5818b80eaa785 (diff) |
Flag running.
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -931,6 +931,8 @@ trace_read (GIOChannel *io, GIOCondition cond, sphinx_t *sphinx) GtkTextIter end; gboolean ret = TRUE; + GDK_THREADS_ENTER (); + modified = gtk_text_buffer_get_modified (GTK_TEXT_BUFFER (sphinx->buffer)); gtk_source_buffer_begin_not_undoable_action (sphinx->buffer); @@ -965,6 +967,16 @@ done: gtk_text_buffer_get_end_iter (GTK_TEXT_BUFFER (sphinx->buffer), &end); gtk_text_view_scroll_to_iter (GTK_TEXT_VIEW (sphinx->tv), &end, .0, TRUE, 0., 0.); + if (ret == 0) { + gchar *str; + + str = g_strdup_printf ("%s - " APPNAME, sphinx->trace_name); + gtk_window_set_title (GTK_WINDOW (sphinx->window), + str); + g_free (str); + } + + GDK_THREADS_LEAVE (); return ret; } @@ -1005,7 +1017,7 @@ sphinx_trace_command (sphinx_t *sphinx, const char *command, GError **error) g_io_channel_unref (sphinx->trace_io); } - str = g_strdup_printf ("%s - " APPNAME, command); + str = g_strdup_printf ("%s (running) - " APPNAME, command); gtk_window_set_title (GTK_WINDOW (sphinx->window), str); g_free (str); |