From f617af4ea33371ff2ef3bd6535da961350e641fb Mon Sep 17 00:00:00 2001 From: Zhai Edwin Date: Mon, 10 Oct 2011 15:25:50 +0800 Subject: pcmanfm: Upgrade to 0.9.9 Update owl-window-menu.patch. (From OE-Core rev: 83ea07f8fb635a01dfe976ba0e518df282eef30d) Signed-off-by: Zhai Edwin Signed-off-by: Richard Purdie --- .../pcmanfm/files/owl-window-menu.patch | 53 +++++++++++----------- meta/recipes-sato/pcmanfm/pcmanfm_0.9.8.bb | 37 --------------- meta/recipes-sato/pcmanfm/pcmanfm_0.9.9.bb | 37 +++++++++++++++ 3 files changed, 63 insertions(+), 64 deletions(-) delete mode 100644 meta/recipes-sato/pcmanfm/pcmanfm_0.9.8.bb create mode 100644 meta/recipes-sato/pcmanfm/pcmanfm_0.9.9.bb (limited to 'meta/recipes-sato/pcmanfm') diff --git a/meta/recipes-sato/pcmanfm/files/owl-window-menu.patch b/meta/recipes-sato/pcmanfm/files/owl-window-menu.patch index 0826a16bc2..88b154e5cb 100644 --- a/meta/recipes-sato/pcmanfm/files/owl-window-menu.patch +++ b/meta/recipes-sato/pcmanfm/files/owl-window-menu.patch @@ -5,10 +5,10 @@ Signed-off-by: Zhai Edwin Upstream-Status: Inappropriate [enable feature] -Index: pcmanfm-0.9.7/configure.ac +Index: pcmanfm-0.9.9/configure.ac =================================================================== ---- pcmanfm-0.9.7.orig/configure.ac 2010-07-27 10:28:12.000000000 +0800 -+++ pcmanfm-0.9.7/configure.ac 2010-07-27 18:03:42.000000000 +0800 +--- pcmanfm-0.9.9.orig/configure.ac 2011-08-10 05:28:31.000000000 +0800 ++++ pcmanfm-0.9.9/configure.ac 2011-10-10 15:47:33.000000000 +0800 @@ -70,6 +70,8 @@ gtk_modules="gtk+-2.0 >= 2.16.0" @@ -18,21 +18,21 @@ Index: pcmanfm-0.9.7/configure.ac AC_SUBST(GTK_CFLAGS) AC_SUBST(GTK_LIBS) -Index: pcmanfm-0.9.7/src/main-win.c +Index: pcmanfm-0.9.9/src/main-win.c =================================================================== ---- pcmanfm-0.9.7.orig/src/main-win.c 2010-07-27 10:56:08.000000000 +0800 -+++ pcmanfm-0.9.7/src/main-win.c 2010-07-27 17:28:59.000000000 +0800 -@@ -36,6 +36,8 @@ - #include "main-win.h" +--- pcmanfm-0.9.9.orig/src/main-win.c 2011-08-10 05:28:32.000000000 +0800 ++++ pcmanfm-0.9.9/src/main-win.c 2011-10-10 15:50:48.000000000 +0800 +@@ -37,6 +37,8 @@ #include "pref.h" + #include "tab-page.h" +#include "libowl/owlwindowmenu.h" + static void fm_main_win_finalize (GObject *object); G_DEFINE_TYPE(FmMainWin, fm_main_win, GTK_TYPE_WINDOW); -@@ -466,9 +468,27 @@ - fm_main_win_chdir(win, path); +@@ -400,9 +402,27 @@ + } } +/* Transfer gtk_ui_manager menubar to gtk menubar */ @@ -53,30 +53,29 @@ Index: pcmanfm-0.9.7/src/main-win.c + return main_menu; +} + - static void fm_main_win_init(FmMainWin *self) + static void fm_main_win_init(FmMainWin *win) { -- GtkWidget *vbox, *menubar, *toolitem, *scroll; -+ GtkWidget *vbox, *menubar, *owl_menubar, *toolitem, *scroll; +- GtkWidget *vbox, *menubar, *toolitem, *btn; ++ GtkWidget *vbox, *menubar, *owl_menubar, *toolitem, *btn; GtkUIManager* ui; GtkActionGroup* act_grp; GtkAction* act; -@@ -537,7 +557,6 @@ - - self->popup = gtk_ui_manager_get_widget(ui, "/popup"); +@@ -456,7 +476,6 @@ + win->popup = gtk_ui_manager_get_widget(ui, "/popup"); + gtk_menu_attach_to_widget(GTK_WIDGET(win->popup), win, NULL); - gtk_box_pack_start( (GtkBox*)vbox, menubar, FALSE, TRUE, 0 ); - gtk_box_pack_start( (GtkBox*)vbox, self->toolbar, FALSE, TRUE, 0 ); + gtk_box_pack_start( (GtkBox*)vbox, win->toolbar, FALSE, TRUE, 0 ); /* load bookmarks menu */ -@@ -586,6 +605,11 @@ - gtk_container_add( (GtkContainer*)self, vbox ); - gtk_widget_show_all(vbox); +@@ -517,6 +536,10 @@ -+ owl_menubar = ui_menubar_to_menu(menubar); -+ gtk_widget_show_all (owl_menubar); -+ owl_set_window_menu (GTK_WINDOW(self), -+ GTK_MENU(owl_menubar)); + gtk_container_add( (GtkContainer*)win, vbox ); + gtk_widget_show_all(vbox); + - /* create new tab */ - fm_main_win_add_tab(self, fm_path_get_home()); - gtk_widget_grab_focus(self->folder_view); ++ owl_menubar = ui_menubar_to_menu(menubar); ++ gtk_widget_show_all(owl_menubar); ++ owl_set_window_menu(GTK_WINDOW(win), GTK_MENU(owl_menubar)); + } + + diff --git a/meta/recipes-sato/pcmanfm/pcmanfm_0.9.8.bb b/meta/recipes-sato/pcmanfm/pcmanfm_0.9.8.bb deleted file mode 100644 index f48bb67e2e..0000000000 --- a/meta/recipes-sato/pcmanfm/pcmanfm_0.9.8.bb +++ /dev/null @@ -1,37 +0,0 @@ -DESCRIPTION = "Fast lightweight tabbed filemanager" -HOMEPAGE = "http://pcmanfm.sourceforge.net/" -BUGTRACKER = "" - -LICENSE = "GPLv2 & GPLv2+ & LGPLv2.1+" -LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \ - file://src/pcmanfm.h;endline=22;md5=417b3855771a3a87f8ad753d994491f0 \ - file://src/gseal-gtk-compat.h;endline=21;md5=46922c8691f58d124f9420fe16149ce2" - -SECTION = "x11" -DEPENDS = "gtk+ startup-notification libfm" -DEPENDS_append_poky = " libowl" - -PR = "r1" - -COMPATIBLE_HOST = '(x86_64.*|i.86.*|arm.*|mips.*|powerpc.*)-(linux|freebsd.*)' - -SRC_URI = "${SOURCEFORGE_MIRROR}/pcmanfm/pcmanfm-${PV}.tar.gz \ - file://gnome-fs-directory.png \ - file://gnome-fs-regular.png \ - file://gnome-mime-text-plain.png \ - file://emblem-symbolic-link.png \ - file://cross-compile-fix.patch" - -SRC_URI_append_poky = " file://owl-window-menu.patch" - -SRC_URI[md5sum] = "4a7fdc0526ed14e3293d784c0ce27dea" -SRC_URI[sha256sum] = "a9335baf127d133da1b2873b3065545bd278fadd4b33e4b91e3d10b165961b68" - -inherit autotools pkgconfig - -do_install_append () { - install -d ${D}/${datadir} - install -d ${D}/${datadir}/pixmaps/ - - install -m 0644 ${WORKDIR}/*.png ${D}/${datadir}/pixmaps -} diff --git a/meta/recipes-sato/pcmanfm/pcmanfm_0.9.9.bb b/meta/recipes-sato/pcmanfm/pcmanfm_0.9.9.bb new file mode 100644 index 0000000000..af283f6cf8 --- /dev/null +++ b/meta/recipes-sato/pcmanfm/pcmanfm_0.9.9.bb @@ -0,0 +1,37 @@ +DESCRIPTION = "Fast lightweight tabbed filemanager" +HOMEPAGE = "http://pcmanfm.sourceforge.net/" +BUGTRACKER = "" + +LICENSE = "GPLv2 & GPLv2+ & LGPLv2.1+" +LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \ + file://src/pcmanfm.h;endline=22;md5=417b3855771a3a87f8ad753d994491f0 \ + file://src/gseal-gtk-compat.h;endline=21;md5=46922c8691f58d124f9420fe16149ce2" + +SECTION = "x11" +DEPENDS = "gtk+ startup-notification libfm" +DEPENDS_append_poky = " libowl" + +PR = "r0" + +COMPATIBLE_HOST = '(x86_64.*|i.86.*|arm.*|mips.*|powerpc.*)-(linux|freebsd.*)' + +SRC_URI = "${SOURCEFORGE_MIRROR}/pcmanfm/pcmanfm-${PV}.tar.gz \ + file://gnome-fs-directory.png \ + file://gnome-fs-regular.png \ + file://gnome-mime-text-plain.png \ + file://emblem-symbolic-link.png \ + file://cross-compile-fix.patch" + +SRC_URI_append_poky = " file://owl-window-menu.patch" + +SRC_URI[md5sum] = "f31ed6defb600f7046a456220d8efa3a" +SRC_URI[sha256sum] = "bc48af4ade638b47e4207cc274f6e38c2bd3786a811d20da47c3df9907c6fb6c" + +inherit autotools pkgconfig + +do_install_append () { + install -d ${D}/${datadir} + install -d ${D}/${datadir}/pixmaps/ + + install -m 0644 ${WORKDIR}/*.png ${D}/${datadir}/pixmaps +} -- cgit v1.2.3-54-g00ecf