case BABEL_DIAG_OUTPUT:
line = (gchar *)data;
+ gdk_threads_enter();
+ if (w->ok) {
+ gtk_label_set_text ( GTK_LABEL(w->status), _("Status: Working...") );
+ }
+ gdk_threads_leave();
+
/* tells us how many items there will be */
if (strstr(line, "Xfer Wpt")) {
gps_data->progress_label = gps_data->wp_label;
case BABEL_DIAG_OUTPUT:
line = (gchar *)data;
+ gdk_threads_enter();
+ g_mutex_lock(sess->mutex);
+ if (sess->ok) {
+ gtk_label_set_text ( GTK_LABEL(sess->status_label), _("Status: Working...") );
+ }
+ g_mutex_unlock(sess->mutex);
+ gdk_threads_leave();
+
/* tells us how many items there will be */
if (strstr(line, "Xfer Wpt")) {
sess->progress_label = sess->wp_label;
case BABEL_DIAG_OUTPUT:
line = (gchar *)data;
+ gdk_threads_enter();
+ g_mutex_lock(sess->mutex);
+ if (sess->ok) {
+ gtk_label_set_text ( GTK_LABEL(sess->status_label), _("Status: Working...") );
+ }
+ g_mutex_unlock(sess->mutex);
+ gdk_threads_leave();
+
if (strstr(line, "PRDDAT")) {
gchar **tokens = g_strsplit(line, " ", 0);
gchar info[128];