pinosaur
/
surf.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9708b64
)
preparing sourcecode feature coming with webkit-1.1.14.
author
Enno Boland (tox)
<tox@s01.de>
Wed, 9 Sep 2009 12:00:31 +0000
(14:00 +0200)
committer
Enno Boland (tox)
<tox@s01.de>
Wed, 9 Sep 2009 12:00:31 +0000
(14:00 +0200)
config.def.h
patch
|
blob
|
history
surf.c
patch
|
blob
|
history
diff --git
a/config.def.h
b/config.def.h
index
0e84f67
..
d47ef09
100644
(file)
--- a/
config.def.h
+++ b/
config.def.h
@@
-19,6
+19,7
@@
static Key keys[] = {
{ MODKEY, GDK_l, navigate, { .i = +1 }, BROWSER },
{ MODKEY, GDK_h, navigate, { .i = -1 }, BROWSER },
{ 0, GDK_Escape, stop, { 0 }, BROWSER },
{ MODKEY, GDK_l, navigate, { .i = +1 }, BROWSER },
{ MODKEY, GDK_h, navigate, { .i = -1 }, BROWSER },
{ 0, GDK_Escape, stop, { 0 }, BROWSER },
+ { MODKEY, GDK_o, source, { 0 }, BROWSER },
{ MODKEY, GDK_n, searchtext, { .b = TRUE }, BROWSER|SEARCHBAR },
{ MODKEY, GDK_N, searchtext, { .b = FALSE }, BROWSER|SEARCHBAR },
{ 0, GDK_Return, searchtext, { .b = TRUE }, SEARCHBAR },
{ MODKEY, GDK_n, searchtext, { .b = TRUE }, BROWSER|SEARCHBAR },
{ MODKEY, GDK_N, searchtext, { .b = FALSE }, BROWSER|SEARCHBAR },
{ 0, GDK_Return, searchtext, { .b = TRUE }, SEARCHBAR },
diff --git
a/surf.c
b/surf.c
index
deb916f
..
c0debf0
100644
(file)
--- a/
surf.c
+++ b/
surf.c
@@
-104,6
+104,7
@@
static void setup();
static void titlechange(WebKitWebView* view, WebKitWebFrame* frame,
const gchar* title, Client *c);
static void searchtext(Client *c, const Arg *arg);
static void titlechange(WebKitWebView* view, WebKitWebFrame* frame,
const gchar* title, Client *c);
static void searchtext(Client *c, const Arg *arg);
+static void source(Client *c, const Arg *arg);
static void showsearch(Client *c, const Arg *arg);
static void showurl(Client *c, const Arg *arg);
static void stop(Client *c, const Arg *arg);
static void showsearch(Client *c, const Arg *arg);
static void showurl(Client *c, const Arg *arg);
static void stop(Client *c, const Arg *arg);
@@
-547,6
+548,16
@@
showsearch(Client *c, const Arg *arg) {
gtk_widget_grab_focus(c->searchbar);
}
gtk_widget_grab_focus(c->searchbar);
}
+void
+source(Client *c, const Arg *arg) {
+ Arg a = { .b = FALSE };
+ /*gboolean s;
+
+ s = webkit_web_view_get_view_source_mode(c->view);
+ webkit_web_view_set_view_source_mode(c->view, c->source);*/
+ reload(c, &a);
+}
+
void
searchtext(Client *c, const Arg *arg) {
gboolean forward = *(gboolean *)arg;
void
searchtext(Client *c, const Arg *arg) {
gboolean forward = *(gboolean *)arg;