fix listbox select for packed icon, tweak show edit
[goodguy/history.git] / cinelerra-5.1 / cinelerra / resourcepixmap.C
index 319c6b4023dc7def7fb075bd847a4f898ea95f26..6f74c85dcf3a4de2a052acd1a1139a9424b707d4 100644 (file)
@@ -434,29 +434,7 @@ void ResourcePixmap::draw_title(TrackCanvas *canvas,
 
 //     if( total_x > -BC_INFINITY ) {
                char title[BCTEXTLEN];
-               char channel[BCTEXTLEN];
-               title[0] = 0;
-               channel[0] = 0;
-               FileSystem fs;
-
-               if( edit->user_title[0] )
-                       strcpy(title, edit->user_title);
-               else if( edit->nested_edl ) {
-//printf("ResourcePixmap::draw_title %s\n", edit->nested_edl->project_path);
-                       fs.extract_name(title, edit->nested_edl->path);
-
-// EDLs only have 1 video output
-                       if( edit->track->data_type == TRACK_AUDIO ) {
-                               sprintf(channel, " #%d", edit->channel + 1);
-                               strcat(title, channel);
-                       }
-               }
-               else if( edit->asset ) {
-                       fs.extract_name(title, edit->asset->path);
-                       sprintf(channel, " #%d", edit->channel + 1);
-                       strcat(title, channel);
-               }
-
+               edit->get_title(title);
                canvas->set_color(mwindow->theme->title_color);
                canvas->set_font(mwindow->theme->title_font);