wok view marlin/stuff/marlin-0.5.patch @ rev 16173
Add: ympd (web frontend for mpd - perfect for RPi audio center remote control from desktop or mobile
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Mar 30 16:39:01 2014 +0200 (2014-03-30) |
parents | |
children |
line source
1 # discussion: https://aur.archlinux.org/packages/marlin-bzr/
2 # patch found here: http://pastie.org/5189903
3 --- marlin-0.5/src/fm-directory-view.h
4 +++ marlin-0.5/src/fm-directory-view.h
5 @@ -42,6 +42,7 @@
6 typedef struct FMDirectoryView FMDirectoryView;
7 typedef struct FMDirectoryViewClass FMDirectoryViewClass;
9 +#define FM_DIRECTORY_TYPE_VIEW fm_directory_view_get_type()
10 #define FM_TYPE_DIRECTORY_VIEW fm_directory_view_get_type()
11 #define FM_DIRECTORY_VIEW(obj) \
12 (G_TYPE_CHECK_INSTANCE_CAST ((obj), FM_TYPE_DIRECTORY_VIEW, FMDirectoryView))
14 --- marlin-0.5/src/exo-icon-view.c
15 +++ marlin-0.5/src/exo-icon-view.c
16 @@ -4641,8 +4641,15 @@
17 item = list ? list->data : NULL;
19 /* Give focus to the first cell initially */
20 - exo_icon_view_set_cell_data (icon_view, item);
21 - gtk_cell_area_focus (icon_view->priv->cell_area, direction);
22 + if (item == NULL)
23 + {
24 + return;
25 + }
26 + else
27 + {
28 + exo_icon_view_set_cell_data (icon_view, item);
29 + gtk_cell_area_focus (icon_view->priv->cell_area, direction);
30 + }
31 }
32 else
33 {
34 @@ -4798,8 +4805,15 @@
35 item = list ? list->data : NULL;
37 /* Give focus to the first cell initially */
38 - exo_icon_view_set_cell_data (icon_view, item);
39 - gtk_cell_area_focus (icon_view->priv->cell_area, direction);
40 + if (item == NULL)
41 + {
42 + return;
43 + }
44 + else
45 + {
46 + exo_icon_view_set_cell_data (icon_view, item);
47 + gtk_cell_area_focus (icon_view->priv->cell_area, direction);
48 + }
49 }
50 else
51 {