SF.net SVN: geany:[3969] trunk

eht16 at users.sourceforge.net eht16 at xxxxx
Tue Jul 14 18:49:31 UTC 2009


Revision: 3969
          http://geany.svn.sourceforge.net/geany/?rev=3969&view=rev
Author:   eht16
Date:     2009-07-14 18:49:31 +0000 (Tue, 14 Jul 2009)

Log Message:
-----------
Fix broken 'builtin' Run command for HTML files on Windows.

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/src/win32.c

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2009-07-14 18:45:22 UTC (rev 3968)
+++ trunk/ChangeLog	2009-07-14 18:49:31 UTC (rev 3969)
@@ -3,6 +3,8 @@
  * src/utils.c:
    Quote the uri before passing it to the browser when opening a
    website (closes #2818635).
+ * src/win32:
+   Fix broken 'builtin' Run command for HTML files on Windows.
 
 
 2009-07-14  Nick Treleaven  <nick(dot)treleaven(at)btinternet(dot)com>

Modified: trunk/src/win32.c
===================================================================
--- trunk/src/win32.c	2009-07-14 18:45:22 UTC (rev 3968)
+++ trunk/src/win32.c	2009-07-14 18:49:31 UTC (rev 3969)
@@ -643,6 +643,9 @@
 /* Just a simple wrapper function to open a browser window */
 void win32_open_browser(const gchar *uri)
 {
+	if (strncmp(uri, "file://", 7) == 0)
+		uri += 7;
+
 	ShellExecute(NULL, "open", uri, NULL, NULL, SW_SHOWNORMAL);
 }
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Commits mailing list