Implemented one more callback in the popup menu
This commit is contained in:
parent
09322a0282
commit
8037461bbb
@ -1098,7 +1098,16 @@ static void _context_menu_separator(GtkWidget * menu, gboolean * separator)
|
||||
/* on_copy_link_location */
|
||||
static void _on_copy_link_location(gpointer data)
|
||||
{
|
||||
/* FIXME implement */
|
||||
GHtml * ghtml = data;
|
||||
GdkAtom * atom;
|
||||
GtkClipboard * clipboard;
|
||||
|
||||
/* we can ignore errors */
|
||||
atom = gdk_atom_intern ("CLIPBOARD", FALSE);
|
||||
clipboard = gtk_clipboard_get(atom);
|
||||
gtk_clipboard_set_text(clipboard, ghtml->popup_uri, -1);
|
||||
free(ghtml->popup_uri);
|
||||
ghtml->popup_uri = NULL;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user