Date:2010-08-03 14:11:28 (8 years 9 months ago)
Author:bartbes
Commit:d1208dfcc54f19d51b736b4d7ec9db7ba87a7604
Message:gmenu2x: Fixed file explorer/dialog

Files: gmenu2x/Makefile (1 diff)
gmenu2x/patches/001-filedialog.patch (1 diff)

Change Details

gmenu2x/Makefile
1010PKG_NAME:=gmenu2x
1111PKG_VERSION:=20100222
1212PKG_REV:= 745321edf9101688ac1ffe3a0bff5773f08b36db
13PKG_RELEASE:=4
13PKG_RELEASE:=5
1414
1515PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
1616PKG_SOURCE_URL:=git://projects.qi-hardware.com/gmenu2x.git
gmenu2x/patches/001-filedialog.patch
1--- gmenu2x/src/filedialog.cpp 2010-08-03 12:18:26.000000000 +0200
2@@ -35,7 +35,7 @@
3     this->text = text;
4     this->filter = filter;
5     this->file = "";
6- setPath("/card");
7+ setPath("/");
8     title = "File Browser";
9     if (!file.empty()) {
10         string::size_type pos = file.rfind("/");
11@@ -50,7 +50,7 @@
12 bool FileDialog::exec() {
13     bool close = false, result = true, ts_pressed = false;
14     if (!fileExists(path()))
15- setPath("/card");
16+ setPath("/");
17
18     fl.setFilter(filter);
19     fl.browse();
20@@ -155,7 +155,7 @@
21             } break;
22             case FD_ACTION_GOUP: {
23                 string::size_type p = path().rfind("/");
24- if (p==string::npos || path().substr(0,11)!="/card" || p<4)
25+ if (p==string::npos || path().substr(0,11)!="/" || p<4)
26                     return false;
27                 else
28                     setPath( path().substr(0,p) );
29--- gmenu2x/src/gmenu2x.cpp 2010-08-03 13:55:31.000000000 +0200
30@@ -998,7 +998,7 @@
31 }
32
33 void GMenu2X::explorer() {
34- FileDialog fd(this,tr["Select an application"],".gpu,.dge,.sh");
35+ FileDialog fd(this,tr["Select an application"],".gpu,.dge,.sh,");
36     if (fd.exec()) {
37         if (confInt["saveSelection"] && (confInt["section"]!=menu->selSectionIndex() || confInt["link"]!=menu->selLinkIndex()))
38             writeConfig();

Archive Download the corresponding diff file



interactive