Browse Source

Dimitar Zhekov <jimmy@is-vn.bg>:

fixed xffm sig11 when clicking on some virtual lines
-- 
E-gards: Jimmy


git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@2329 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc
rocklinux
Dimitar Zhekov 21 years ago
parent
commit
1a95ffdaf2
1 changed files with 34 additions and 0 deletions
  1. +34
    -0
      package/xfce4/xffm/callback-isnull.patch

+ 34
- 0
package/xfce4/xffm/callback-isnull.patch

@ -0,0 +1,34 @@
--- ./src/callbacks.c.orig 2003-12-29 22:43:25.000000000 +0200
+++ ./src/callbacks.c 2004-02-01 16:11:44.000000000 +0200
@@ -581,19 +581,20 @@
if(gtk_tree_view_get_path_at_pos(treeview, event->x, event->y,
&treepath, NULL, NULL, NULL))
{
- gchar *readable_path;
gtk_tree_model_get_iter(treemodel, &iter, treepath);
-
gtk_tree_model_get(treemodel, &iter, ENTRY_COLUMN, &en, -1);
- readable_path=g_path_get_basename(en->path);
- if (IS_NETWORK_TYPE(en->type)&&!IS_SAMBA_SERVER(en->subtype))
- ascii_readable(readable_path);
- print_status_tmp(treeview, resolve_icon_small(en),
- readable_path,
- NULL);
- g_free(readable_path);
- readable_path=NULL;
- set_path_reference(treeview,treepath);
+ if (en->path)
+ {
+ gchar *readable_path=g_path_get_basename(en->path);
+ if (IS_NETWORK_TYPE(en->type)&&!IS_SAMBA_SERVER(en->subtype))
+ ascii_readable(readable_path);
+ print_status_tmp(treeview, resolve_icon_small(en),
+ readable_path,
+ NULL);
+ g_free(readable_path);
+ readable_path=NULL;
+ set_path_reference(treeview,treepath);
+ }
gtk_tree_path_free(treepath);
turn_on(treeview);

Loading…
Cancel
Save