From 36f84fb0f195cdace5ee4cf0f4e985bad7465cc4 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Wed, 26 Jan 2011 01:30:20 +0000 Subject: [PATCH] Also implemented copying the selection to the clipboard (not used yet) --- src/ghtml-webkit.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/ghtml-webkit.c b/src/ghtml-webkit.c index 65f7d18..43389e8 100644 --- a/src/ghtml-webkit.c +++ b/src/ghtml-webkit.c @@ -1,5 +1,5 @@ /* $Id$ */ -/* Copyright (c) 2010 Pierre Pronchery */ +/* Copyright (c) 2011 Pierre Pronchery */ /* This file is part of DeforaOS Desktop Surfer */ /* This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -13,7 +13,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ /* FIXME - * - implement copy/cut/paste */ + * - implement cut/paste */ @@ -353,9 +353,12 @@ int ghtml_set_proxy(GtkWidget * widget, SurferProxyType type, char const * http, /* useful */ /* ghtml_copy */ -void ghtml_copy(GtkWidget * ghtml) +void ghtml_copy(GtkWidget * widget) { - /* FIXME implement */ + GHtml * ghtml; + + ghtml = g_object_get_data(G_OBJECT(widget), "ghtml"); + webkit_web_view_copy_clipboard(WEBKIT_WEB_VIEW(ghtml->view)); }