Prevent continious UGET for eof attribute.
[rugen] / src / page_status.c
index ed2f54e..bd8bd84 100644 (file)
@@ -211,10 +211,18 @@ static void *status_thread( void *arg )
        {
                if ( mvcp_notifier_wait( notifier, &status ) != -1 )
                {
+                       char buf[32];
+
                        if ( status.status == unit_disconnected )
+                       {
+                               this->app->eof = 0;
                                break;
+                       }
                        if ( show_status( this, &status ) )
                                show_units( this, TRUE );
+                       if ( !this->app->eof && mvcp_unit_get( this->app->command, this->app->selected_unit,
+                               "eof", buf, sizeof(buf) ) != -1)
+                                       this->app->eof = buf[0];
                }
        }
 
@@ -266,8 +274,8 @@ static GtkWidget *this_page_get_widget( page super )
 
 static void this_page_get_toolbar_info( page super, GtkIconSize size, GtkWidget **icon, char **label )
 {
-       *icon = gtk_image_new_from_stock( "gtk-execute",  size );
-       *label = "_Units";
+       *icon = gtk_image_new_from_stock( "gtk-home",  size );
+       *label = _("_Units");
 }
 
 static void this_page_on_connect( page super )