summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorZhai Edwin <edwin.zhai@intel.com>2010-07-07 18:21:49 +0800
committerRichard Purdie <rpurdie@linux.intel.com>2010-07-13 15:21:44 +0100
commitbb2c55765b53db6e971419db7230514e9f7482cc (patch)
treec2048475bd5063027c7d8cd3401e0b6dc2ead9d0 /meta
parent73914a8190ec2fe49e60f710a03ce3af253aca4b (diff)
downloadpoky-bb2c55765b53db6e971419db7230514e9f7482cc.tar.gz
pcmanfm: Update to 0.5
latest pcmanfm(0.9.7) separate the core functionality to create an independent library named libfm, which is not in poky repo. To keep it simple, just update to stable release 0.5. Also updated some of the patches. Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
Diffstat (limited to 'meta')
-rw-r--r--meta/packages/pcmanfm/files/desktop.patch19
-rw-r--r--meta/packages/pcmanfm/files/no-warnings.patch53
-rw-r--r--meta/packages/pcmanfm/files/owl-window-menu.patch58
-rw-r--r--meta/packages/pcmanfm/pcmanfm_0.5.bb (renamed from meta/packages/pcmanfm/pcmanfm_0.3.2.2.bb)5
4 files changed, 77 insertions, 58 deletions
diff --git a/meta/packages/pcmanfm/files/desktop.patch b/meta/packages/pcmanfm/files/desktop.patch
index 1806cc2b90..93cdd87035 100644
--- a/meta/packages/pcmanfm/files/desktop.patch
+++ b/meta/packages/pcmanfm/files/desktop.patch
@@ -1,12 +1,15 @@
1--- pcmanfm-0.3.2-beta/pcmanfm.desktop.in.old 2006-09-25 11:43:07.000000000 +0100 1Index: pcmanfm-0.5/pcmanfm.desktop.in
2+++ pcmanfm-0.3.2-beta/pcmanfm.desktop.in 2006-09-25 11:44:59.000000000 +0100 2===================================================================
3@@ -1,7 +1,6 @@ 3--- pcmanfm-0.5.orig/pcmanfm.desktop.in
4+++ pcmanfm-0.5/pcmanfm.desktop.in
5@@ -1,8 +1,7 @@
4 [Desktop Entry] 6 [Desktop Entry]
5-Categories=Application;System;Utility;Core;GTK; 7 Version=1.0
6+Categories=System;Utility;Core;GTK;
7-Encoding=UTF-8 8-Encoding=UTF-8
8-Name=PCMan File Manager 9-Name=PCMan File Manager
10-Categories=Application;System;Utility;Core;GTK;
9+Name=File Manager 11+Name=File Manager
10 Name[zh_TW]=PCMan 檔案管理程式 12+Categories=System;Utility;Core;GTK;
11 Name[pl]=Przeglądarka plików z zakładkami 13 Name[zh_TW]=檔案總管
12 Exec=pcmanfm %f 14 Exec=pcmanfm %F
15 Icon=pcmanfm
diff --git a/meta/packages/pcmanfm/files/no-warnings.patch b/meta/packages/pcmanfm/files/no-warnings.patch
index 2e0d92bd7b..b1570a0d98 100644
--- a/meta/packages/pcmanfm/files/no-warnings.patch
+++ b/meta/packages/pcmanfm/files/no-warnings.patch
@@ -1,47 +1,60 @@
1--- pcmanfm-0.3.2-beta/src/main.c.old 2006-09-25 11:51:51.000000000 +0100 1Index: pcmanfm-0.5/src/main.c
2+++ pcmanfm-0.3.2-beta/src/main.c 2006-09-25 11:51:55.000000000 +0100 2===================================================================
3@@ -173,7 +173,7 @@ 3--- pcmanfm-0.5.orig/src/main.c
4+++ pcmanfm-0.5/src/main.c
5@@ -118,7 +118,7 @@
6
7 static void init_folder();
8 static void init_daemon_or_desktop();
9-static void check_icon_theme();
10+/*static void check_icon_theme();*/
11
12 static gboolean handle_parsed_commandline_args();
13
14@@ -322,7 +322,7 @@
4 gtk_widget_show ( GTK_WIDGET( main_window ) ); 15 gtk_widget_show ( GTK_WIDGET( main_window ) );
5 return main_window; 16 return main_window;
6 } 17 }
7- 18-
8+#if 0 19+#if 0
9 static void check_icon_theme() 20 void check_icon_theme()
10 { 21 {
11 GtkSettings * settings; 22 GtkSettings * settings;
12@@ -212,7 +212,7 @@ 23@@ -361,7 +361,7 @@
13 } 24 }
14 g_free( theme ); 25 g_free( theme );
15 } 26 }
16- 27-
17+#endif 28+#endif
18 int 29 #ifdef _DEBUG_THREAD
19 main ( int argc, char *argv[] ) 30
20 { 31 G_LOCK_DEFINE(gdk_lock);
21@@ -274,7 +274,7 @@ 32@@ -405,7 +405,7 @@
22 vfs_file_info_set_thumbnail_size( appSettings.bigIconSize, 33 vfs_file_info_set_thumbnail_size( app_settings.big_icon_size,
23 appSettings.smallIconSize ); 34 app_settings.small_icon_size );
24 35
25- check_icon_theme(); 36- check_icon_theme();
26+/* check_icon_theme();*/ 37+/* check_icon_theme();*/
38 folder_initialized = TRUE;
39 }
27 40
28 if( appSettings.showDesktop ) 41Index: pcmanfm-0.5/src/main-window.c
29 fm_desktop_init(); 42===================================================================
30--- pcmanfm-0.3.2-beta/src/main-window.c.old 2006-09-25 11:47:45.000000000 +0100 43--- pcmanfm-0.5.orig/src/main-window.c
31+++ pcmanfm-0.3.2-beta/src/main-window.c 2006-09-25 11:50:32.000000000 +0100 44+++ pcmanfm-0.5/src/main-window.c
32@@ -496,6 +496,7 @@ 45@@ -633,6 +633,7 @@
33 gtk_window_add_accel_group ( GTK_WINDOW ( main_window ), main_window->accel_group );
34 gtk_widget_grab_focus ( GTK_WIDGET( main_window->address_bar ) ); 46 gtk_widget_grab_focus ( GTK_WIDGET( main_window->address_bar ) );
35 47
48 #ifdef SUPER_USER_CHECKS
36+#if 0 49+#if 0
37 /* Create warning bar for super user */ 50 /* Create warning bar for super user */
38 if ( geteuid() == 0 ) /* Run as super user! */ 51 if ( geteuid() == 0 ) /* Run as super user! */
39 { 52 {
40@@ -510,6 +511,7 @@ 53@@ -648,6 +649,7 @@
41 gtk_box_pack_start ( GTK_BOX ( main_window->main_vbox ),
42 main_window->status_bar, FALSE, FALSE, 2 ); 54 main_window->status_bar, FALSE, FALSE, 2 );
43 } 55 }
56 #endif
44+#endif 57+#endif
45 58
46 /* Create client area */ 59 /* Create client area */
47 main_window->notebook = GTK_NOTEBOOK( gtk_notebook_new () ); 60 main_window->notebook = gtk_notebook_new();
diff --git a/meta/packages/pcmanfm/files/owl-window-menu.patch b/meta/packages/pcmanfm/files/owl-window-menu.patch
index 7db68f4b12..d11140cf42 100644
--- a/meta/packages/pcmanfm/files/owl-window-menu.patch
+++ b/meta/packages/pcmanfm/files/owl-window-menu.patch
@@ -1,26 +1,26 @@
1Index: pcmanfm-0.3.2-beta/configure.in 1Index: pcmanfm-0.5/configure.in
2=================================================================== 2===================================================================
3--- pcmanfm-0.3.2-beta.orig/configure.in 2007-04-26 09:09:33.000000000 +0100 3--- pcmanfm-0.5.orig/configure.in
4+++ pcmanfm-0.3.2-beta/configure.in 2007-04-26 09:12:41.000000000 +0100 4+++ pcmanfm-0.5/configure.in
5@@ -15,6 +15,12 @@ 5@@ -25,6 +25,12 @@
6 libstartup-notification-1.0" 6 gtk_modules="gtk+-2.0 >= 2.6.0 \
7 7 gthread-2.0"
8 PKG_CHECK_MODULES(PACKAGE, [$pkg_modules]) 8 PKG_CHECK_MODULES(GTK, [$gtk_modules])
9+ 9+
10+OWL_CFLAGS="" 10+OWL_CFLAGS=""
11+OWL_LIBS="-lowl" 11+OWL_LIBS="-lowl"
12+PACKAGE_CFLAGS="$PACKAGE_CFLAGS $OWL_CFLAGS" 12+GTK_CFLAGS="$GTK_CFLAGS $OWL_CFLAGS"
13+PACKAGE_LIBS="$PACKAGE_LIBS $OWL_LIBS" 13+GTK_LIBS="$GTK_LIBS $OWL_LIBS"
14+ 14+
15 AC_SUBST(PACKAGE_CFLAGS) 15 AC_SUBST(GTK_CFLAGS)
16 AC_SUBST(PACKAGE_LIBS) 16 AC_SUBST(GTK_LIBS)
17 17
18Index: pcmanfm-0.3.2-beta/src/main-window.c 18Index: pcmanfm-0.5/src/main-window.c
19=================================================================== 19===================================================================
20--- pcmanfm-0.3.2-beta.orig/src/main-window.c 2007-04-26 09:09:15.000000000 +0100 20--- pcmanfm-0.5.orig/src/main-window.c
21+++ pcmanfm-0.3.2-beta/src/main-window.c 2007-04-26 09:10:51.000000000 +0100 21+++ pcmanfm-0.5/src/main-window.c
22@@ -414,9 +414,7 @@ 22@@ -534,9 +534,7 @@
23 main_window->splitter_pos = appSettings.splitterPos; 23 main_window->splitter_pos = app_settings.splitter_pos;
24 24
25 /* Create menu bar */ 25 /* Create menu bar */
26- main_window->menu_bar = gtk_menu_bar_new (); 26- main_window->menu_bar = gtk_menu_bar_new ();
@@ -29,23 +29,23 @@ Index: pcmanfm-0.3.2-beta/src/main-window.c
29+ main_window->menu_bar = gtk_menu_new (); 29+ main_window->menu_bar = gtk_menu_new ();
30 30
31 main_window->accel_group = gtk_accel_group_new (); 31 main_window->accel_group = gtk_accel_group_new ();
32 fm_side_pane_menu[ 0 ].ret = ( GtkWidget** ) & main_window->open_side_pane_menu; 32 fm_side_pane_menu[ 0 ].ret = ( GtkWidget** ) (GtkWidget*) & main_window->open_side_pane_menu;
33Index: pcmanfm-0.3.2-beta/src/main.c 33Index: pcmanfm-0.5/src/main.c
34=================================================================== 34===================================================================
35--- pcmanfm-0.3.2-beta.orig/src/main.c 2007-04-26 09:09:15.000000000 +0100 35--- pcmanfm-0.5.orig/src/main.c
36+++ pcmanfm-0.3.2-beta/src/main.c 2007-04-26 09:21:40.000000000 +0100 36+++ pcmanfm-0.5/src/main.c
37@@ -32,6 +32,8 @@ 37@@ -48,6 +48,8 @@
38 #include "glade-support.h" 38
39 #include "settings.h" 39 #include "desktop.h"
40 40
41+#include "libowl/owlwindowmenu.h" 41+#include "libowl/owlwindowmenu.h"
42+ 42+
43 static char* init_path = NULL; 43 typedef enum{
44 44 CMD_OPEN = 1,
45 static int sock; 45 CMD_OPEN_TAB,
46@@ -171,6 +173,10 @@ 46@@ -320,6 +322,10 @@
47 gtk_window_set_default_size( GTK_WINDOW( main_window ), 47 gtk_window_maximize( GTK_WINDOW( main_window ) );
48 appSettings.width, appSettings.height ); 48 }
49 gtk_widget_show ( GTK_WIDGET( main_window ) ); 49 gtk_widget_show ( GTK_WIDGET( main_window ) );
50+ gtk_widget_show_all (main_window->menu_bar); 50+ gtk_widget_show_all (main_window->menu_bar);
51+ owl_set_window_menu (GTK_WINDOW(main_window), 51+ owl_set_window_menu (GTK_WINDOW(main_window),
diff --git a/meta/packages/pcmanfm/pcmanfm_0.3.2.2.bb b/meta/packages/pcmanfm/pcmanfm_0.5.bb
index 0576c32f53..e253d79fba 100644
--- a/meta/packages/pcmanfm/pcmanfm_0.3.2.2.bb
+++ b/meta/packages/pcmanfm/pcmanfm_0.5.bb
@@ -3,13 +3,16 @@ HOMEPAGE = "http://pcmanfm.sourceforge.net/"
3BUGTRACKER = "" 3BUGTRACKER = ""
4 4
5LICENSE = "GPLv2 & GPLv2+ & LGPLv2.1+" 5LICENSE = "GPLv2 & GPLv2+ & LGPLv2.1+"
6LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \
7 file://src/pcmanfm.h;endline=22;md5=0fa9129ee918f493e573154f6ec43fb7 \
8 file://src/find-files.c;endline=26;md5=9a92e8f329c97de94e90976a37dde5a5"
6 9
7SECTION = "x11" 10SECTION = "x11"
8PRIORITY = "optional" 11PRIORITY = "optional"
9DEPENDS = "gtk+ startup-notification" 12DEPENDS = "gtk+ startup-notification"
10DEPENDS_append_poky = " libowl" 13DEPENDS_append_poky = " libowl"
11 14
12PR = "r5" 15PR = "r0"
13 16
14COMPATIBLE_HOST = '(x86_64|i.86.*|arm.*|mips.*|powerpc.*)-(linux|freebsd.*)' 17COMPATIBLE_HOST = '(x86_64|i.86.*|arm.*|mips.*|powerpc.*)-(linux|freebsd.*)'
15 18