pinosaur
/
surf.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2c2a7b6
)
Adapt print()
author
Quentin Rameau
<quinq@fifth.space>
Thu, 19 Nov 2015 23:30:17 +0000
(
00:30
+0100)
committer
Quentin Rameau
<quinq@fifth.space>
Thu, 19 Nov 2015 23:34:23 +0000
(
00:34
+0100)
surf.c
patch
|
blob
|
history
diff --git
a/surf.c
b/surf.c
index
4251690
..
9444982
100644
(file)
--- a/
surf.c
+++ b/
surf.c
@@
-164,7
+164,7
@@
static void showview(WebKitWebView *v, Client *c);
static void newwindow(Client *c, const Arg *arg, gboolean noembed);
static GtkWidget *createwindow(Client *c);
static void pasteuri(GtkClipboard *clipboard, const char *text, gpointer d);
static void newwindow(Client *c, const Arg *arg, gboolean noembed);
static GtkWidget *createwindow(Client *c);
static void pasteuri(GtkClipboard *clipboard, const char *text, gpointer d);
-static void print(Client *c, const Arg *a
rg
);
+static void print(Client *c, const Arg *a);
static GdkFilterReturn processx(GdkXEvent *xevent, GdkEvent *event,
gpointer d);
static gboolean winevent(GtkWidget *w, GdkEvent *e, Client *c);
static GdkFilterReturn processx(GdkXEvent *xevent, GdkEvent *event,
gpointer d);
static gboolean winevent(GtkWidget *w, GdkEvent *e, Client *c);
@@
-1152,9
+1152,10
@@
pasteuri(GtkClipboard *clipboard, const char *text, gpointer d)
}
void
}
void
-print(Client *c, const Arg *a
rg
)
+print(Client *c, const Arg *a)
{
{
- webkit_web_frame_print(webkit_web_view_get_main_frame(c->view));
+ webkit_print_operation_run_dialog(webkit_print_operation_new(c->view),
+ GTK_WINDOW(c->win));
}
GdkFilterReturn
}
GdkFilterReturn