[hackers] [surf] using geturi() where possible. || Enno Boland (tox)

From: <hg_AT_suckless.org>
Date: Wed, 21 Oct 2009 08:04:27 +0000 (UTC)

changeset: 152:fd6fe6ef50f5
tag: tip
user: Enno Boland (tox) <tox_AT_s01.de>
date: Wed Oct 21 10:06:55 2009 +0200
files: surf.c
description:
using geturi() where possible.

diff -r 3b6140c7b3c2 -r fd6fe6ef50f5 surf.c
--- a/surf.c Wed Oct 21 10:06:21 2009 +0200
+++ b/surf.c Wed Oct 21 10:06:55 2009 +0200
@@ -79,6 +79,7 @@
 static void download(WebKitDownload *o, GParamSpec *pspec, Client *c);
 static void drawindicator(Client *c);
 static gboolean exposeindicator(GtkWidget *w, GdkEventExpose *e, Client *c);
+static char *geturi(Client *c);
 static const char *getatom(Client *c, Atom a);
 static gboolean initdownload(WebKitWebView *v, WebKitDownload *o, Client *c);
 static void itemclick(GtkMenuItem *mi, Client *c);
@@ -175,7 +176,7 @@
         if(paste)
                 gtk_clipboard_request_text(gtk_clipboard_get(GDK_SELECTION_PRIMARY), pasteuri, c);
         else
- gtk_clipboard_set_text(gtk_clipboard_get(GDK_SELECTION_PRIMARY), webkit_web_view_get_uri(c->view), -1);
+ gtk_clipboard_set_text(gtk_clipboard_get(GDK_SELECTION_PRIMARY), geturi(c), -1);
 }
 
 void
@@ -388,7 +389,7 @@
 
 void
 loadcommit(WebKitWebView *view, WebKitWebFrame *f, Client *c) {
- setatom(c, uriprop, webkit_web_view_get_uri(c->view));
+ setatom(c, uriprop, geturi(c));
         reloadcookies();
 }
 
Received on Wed Oct 21 2009 - 08:04:27 UTC

This archive was generated by hypermail 2.2.0 : Wed Oct 21 2009 - 08:12:06 UTC