# HG changeset patch # User Christian Hammond # Date 1064909673 0 # Node ID faddd59a0e74ba0d64da8fcfca314663d3dd8da6 # Parent 71e0da45abe66b9de2bc05a417e47a5e0b251c73 [gaim-migrate @ 7632] Make some of the request dialogs more pretty, and increase the size for the multi-line input dialog. committer: Tailor Script diff -r 71e0da45abe6 -r faddd59a0e74 src/gtkrequest.c --- a/src/gtkrequest.c Tue Sep 30 08:08:34 2003 +0000 +++ b/src/gtkrequest.c Tue Sep 30 08:14:33 2003 +0000 @@ -28,6 +28,7 @@ #include "gtkrequest.h" #include "gtkutils.h" #include "stock.h" +#include "ui.h" #ifdef USE_GTKSPELL # include @@ -264,8 +265,10 @@ /* Descriptive label */ label_text = g_strdup_printf("" - "%s\n\n%s", - primary, (secondary ? secondary : "")); + "%s%s%s", + primary, + (secondary ? "\n\n" : ""), + (secondary ? secondary : "")); label = gtk_label_new(NULL); @@ -288,12 +291,13 @@ gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(sw), GTK_SHADOW_IN); - gtk_widget_set_size_request(sw, 300, 75); + gtk_widget_set_size_request(sw, 320, 130); gtk_box_pack_start(GTK_BOX(vbox), sw, TRUE, TRUE, 0); entry = gtk_text_view_new(); gtk_text_view_set_editable(GTK_TEXT_VIEW(entry), TRUE); + gtk_text_view_set_wrap_mode(GTK_TEXT_VIEW(entry), GTK_WRAP_WORD_CHAR); #ifdef USE_GTKSPELL if (gaim_prefs_get_bool("/gaim/gtk/conversations/spellcheck")) @@ -412,8 +416,10 @@ /* Descriptive label */ label_text = g_strdup_printf("" - "%s\n\n%s", - primary, (secondary ? secondary : "")); + "%s%s%s", + primary, + (secondary ? "\n\n" : ""), + (secondary ? secondary : "")); label = gtk_label_new(NULL); @@ -498,8 +504,9 @@ if (primary != NULL || secondary != NULL) { label_text = g_strdup_printf("" - "%s\n\n%s", + "%s%s%s", (primary ? primary : ""), + (secondary ? "\n\n" : ""), (secondary ? secondary : "")); label = gtk_label_new(NULL); @@ -630,6 +637,8 @@ textview = gtk_text_view_new(); gtk_text_view_set_editable(GTK_TEXT_VIEW(textview), TRUE); + gtk_text_view_set_wrap_mode(GTK_TEXT_VIEW(textview), + GTK_WRAP_WORD_CHAR); #ifdef USE_GTKSPELL if (gaim_prefs_get_bool(