Gitweb links:
...log
http://git.netsurf-browser.org/netsurf.git/shortlog/7dee82d900864b6b73dd3...
...commit
http://git.netsurf-browser.org/netsurf.git/commit/7dee82d900864b6b73dd31b...
...tree
http://git.netsurf-browser.org/netsurf.git/tree/7dee82d900864b6b73dd31b48...
The branch, master has been updated
via 7dee82d900864b6b73dd31b481c37dfa46a2cacc (commit)
via 86134d9881cfce266fcd21587917016b0afe25dd (commit)
from 25f9610d036f643de5537309b6482e3f56ff53ef (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=7dee82d900864b6b73d...
commit 7dee82d900864b6b73dd31b481c37dfa46a2cacc
Author: Vincent Sanders <vince(a)kyllikki.org>
Commit: Vincent Sanders <vince(a)kyllikki.org>
remove unused computed rectangle in gtk local hostory redraw
diff --git a/frontends/gtk/local_history.c b/frontends/gtk/local_history.c
index db13aa4..650cb4f 100644
--- a/frontends/gtk/local_history.c
+++ b/frontends/gtk/local_history.c
@@ -111,24 +111,9 @@ nsgtk_local_history_draw(struct nsgtk_corewindow *nsgtk_cw, struct
rect *r)
.plot = &nsgtk_plotters
};
struct nsgtk_local_history_window *lhw;
- GtkAdjustment *vscroll;
- GtkAdjustment *hscroll;
- struct rect c;
- int vscroll_val;
- int hscroll_val;
-
- vscroll = gtk_scrolled_window_get_vadjustment(nsgtk_cw->scrolled);
- hscroll = gtk_scrolled_window_get_hadjustment(nsgtk_cw->scrolled);
- vscroll_val = gtk_adjustment_get_value(vscroll);
- hscroll_val = gtk_adjustment_get_value(hscroll);
-
/* technically degenerate container of */
lhw = (struct nsgtk_local_history_window *)nsgtk_cw;
- c.x0 = r->x0 + hscroll_val;
- c.y0 = r->y0 + vscroll_val;
- c.x1 = r->x1 + hscroll_val;
- c.y1 = r->y1 + vscroll_val;
ctx.plot->clip(&ctx, r);
local_history_redraw(lhw->session, r->x0, r->y0, r, &ctx);
commitdiff
http://git.netsurf-browser.org/netsurf.git/commit/?id=86134d9881cfce266fc...
commit 86134d9881cfce266fcd21587917016b0afe25dd
Author: Vincent Sanders <vince(a)kyllikki.org>
Commit: Vincent Sanders <vince(a)kyllikki.org>
add local history destruction for gtk
diff --git a/frontends/gtk/gui.c b/frontends/gtk/gui.c
index 8d6b422..63646b4 100644
--- a/frontends/gtk/gui.c
+++ b/frontends/gtk/gui.c
@@ -58,6 +58,7 @@
#include "gtk/download.h"
#include "gtk/fetch.h"
#include "gtk/gui.h"
+#include "gtk/local_history.h"
#include "gtk/global_history.h"
#include "gtk/hotlist.h"
#include "gtk/throbber.h"
@@ -437,6 +438,12 @@ static void gui_quit(void)
messages_get_errorcode(res));
}
+ res = nsgtk_local_history_destroy();
+ if (res != NSERROR_OK) {
+ LOG("Error finalising local history viewer: %s",
+ messages_get_errorcode(res));
+ }
+
res = nsgtk_global_history_destroy();
if (res != NSERROR_OK) {
LOG("Error finalising global history viewer: %s",
-----------------------------------------------------------------------
Summary of changes:
frontends/gtk/gui.c | 7 +++++++
frontends/gtk/local_history.c | 15 ---------------
2 files changed, 7 insertions(+), 15 deletions(-)
diff --git a/frontends/gtk/gui.c b/frontends/gtk/gui.c
index 8d6b422..63646b4 100644
--- a/frontends/gtk/gui.c
+++ b/frontends/gtk/gui.c
@@ -58,6 +58,7 @@
#include "gtk/download.h"
#include "gtk/fetch.h"
#include "gtk/gui.h"
+#include "gtk/local_history.h"
#include "gtk/global_history.h"
#include "gtk/hotlist.h"
#include "gtk/throbber.h"
@@ -437,6 +438,12 @@ static void gui_quit(void)
messages_get_errorcode(res));
}
+ res = nsgtk_local_history_destroy();
+ if (res != NSERROR_OK) {
+ LOG("Error finalising local history viewer: %s",
+ messages_get_errorcode(res));
+ }
+
res = nsgtk_global_history_destroy();
if (res != NSERROR_OK) {
LOG("Error finalising global history viewer: %s",
diff --git a/frontends/gtk/local_history.c b/frontends/gtk/local_history.c
index db13aa4..650cb4f 100644
--- a/frontends/gtk/local_history.c
+++ b/frontends/gtk/local_history.c
@@ -111,24 +111,9 @@ nsgtk_local_history_draw(struct nsgtk_corewindow *nsgtk_cw, struct
rect *r)
.plot = &nsgtk_plotters
};
struct nsgtk_local_history_window *lhw;
- GtkAdjustment *vscroll;
- GtkAdjustment *hscroll;
- struct rect c;
- int vscroll_val;
- int hscroll_val;
-
- vscroll = gtk_scrolled_window_get_vadjustment(nsgtk_cw->scrolled);
- hscroll = gtk_scrolled_window_get_hadjustment(nsgtk_cw->scrolled);
- vscroll_val = gtk_adjustment_get_value(vscroll);
- hscroll_val = gtk_adjustment_get_value(hscroll);
-
/* technically degenerate container of */
lhw = (struct nsgtk_local_history_window *)nsgtk_cw;
- c.x0 = r->x0 + hscroll_val;
- c.y0 = r->y0 + vscroll_val;
- c.x1 = r->x1 + hscroll_val;
- c.y1 = r->y1 + vscroll_val;
ctx.plot->clip(&ctx, r);
local_history_redraw(lhw->session, r->x0, r->y0, r, &ctx);
--
NetSurf Browser