diff options
Diffstat (limited to 'meta/recipes-sato/pcmanfm')
-rw-r--r-- | meta/recipes-sato/pcmanfm/files/cross-compile-fix.patch | 16 | ||||
-rw-r--r-- | meta/recipes-sato/pcmanfm/files/emblem-symbolic-link.png | bin | 0 -> 999 bytes | |||
-rw-r--r-- | meta/recipes-sato/pcmanfm/files/gnome-fs-directory.png | bin | 0 -> 2044 bytes | |||
-rw-r--r-- | meta/recipes-sato/pcmanfm/files/gnome-fs-regular.png | bin | 0 -> 3220 bytes | |||
-rw-r--r-- | meta/recipes-sato/pcmanfm/files/gnome-mime-text-plain.png | bin | 0 -> 2855 bytes | |||
-rw-r--r-- | meta/recipes-sato/pcmanfm/files/owl-window-menu.patch | 80 | ||||
-rw-r--r-- | meta/recipes-sato/pcmanfm/pcmanfm_0.9.7.bb | 35 |
7 files changed, 131 insertions, 0 deletions
diff --git a/meta/recipes-sato/pcmanfm/files/cross-compile-fix.patch b/meta/recipes-sato/pcmanfm/files/cross-compile-fix.patch new file mode 100644 index 0000000000..2f654a5fb6 --- /dev/null +++ b/meta/recipes-sato/pcmanfm/files/cross-compile-fix.patch | |||
@@ -0,0 +1,16 @@ | |||
1 | pcmanfm need a binary xml-purge(from its own source code) to optimize size of | ||
2 | data file, which cause build error on cross-compile environment. Simplely | ||
3 | remove it to work aound this issue. | ||
4 | |||
5 | Signed-off-by: Zhai Edwin <edwin.zhai@intel.com> | ||
6 | |||
7 | Index: pcmanfm-0.9.7/data/ui/Makefile.am | ||
8 | =================================================================== | ||
9 | --- pcmanfm-0.9.7.orig/data/ui/Makefile.am 2010-07-29 15:10:18.000000000 +0800 | ||
10 | +++ pcmanfm-0.9.7/data/ui/Makefile.am 2010-07-29 15:11:24.000000000 +0800 | ||
11 | @@ -21,4 +21,4 @@ | ||
12 | # Purge GtkBuilder UI files | ||
13 | %.ui: %.glade | ||
14 | cp $< $@ | ||
15 | - $(top_builddir)/src/xml-purge $@ | ||
16 | +# $(top_builddir)/src/xml-purge $@ | ||
diff --git a/meta/recipes-sato/pcmanfm/files/emblem-symbolic-link.png b/meta/recipes-sato/pcmanfm/files/emblem-symbolic-link.png new file mode 100644 index 0000000000..b8e559456e --- /dev/null +++ b/meta/recipes-sato/pcmanfm/files/emblem-symbolic-link.png | |||
Binary files differ | |||
diff --git a/meta/recipes-sato/pcmanfm/files/gnome-fs-directory.png b/meta/recipes-sato/pcmanfm/files/gnome-fs-directory.png new file mode 100644 index 0000000000..05921a6689 --- /dev/null +++ b/meta/recipes-sato/pcmanfm/files/gnome-fs-directory.png | |||
Binary files differ | |||
diff --git a/meta/recipes-sato/pcmanfm/files/gnome-fs-regular.png b/meta/recipes-sato/pcmanfm/files/gnome-fs-regular.png new file mode 100644 index 0000000000..ce77a8e62d --- /dev/null +++ b/meta/recipes-sato/pcmanfm/files/gnome-fs-regular.png | |||
Binary files differ | |||
diff --git a/meta/recipes-sato/pcmanfm/files/gnome-mime-text-plain.png b/meta/recipes-sato/pcmanfm/files/gnome-mime-text-plain.png new file mode 100644 index 0000000000..bfe4bad56c --- /dev/null +++ b/meta/recipes-sato/pcmanfm/files/gnome-mime-text-plain.png | |||
Binary files differ | |||
diff --git a/meta/recipes-sato/pcmanfm/files/owl-window-menu.patch b/meta/recipes-sato/pcmanfm/files/owl-window-menu.patch new file mode 100644 index 0000000000..f3d4e61a22 --- /dev/null +++ b/meta/recipes-sato/pcmanfm/files/owl-window-menu.patch | |||
@@ -0,0 +1,80 @@ | |||
1 | 0.9.7 use a new menu bar from gtk_ui_manager, so need a translation here to | ||
2 | enable owl menu | ||
3 | |||
4 | Signed-off-by: Zhai Edwin <edwin.zhai@intel.com> | ||
5 | |||
6 | Index: pcmanfm-0.9.7/configure.ac | ||
7 | =================================================================== | ||
8 | --- pcmanfm-0.9.7.orig/configure.ac 2010-07-27 10:28:12.000000000 +0800 | ||
9 | +++ pcmanfm-0.9.7/configure.ac 2010-07-27 18:03:42.000000000 +0800 | ||
10 | @@ -70,6 +70,8 @@ | ||
11 | |||
12 | gtk_modules="gtk+-2.0 >= 2.16.0" | ||
13 | PKG_CHECK_MODULES(GTK, [$gtk_modules]) | ||
14 | +OWL_LIBS="-lowl" | ||
15 | +GTK_LIBS="$GTK_LIBS $OWL_LIBS" | ||
16 | AC_SUBST(GTK_CFLAGS) | ||
17 | AC_SUBST(GTK_LIBS) | ||
18 | |||
19 | Index: pcmanfm-0.9.7/src/main-win.c | ||
20 | =================================================================== | ||
21 | --- pcmanfm-0.9.7.orig/src/main-win.c 2010-07-27 10:56:08.000000000 +0800 | ||
22 | +++ pcmanfm-0.9.7/src/main-win.c 2010-07-27 17:28:59.000000000 +0800 | ||
23 | @@ -36,6 +36,8 @@ | ||
24 | #include "main-win.h" | ||
25 | #include "pref.h" | ||
26 | |||
27 | +#include "libowl/owlwindowmenu.h" | ||
28 | + | ||
29 | static void fm_main_win_finalize (GObject *object); | ||
30 | G_DEFINE_TYPE(FmMainWin, fm_main_win, GTK_TYPE_WINDOW); | ||
31 | |||
32 | @@ -466,9 +468,27 @@ | ||
33 | fm_main_win_chdir(win, path); | ||
34 | } | ||
35 | |||
36 | +/* Transfer gtk_ui_manager menubar to gtk menubar */ | ||
37 | +static GtkWidget * ui_menubar_to_menu(GtkWidget *menubar) | ||
38 | +{ | ||
39 | + GtkWidget *main_menu; | ||
40 | + GList *iter; | ||
41 | + | ||
42 | + main_menu = gtk_menu_new(); | ||
43 | + | ||
44 | + for ( iter = gtk_container_get_children(GTK_CONTAINER(menubar)); | ||
45 | + iter; | ||
46 | + iter = g_list_next(iter) ) | ||
47 | + { | ||
48 | + GtkWidget *menu = GTK_WIDGET(iter->data); | ||
49 | + gtk_widget_reparent(menu, main_menu); | ||
50 | + } | ||
51 | + return main_menu; | ||
52 | +} | ||
53 | + | ||
54 | static void fm_main_win_init(FmMainWin *self) | ||
55 | { | ||
56 | - GtkWidget *vbox, *menubar, *toolitem, *scroll; | ||
57 | + GtkWidget *vbox, *menubar, *owl_menubar, *toolitem, *scroll; | ||
58 | GtkUIManager* ui; | ||
59 | GtkActionGroup* act_grp; | ||
60 | GtkAction* act; | ||
61 | @@ -537,7 +557,6 @@ | ||
62 | |||
63 | self->popup = gtk_ui_manager_get_widget(ui, "/popup"); | ||
64 | |||
65 | - gtk_box_pack_start( (GtkBox*)vbox, menubar, FALSE, TRUE, 0 ); | ||
66 | gtk_box_pack_start( (GtkBox*)vbox, self->toolbar, FALSE, TRUE, 0 ); | ||
67 | |||
68 | /* load bookmarks menu */ | ||
69 | @@ -586,6 +605,11 @@ | ||
70 | gtk_container_add( (GtkContainer*)self, vbox ); | ||
71 | gtk_widget_show_all(vbox); | ||
72 | |||
73 | + owl_menubar = ui_menubar_to_menu(menubar); | ||
74 | + gtk_widget_show_all (owl_menubar); | ||
75 | + owl_set_window_menu (GTK_WINDOW(self), | ||
76 | + GTK_MENU(owl_menubar)); | ||
77 | + | ||
78 | /* create new tab */ | ||
79 | fm_main_win_add_tab(self, fm_path_get_home()); | ||
80 | gtk_widget_grab_focus(self->folder_view); | ||
diff --git a/meta/recipes-sato/pcmanfm/pcmanfm_0.9.7.bb b/meta/recipes-sato/pcmanfm/pcmanfm_0.9.7.bb new file mode 100644 index 0000000000..46e46da685 --- /dev/null +++ b/meta/recipes-sato/pcmanfm/pcmanfm_0.9.7.bb | |||
@@ -0,0 +1,35 @@ | |||
1 | DESCRIPTION = "Fast lightweight tabbed filemanager" | ||
2 | HOMEPAGE = "http://pcmanfm.sourceforge.net/" | ||
3 | BUGTRACKER = "" | ||
4 | |||
5 | LICENSE = "GPLv2 & GPLv2+ & LGPLv2.1+" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \ | ||
7 | file://src/pcmanfm.h;endline=22;md5=417b3855771a3a87f8ad753d994491f0 \ | ||
8 | file://src/gseal-gtk-compat.h;endline=21;md5=46922c8691f58d124f9420fe16149ce2" | ||
9 | |||
10 | SECTION = "x11" | ||
11 | PRIORITY = "optional" | ||
12 | DEPENDS = "gtk+ startup-notification libfm" | ||
13 | DEPENDS_append_poky = " libowl" | ||
14 | |||
15 | PR = "r0" | ||
16 | |||
17 | COMPATIBLE_HOST = '(x86_64.*|i.86.*|arm.*|mips.*|powerpc.*)-(linux|freebsd.*)' | ||
18 | |||
19 | SRC_URI = "${SOURCEFORGE_MIRROR}/pcmanfm/pcmanfm-${PV}.tar.gz \ | ||
20 | file://gnome-fs-directory.png \ | ||
21 | file://gnome-fs-regular.png \ | ||
22 | file://gnome-mime-text-plain.png \ | ||
23 | file://emblem-symbolic-link.png \ | ||
24 | file://cross-compile-fix.patch" | ||
25 | |||
26 | SRC_URI_append_poky = " file://owl-window-menu.patch;patch=1" | ||
27 | |||
28 | inherit autotools pkgconfig | ||
29 | |||
30 | do_install_append () { | ||
31 | install -d ${D}/${datadir} | ||
32 | install -d ${D}/${datadir}/pixmaps/ | ||
33 | |||
34 | install -m 0644 ${WORKDIR}/*.png ${D}/${datadir}/pixmaps | ||
35 | } | ||