Mercurial > pidgin
comparison src/gtkimhtml.c @ 7742:6cd69aa58253
[gaim-migrate @ 8387]
This should most likely make selecting text in an IMHTML automatically copy
it. This might be a bad idea.
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Thu, 04 Dec 2003 08:27:15 +0000 |
parents | ddc450689c05 |
children | a5765980ea1e |
comparison
equal
deleted
inserted
replaced
7741:cbf4725c60aa | 7742:6cd69aa58253 |
---|---|
387 text = gtk_text_buffer_get_text(imhtml->text_buffer, &last, &end, FALSE); | 387 text = gtk_text_buffer_get_text(imhtml->text_buffer, &last, &end, FALSE); |
388 str = g_string_append(str, text); | 388 str = g_string_append(str, text); |
389 g_free(text); | 389 g_free(text); |
390 | 390 |
391 if (!gtk_text_iter_equal(&start, &last)) | 391 if (!gtk_text_iter_equal(&start, &last)) |
392 #infdef WIN32 | |
393 gtk_clipboard_set_text(gtk_widget_get_clipboard(GTK_WIDGET(imhtml), GDK_SELECTION_CLIPBOARD), | |
394 str->str, str->len); | |
395 #endif | |
392 gtk_clipboard_set_text(clipboard ? clipboard : | 396 gtk_clipboard_set_text(clipboard ? clipboard : |
393 gtk_widget_get_clipboard(GTK_WIDGET(imhtml), GDK_SELECTION_CLIPBOARD), | 397 gtk_widget_get_clipboard(GTK_WIDGET(imhtml), GDK_SELECTION_CLIPBOARD), |
394 str->str, str->len); | 398 str->str, str->len); |
399 | |
395 g_string_free(str, TRUE); | 400 g_string_free(str, TRUE); |
396 } | 401 } |
397 | 402 |
398 static gboolean button_release_cb(GtkIMHtml *imhtml, GdkEventButton event, gpointer the_foibles_of_man) | 403 static gboolean button_release_cb(GtkIMHtml *imhtml, GdkEventButton event, gpointer the_foibles_of_man) |
399 { | 404 { |