wok-6.x view marlin/stuff/marlin-0.5.patch @ rev 20824
updated dfu-util (0.8 -> 0.9)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Feb 19 15:12:19 2019 +0100 (2019-02-19) |
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 {