opie-console 1.2.1: CVS backported patch for OPIE bug #1647
authorMarcin Juszkiewicz <hrw@openembedded.org>
Tue, 18 Oct 2005 14:04:01 +0000 (14:04 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Tue, 18 Oct 2005 14:04:01 +0000 (14:04 +0000)
- Opie-console doesn't respect scroll-bar on left side.

packages/opie-console/opie-console-1.2.1/1647-bugfix.patch [new file with mode: 0644]
packages/opie-console/opie-console_1.2.1.bb

diff --git a/packages/opie-console/opie-console-1.2.1/1647-bugfix.patch b/packages/opie-console/opie-console-1.2.1/1647-bugfix.patch
new file mode 100644 (file)
index 0000000..c460333
--- /dev/null
@@ -0,0 +1,40 @@
+Index: opie-console/TEWidget.cpp
+===================================================================
+RCS file: /cvs/opie/noncore/apps/opie-console/TEWidget.cpp,v
+retrieving revision 1.13
+retrieving revision 1.14
+diff -u -u -r1.13 -r1.14
+--- opie-console/TEWidget.cpp  21 Jan 2005 19:56:17 -0000      1.13
++++ opie-console/TEWidget.cpp  18 Oct 2005 13:56:12 -0000      1.14
+@@ -320,16 +320,21 @@
+   Config cfg("Konsole");
+   cfg.setGroup("ScrollBar");
+-  switch( cfg.readNumEntry("Position",2)){
+-  case 0:
+-      scrollLoc = SCRNONE;
+-      break;
+-  case 1:
+-      scrollLoc = SCRLEFT;
+-      break;
+-  case 2:
+-      scrollLoc = SCRRIGHT;
+-      break;
++  
++  scrollLoc = cfg.readNumEntry("Position", -1);
++
++  // bugfix for #1647
++  // if user set 'show scrollbar on left' then let it be on left
++  // but only if it is not set in opie-console itself
++  if(scrollLoc == -1)
++  {
++      Config qpecfg ("qpe");
++      qpecfg.setGroup("Appearance");
++      scrollLoc = qpecfg.readNumEntry("LeftHand", SCRRIGHT);
++      if(scrollLoc == 0)    // user set LeftHand in past and switched it off later
++      {
++        scrollLoc = SCRRIGHT;
++      }
+   };
+   blinkT   = new QTimer(this);
index 10399d9..b9ba9e0 100644 (file)
@@ -1,8 +1,9 @@
 include ${PN}.inc
 
-PR = "r1"
+PR = "r2"
 
 SRC_URI = "${HANDHELDS_CVS};tag=${TAG};module=opie/noncore/apps/${APPNAME} \
            ${HANDHELDS_CVS};tag=${TAG};module=opie/pics \
            ${HANDHELDS_CVS};tag=${TAG};module=opie/apps \
-          file://1686-bugfix.patch;patch=1"
+          file://1686-bugfix.patch;patch=1 \
+          file://1647-bugfix.patch;patch=1"