display POS and REM (remaining) on sides
[rugen] / src / page_status.c
index 5f6b66d..c526a29 100644 (file)
@@ -97,7 +97,7 @@ static int show_status( page_status this, mvcp_status status )
        gtk_label_set_text( GTK_LABEL( widget ), temp );
        if ( status->unit == dv1394app_get_selected_unit( this->app ) )
        {
-               char tc1[12], tc2[12];
+               char tc[12];
 
                snprintf( temp, sizeof(temp), "U%d - [%s] %s",
                        status->unit,
@@ -108,9 +108,13 @@ static int show_status( page_status this, mvcp_status status )
                gtk_statusbar_push( GTK_STATUSBAR( widget ), this->context, temp );
 
                widget = lookup_widget( dv1394app_get_widget( this->app ), "bbt_label_1a" );
-               snprintf( temp, sizeof(temp), "%s / %s",
-                       frames2tc(status->position, status->fps, tc1),
-                       frames2tc(status->out - status->position, status->fps, tc2));
+               snprintf( temp, sizeof(temp), "POS: %s",
+                       frames2tc(status->position, status->fps, tc));
+               gtk_label_set_text( GTK_LABEL( widget ), temp );
+
+               widget = lookup_widget( dv1394app_get_widget( this->app ), "bbt_label_1b" );
+               snprintf( temp, sizeof(temp), "REM: %s",
+                       frames2tc(status->out - status->position, status->fps, tc));
                gtk_label_set_text( GTK_LABEL( widget ), temp );
 
                dv1394app_show_status( this->app, status );