wok-6.x view marlin/stuff/marlin-0.5.patch @ rev 18741
Finish to remove redundant messages 'Processing * commands...'; KISS get-msttcorefonts; add get-msttcorefonts2
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Dec 25 15:23:46 2015 +0200 (2015-12-25) |
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 {