comparison src/main.c @ 138:71e1ebee420e

replaced gchar* path with FileData *fd
author nadvornik
date Tue, 11 Sep 2007 20:06:29 +0000
parents 55166d93498d
children 8be2cc687304
comparison
equal deleted inserted replaced
137:be3328a58875 138:71e1ebee420e
433 } 433 }
434 } 434 }
435 435
436 static void gr_file_view(const gchar *text, gpointer data) 436 static void gr_file_view(const gchar *text, gpointer data)
437 { 437 {
438 view_window_new(text); 438 view_window_new(file_data_new_simple(text));
439 } 439 }
440 440
441 static void gr_list_clear(const gchar *text, gpointer data) 441 static void gr_list_clear(const gchar *text, gpointer data)
442 { 442 {
443 if (gqview_command_collection) collection_unref(gqview_command_collection); 443 if (gqview_command_collection) collection_unref(gqview_command_collection);
464 else 464 else
465 { 465 {
466 new = (!collection_get_first(gqview_command_collection)); 466 new = (!collection_get_first(gqview_command_collection));
467 } 467 }
468 468
469 if (collection_add(gqview_command_collection, text, FALSE) && new) 469 if (collection_add(gqview_command_collection, file_data_new_simple(text), FALSE) && new)
470 { 470 {
471 layout_image_set_collection(NULL, gqview_command_collection, 471 layout_image_set_collection(NULL, gqview_command_collection,
472 collection_get_first(gqview_command_collection)); 472 collection_get_first(gqview_command_collection));
473 } 473 }
474 } 474 }
1378 collection_path_changed(cd); 1378 collection_path_changed(cd);
1379 1379
1380 work = cmd_list; 1380 work = cmd_list;
1381 while (work) 1381 while (work)
1382 { 1382 {
1383 collection_add(cd, (gchar *)work->data, FALSE); 1383 collection_add(cd, file_data_new_simple((gchar *)work->data), FALSE);
1384 work = work->next; 1384 work = work->next;
1385 } 1385 }
1386 1386
1387 work = collection_list; 1387 work = collection_list;
1388 while (work) 1388 while (work)