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)); }