From 228c2ff0c5fa7637a328eb682f069ca855fed149 Mon Sep 17 00:00:00 2001 From: Sven Neumann Date: Fri, 4 May 2007 14:54:46 +0000 Subject: [PATCH] make the tips label selectable. 2007-05-04 Sven Neumann * app/dialogs/tips-dialog.c: make the tips label selectable. svn path=/trunk/; revision=22416 --- ChangeLog | 4 ++++ app/dialogs/tips-dialog.c | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index 767bde7127..14a1f0bbfb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2007-05-04 Sven Neumann + + * app/dialogs/tips-dialog.c: make the tips label selectable. + 2007-05-04 Sven Neumann * plug-ins/script-fu/scripts/contactsheet.scm: added missing diff --git a/app/dialogs/tips-dialog.c b/app/dialogs/tips-dialog.c index 85d0fb49fb..6e843d9a91 100644 --- a/app/dialogs/tips-dialog.c +++ b/app/dialogs/tips-dialog.c @@ -159,12 +159,15 @@ tips_dialog_create (Gimp *gimp) gtk_box_pack_start (GTK_BOX (vbox2), welcome_label, FALSE, FALSE, 0); thetip_label = gtk_label_new (NULL); + gtk_label_set_selectable (GTK_LABEL (thetip_label), TRUE); gtk_label_set_justify (GTK_LABEL (thetip_label), GTK_JUSTIFY_LEFT); gtk_label_set_line_wrap (GTK_LABEL (thetip_label), TRUE); gtk_misc_set_alignment (GTK_MISC (thetip_label), 0.5, 0.5); gtk_box_pack_start (GTK_BOX (vbox2), thetip_label, TRUE, TRUE, 0); gtk_widget_show (thetip_label); + gtk_container_set_focus_chain (GTK_CONTAINER (vbox2), NULL); + vbox2 = gtk_vbox_new (FALSE, 0); gtk_box_pack_start (GTK_BOX (hbox), vbox2, FALSE, FALSE, 0); gtk_widget_show (vbox2); @@ -217,6 +220,8 @@ tips_dialog_create (Gimp *gimp) gtk_container_add (GTK_CONTAINER (bbox), button); gtk_widget_show (button); + gtk_widget_grab_focus (button); + g_signal_connect (button, "clicked", G_CALLBACK (tips_show_next), NULL);