diff options
| author | Constantin Musca <constantinx.musca@intel.com> | 2012-12-24 10:34:26 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-01-07 11:09:39 +0000 |
| commit | 102c97b1c2b00ec75aa94c17542616ba7d6581ba (patch) | |
| tree | 4acdbebf95df45532cd09359430869e150477e10 /meta/recipes-sato/pcmanfm | |
| parent | f6f5382afabfd789d0bad9be16a52c59959f238a (diff) | |
| download | poky-102c97b1c2b00ec75aa94c17542616ba7d6581ba.tar.gz | |
pcmanfm: upgrade to 1.1.0
pcmanfm_fix_for_automake_1.12.patch: removed
- problem not reprodicible anymore
owl-window-menu.patch: removed
- not needed anymore
(From OE-Core rev: 14fb53c398d7ce5d33c221655643ec51c3a92a6f)
Signed-off-by: Constantin Musca <constantinx.musca@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-sato/pcmanfm')
| -rw-r--r-- | meta/recipes-sato/pcmanfm/files/owl-window-menu.patch | 81 | ||||
| -rw-r--r-- | meta/recipes-sato/pcmanfm/files/pcmanfm_fix_for_automake_1.12.patch | 35 | ||||
| -rw-r--r-- | meta/recipes-sato/pcmanfm/pcmanfm_1.1.0.bb (renamed from meta/recipes-sato/pcmanfm/pcmanfm_0.9.10.bb) | 11 |
3 files changed, 4 insertions, 123 deletions
diff --git a/meta/recipes-sato/pcmanfm/files/owl-window-menu.patch b/meta/recipes-sato/pcmanfm/files/owl-window-menu.patch deleted file mode 100644 index 88b154e5cb..0000000000 --- a/meta/recipes-sato/pcmanfm/files/owl-window-menu.patch +++ /dev/null | |||
| @@ -1,81 +0,0 @@ | |||
| 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 | Upstream-Status: Inappropriate [enable feature] | ||
| 7 | |||
| 8 | Index: pcmanfm-0.9.9/configure.ac | ||
| 9 | =================================================================== | ||
| 10 | --- pcmanfm-0.9.9.orig/configure.ac 2011-08-10 05:28:31.000000000 +0800 | ||
| 11 | +++ pcmanfm-0.9.9/configure.ac 2011-10-10 15:47:33.000000000 +0800 | ||
| 12 | @@ -70,6 +70,8 @@ | ||
| 13 | |||
| 14 | gtk_modules="gtk+-2.0 >= 2.16.0" | ||
| 15 | PKG_CHECK_MODULES(GTK, [$gtk_modules]) | ||
| 16 | +OWL_LIBS="-lowl" | ||
| 17 | +GTK_LIBS="$GTK_LIBS $OWL_LIBS" | ||
| 18 | AC_SUBST(GTK_CFLAGS) | ||
| 19 | AC_SUBST(GTK_LIBS) | ||
| 20 | |||
| 21 | Index: pcmanfm-0.9.9/src/main-win.c | ||
| 22 | =================================================================== | ||
| 23 | --- pcmanfm-0.9.9.orig/src/main-win.c 2011-08-10 05:28:32.000000000 +0800 | ||
| 24 | +++ pcmanfm-0.9.9/src/main-win.c 2011-10-10 15:50:48.000000000 +0800 | ||
| 25 | @@ -37,6 +37,8 @@ | ||
| 26 | #include "pref.h" | ||
| 27 | #include "tab-page.h" | ||
| 28 | |||
| 29 | +#include "libowl/owlwindowmenu.h" | ||
| 30 | + | ||
| 31 | static void fm_main_win_finalize (GObject *object); | ||
| 32 | G_DEFINE_TYPE(FmMainWin, fm_main_win, GTK_TYPE_WINDOW); | ||
| 33 | |||
| 34 | @@ -400,9 +402,27 @@ | ||
| 35 | } | ||
| 36 | } | ||
| 37 | |||
| 38 | +/* Transfer gtk_ui_manager menubar to gtk menubar */ | ||
| 39 | +static GtkWidget * ui_menubar_to_menu(GtkWidget *menubar) | ||
| 40 | +{ | ||
| 41 | + GtkWidget *main_menu; | ||
| 42 | + GList *iter; | ||
| 43 | + | ||
| 44 | + main_menu = gtk_menu_new(); | ||
| 45 | + | ||
| 46 | + for ( iter = gtk_container_get_children(GTK_CONTAINER(menubar)); | ||
| 47 | + iter; | ||
| 48 | + iter = g_list_next(iter) ) | ||
| 49 | + { | ||
| 50 | + GtkWidget *menu = GTK_WIDGET(iter->data); | ||
| 51 | + gtk_widget_reparent(menu, main_menu); | ||
| 52 | + } | ||
| 53 | + return main_menu; | ||
| 54 | +} | ||
| 55 | + | ||
| 56 | static void fm_main_win_init(FmMainWin *win) | ||
| 57 | { | ||
| 58 | - GtkWidget *vbox, *menubar, *toolitem, *btn; | ||
| 59 | + GtkWidget *vbox, *menubar, *owl_menubar, *toolitem, *btn; | ||
| 60 | GtkUIManager* ui; | ||
| 61 | GtkActionGroup* act_grp; | ||
| 62 | GtkAction* act; | ||
| 63 | @@ -456,7 +476,6 @@ | ||
| 64 | win->popup = gtk_ui_manager_get_widget(ui, "/popup"); | ||
| 65 | gtk_menu_attach_to_widget(GTK_WIDGET(win->popup), win, NULL); | ||
| 66 | |||
| 67 | - gtk_box_pack_start( (GtkBox*)vbox, menubar, FALSE, TRUE, 0 ); | ||
| 68 | gtk_box_pack_start( (GtkBox*)vbox, win->toolbar, FALSE, TRUE, 0 ); | ||
| 69 | |||
| 70 | /* load bookmarks menu */ | ||
| 71 | @@ -517,6 +536,10 @@ | ||
| 72 | |||
| 73 | gtk_container_add( (GtkContainer*)win, vbox ); | ||
| 74 | gtk_widget_show_all(vbox); | ||
| 75 | + | ||
| 76 | + owl_menubar = ui_menubar_to_menu(menubar); | ||
| 77 | + gtk_widget_show_all(owl_menubar); | ||
| 78 | + owl_set_window_menu(GTK_WINDOW(win), GTK_MENU(owl_menubar)); | ||
| 79 | } | ||
| 80 | |||
| 81 | |||
diff --git a/meta/recipes-sato/pcmanfm/files/pcmanfm_fix_for_automake_1.12.patch b/meta/recipes-sato/pcmanfm/files/pcmanfm_fix_for_automake_1.12.patch deleted file mode 100644 index 1ad0ff5d13..0000000000 --- a/meta/recipes-sato/pcmanfm/files/pcmanfm_fix_for_automake_1.12.patch +++ /dev/null | |||
| @@ -1,35 +0,0 @@ | |||
| 1 | Upstream-Status: Pending | ||
| 2 | |||
| 3 | Fix these errors: | ||
| 4 | | automake: warnings are treated as errors | ||
| 5 | | data/ui/Makefile.am:18: warning: '%'-style pattern rules are a GNU make extension | ||
| 6 | | src/Makefile.am:10: warning: compiling 'pcmanfm.c' with per-target flags requires 'AM_PROG_CC_C_O' in 'configure.ac' | ||
| 7 | | autoreconf: automake failed with exit status: 1 | ||
| 8 | | ERROR: autoreconf execution failed. | ||
| 9 | Signed-Off-By: Nitin A Kamble <nitin.a.kamble@Intel.com> | ||
| 10 | 2012/07/09 | ||
| 11 | |||
| 12 | Index: pcmanfm-0.9.10/configure.ac | ||
| 13 | =================================================================== | ||
| 14 | --- pcmanfm-0.9.10.orig/configure.ac | ||
| 15 | +++ pcmanfm-0.9.10/configure.ac | ||
| 16 | @@ -13,6 +13,7 @@ AC_PROG_CC | ||
| 17 | AM_PROG_LIBTOOL | ||
| 18 | AM_PROG_CC_STDC | ||
| 19 | AC_HEADER_STDC | ||
| 20 | +AM_PROG_CC_C_O | ||
| 21 | |||
| 22 | # Checks for header files. | ||
| 23 | AC_HEADER_STDC | ||
| 24 | Index: pcmanfm-0.9.10/data/ui/Makefile.am | ||
| 25 | =================================================================== | ||
| 26 | --- pcmanfm-0.9.10.orig/data/ui/Makefile.am | ||
| 27 | +++ pcmanfm-0.9.10/data/ui/Makefile.am | ||
| 28 | @@ -15,6 +15,6 @@ EXTRA_DIST = \ | ||
| 29 | $(NULL) | ||
| 30 | |||
| 31 | # Purge GtkBuilder UI files | ||
| 32 | -%.ui: %.glade | ||
| 33 | +.glade.ui: | ||
| 34 | cp $< $@ | ||
| 35 | # $(top_builddir)/src/xml-purge $@ | ||
diff --git a/meta/recipes-sato/pcmanfm/pcmanfm_0.9.10.bb b/meta/recipes-sato/pcmanfm/pcmanfm_1.1.0.bb index 1780764104..bcfc9db08b 100644 --- a/meta/recipes-sato/pcmanfm/pcmanfm_0.9.10.bb +++ b/meta/recipes-sato/pcmanfm/pcmanfm_1.1.0.bb | |||
| @@ -11,7 +11,7 @@ SECTION = "x11" | |||
| 11 | DEPENDS = "gtk+ startup-notification libfm" | 11 | DEPENDS = "gtk+ startup-notification libfm" |
| 12 | DEPENDS_append_poky = " libowl" | 12 | DEPENDS_append_poky = " libowl" |
| 13 | 13 | ||
| 14 | PR = "r1" | 14 | PR = "r0" |
| 15 | 15 | ||
| 16 | COMPATIBLE_HOST = '(x86_64.*|i.86.*|aarch64.*|arm.*|mips.*|powerpc.*|sh.*)-(linux|freebsd.*)' | 16 | COMPATIBLE_HOST = '(x86_64.*|i.86.*|aarch64.*|arm.*|mips.*|powerpc.*|sh.*)-(linux|freebsd.*)' |
| 17 | 17 | ||
| @@ -20,13 +20,10 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/pcmanfm/pcmanfm-${PV}.tar.gz \ | |||
| 20 | file://gnome-fs-regular.png \ | 20 | file://gnome-fs-regular.png \ |
| 21 | file://gnome-mime-text-plain.png \ | 21 | file://gnome-mime-text-plain.png \ |
| 22 | file://emblem-symbolic-link.png \ | 22 | file://emblem-symbolic-link.png \ |
| 23 | file://cross-compile-fix.patch \ | 23 | file://cross-compile-fix.patch" |
| 24 | file://pcmanfm_fix_for_automake_1.12.patch" | ||
| 25 | 24 | ||
| 26 | SRC_URI_append_poky = " file://owl-window-menu.patch" | 25 | SRC_URI[md5sum] = "af0cff78690e658f3c06ceabf27bc71a" |
| 27 | 26 | SRC_URI[sha256sum] = "1f6301f330ad648f3322708ec6c0f680a8695a9453932fe19653bab6731e5582" | |
| 28 | SRC_URI[md5sum] = "d34a3530a6c5dcd674d23021d71c3e95" | ||
| 29 | SRC_URI[sha256sum] = "f133c6f207f719d1fc69fe8bc07b2de6883c6937ffa87448df42e3b1a30e0298" | ||
| 30 | 27 | ||
| 31 | inherit autotools pkgconfig | 28 | inherit autotools pkgconfig |
| 32 | 29 | ||
