mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
1.2 KiB

  1. --- ./src/callbacks.c.orig 2003-12-29 22:43:25.000000000 +0200
  2. +++ ./src/callbacks.c 2004-02-01 16:11:44.000000000 +0200
  3. @@ -581,19 +581,20 @@
  4. if(gtk_tree_view_get_path_at_pos(treeview, event->x, event->y,
  5. &treepath, NULL, NULL, NULL))
  6. {
  7. - gchar *readable_path;
  8. gtk_tree_model_get_iter(treemodel, &iter, treepath);
  9. -
  10. gtk_tree_model_get(treemodel, &iter, ENTRY_COLUMN, &en, -1);
  11. - readable_path=g_path_get_basename(en->path);
  12. - if (IS_NETWORK_TYPE(en->type)&&!IS_SAMBA_SERVER(en->subtype))
  13. - ascii_readable(readable_path);
  14. - print_status_tmp(treeview, resolve_icon_small(en),
  15. - readable_path,
  16. - NULL);
  17. - g_free(readable_path);
  18. - readable_path=NULL;
  19. - set_path_reference(treeview,treepath);
  20. + if (en->path)
  21. + {
  22. + gchar *readable_path=g_path_get_basename(en->path);
  23. + if (IS_NETWORK_TYPE(en->type)&&!IS_SAMBA_SERVER(en->subtype))
  24. + ascii_readable(readable_path);
  25. + print_status_tmp(treeview, resolve_icon_small(en),
  26. + readable_path,
  27. + NULL);
  28. + g_free(readable_path);
  29. + readable_path=NULL;
  30. + set_path_reference(treeview,treepath);
  31. + }
  32. gtk_tree_path_free(treepath);
  33. turn_on(treeview);