# HG changeset patch # User Daniel Atallah # Date 1186714314 0 # Node ID 0a8dc9eb4f8e692034b834ff908c143032fb5d35 # Parent c1546f6c04328411c22335daeb36bdab2661b41e Allow notification labels to be selectable (for copy-and-paste purposes). Fixes #563. diff -r c1546f6c0432 -r 0a8dc9eb4f8e pidgin/gtknotify.c --- a/pidgin/gtknotify.c Fri Aug 10 01:29:48 2007 +0000 +++ b/pidgin/gtknotify.c Fri Aug 10 02:51:54 2007 +0000 @@ -274,6 +274,7 @@ gtk_label_set_markup(GTK_LABEL(label), label_text); gtk_label_set_line_wrap(GTK_LABEL(label), TRUE); + gtk_label_set_selectable(GTK_LABEL(label), TRUE); gtk_misc_set_alignment(GTK_MISC(label), 0, 0); gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0); @@ -609,6 +610,7 @@ gtk_label_set_markup(GTK_LABEL(label), label_text); gtk_label_set_line_wrap(GTK_LABEL(label), TRUE); + gtk_label_set_selectable(GTK_LABEL(label), TRUE); gtk_misc_set_alignment(GTK_MISC(label), 0, 0); gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0); gtk_widget_show(label); @@ -626,6 +628,7 @@ button = gtk_button_new_from_stock(GTK_STOCK_CLOSE); gtk_box_pack_start(GTK_BOX(vbox), button, FALSE, FALSE, 0); gtk_widget_show(button); + gtk_widget_grab_focus(button); g_signal_connect_swapped(G_OBJECT(button), "clicked", G_CALLBACK(gtk_widget_destroy), window);