[mythtv] [PATCH] MythNews -> starting browser with correct zoom

Neil Bryden neilbryden at mail.com
Sat Jun 5 19:38:23 EDT 2004


This patch fixes the launching of mythbrowser from MythNews so that it
uses the zoom level (and WebBrowserCommand) specified in Setup.


Index: mythnews.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythnews/mythnews/mythnews.cpp,v
retrieving revision 1.10
diff -u -r1.10 mythnews.cpp
--- mythnews.cpp        10 Apr 2004 18:12:42 -0000      1.10
+++ mythnews.cpp        31 May 2004 12:42:38 -0000
@@ -536,6 +536,12 @@

      if (articleUIItem && articleUIItem->getData())
          article = (NewsArticle*) articleUIItem->getData();
-    if(article)
-        myth_system( QString( "mythbrowser
%1").arg(article->articleURL()));
+       if(article)
+       {
+               QString cmd = gContext->GetSetting("WebBrowserCommand",
PREFIX "/bin/mythbrowser");
+               QString zoom = QString(" -z %1
").arg(gContext->GetNumSetting("WebBrowserZoomLevel",200));
+               cmd += zoom;
+               cmd += article->articleURL();
+               myth_system( cmd );
+       }
  }


Best Regards,
Neil.



More information about the mythtv-dev mailing list