comparison src/gtkimhtml.c @ 5582:e2f2d8857f9f

[gaim-migrate @ 5986] (00:54:06) Robot101: fixes: (00:54:21) Robot101: "copy link location" on URL context menu (00:54:37) Robot101: leak of a GtkWindow and annoying dialog hinting of the signon meter window (00:55:06) Robot101: and the appending of even when you cancel the dialog in the convo window (00:55:07) Robot101: that's the lot committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Sat, 31 May 2003 04:55:24 +0000
parents fc0441fbf159
children 0a2a32b1917c
comparison
equal deleted inserted replaced
5581:3a9b54f260e3 5582:e2f2d8857f9f
292 292
293 g_object_unref(data->object); 293 g_object_unref(data->object);
294 g_free(data->url); 294 g_free(data->url);
295 g_free(data); 295 g_free(data);
296 } 296 }
297
297 static void url_copy(GtkWidget *w, gchar *url) { 298 static void url_copy(GtkWidget *w, gchar *url) {
298 GtkClipboard *clipboard; 299 GtkClipboard *clipboard;
299 300
300 clipboard = gtk_clipboard_get(GDK_SELECTION_PRIMARY); 301 clipboard = gtk_clipboard_get(GDK_SELECTION_PRIMARY);
302 gtk_clipboard_set_text(clipboard, url, -1);
303
304 clipboard = gtk_clipboard_get(GDK_SELECTION_CLIPBOARD);
301 gtk_clipboard_set_text(clipboard, url, -1); 305 gtk_clipboard_set_text(clipboard, url, -1);
302 } 306 }
303 307
304 /* The callback for an event on a link tag. */ 308 /* The callback for an event on a link tag. */
305 gboolean tag_event(GtkTextTag *tag, GObject *imhtml, GdkEvent *event, GtkTextIter *arg2, char *url) { 309 gboolean tag_event(GtkTextTag *tag, GObject *imhtml, GdkEvent *event, GtkTextIter *arg2, char *url) {