Gitweb links:
...log
http://git.netsurf-browser.org/netsurf.git/shortlog/d3493b138f38c9e26da24fcffb3ef8b813e3ca4e
...commit
http://git.netsurf-browser.org/netsurf.git/commit/d3493b138f38c9e26da24fcffb3ef8b813e3ca4e
...tree
http://git.netsurf-browser.org/netsurf.git/tree/d3493b138f38c9e26da24fcffb3ef8b813e3ca4e
The branch, master has been updated
via d3493b138f38c9e26da24fcffb3ef8b813e3ca4e (commit)
from 3b1992d3f4877ca5b543ecda1f242f6e6b12a016 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commitdiff
http://git.netsurf-browser.org/netsurf.git/commit/?id=d3493b138f38c9e26da24fcffb3ef8b813e3ca4e
commit d3493b138f38c9e26da24fcffb3ef8b813e3ca4e
Author: Daniel Silverstone <[email protected]>
Commit: Daniel Silverstone <[email protected]>
Initialise DPI earlier so that it works for treeviews
diff --git a/frontends/gtk/gui.c b/frontends/gtk/gui.c
index 8c9ad08..0f79a1b 100644
--- a/frontends/gtk/gui.c
+++ b/frontends/gtk/gui.c
@@ -287,6 +287,13 @@ static nserror nsgtk_init(int argc, char** argv, char
**respath)
/* Initialise completions - cannot fail */
nsgtk_completion_init();
+ /* The tree view system needs to know the screen's DPI, so we
+ * find that out here, rather than when we create a first browser
+ * window.
+ */
+ browser_set_dpi(gdk_screen_get_resolution(gdk_screen_get_default()));
+ NSLOG(netsurf, INFO, "Set CSS DPI to %d", browser_get_dpi());
+
filepath_sfinddef(respath, buf, "mime.types", "/etc/");
gtk_fetch_filetype_init(buf);
@@ -297,13 +304,6 @@ static nserror nsgtk_init(int argc, char** argv, char
**respath)
hotlist_init(nsoption_charp(hotlist_path),
nsoption_charp(hotlist_path));
- /* The tree view system needs to know the screen's DPI, so we
- * find that out here, rather than when we create a first browser
- * window.
- */
- browser_set_dpi(gdk_screen_get_resolution(gdk_screen_get_default()));
- NSLOG(netsurf, INFO, "Set CSS DPI to %d", browser_get_dpi());
-
/* Initialise top level UI elements */
error = nsgtk_download_init();
if (error != NSERROR_OK) {
-----------------------------------------------------------------------
Summary of changes:
frontends/gtk/gui.c | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/frontends/gtk/gui.c b/frontends/gtk/gui.c
index 8c9ad08..0f79a1b 100644
--- a/frontends/gtk/gui.c
+++ b/frontends/gtk/gui.c
@@ -287,6 +287,13 @@ static nserror nsgtk_init(int argc, char** argv, char
**respath)
/* Initialise completions - cannot fail */
nsgtk_completion_init();
+ /* The tree view system needs to know the screen's DPI, so we
+ * find that out here, rather than when we create a first browser
+ * window.
+ */
+ browser_set_dpi(gdk_screen_get_resolution(gdk_screen_get_default()));
+ NSLOG(netsurf, INFO, "Set CSS DPI to %d", browser_get_dpi());
+
filepath_sfinddef(respath, buf, "mime.types", "/etc/");
gtk_fetch_filetype_init(buf);
@@ -297,13 +304,6 @@ static nserror nsgtk_init(int argc, char** argv, char
**respath)
hotlist_init(nsoption_charp(hotlist_path),
nsoption_charp(hotlist_path));
- /* The tree view system needs to know the screen's DPI, so we
- * find that out here, rather than when we create a first browser
- * window.
- */
- browser_set_dpi(gdk_screen_get_resolution(gdk_screen_get_default()));
- NSLOG(netsurf, INFO, "Set CSS DPI to %d", browser_get_dpi());
-
/* Initialise top level UI elements */
error = nsgtk_download_init();
if (error != NSERROR_OK) {
--
NetSurf Browser
_______________________________________________
netsurf-commits mailing list
[email protected]
http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org