From 5e4a4fc3836d5e70e03e18cb94036d91c562dbbe Mon Sep 17 00:00:00 2001 From: alex Date: Sat, 31 Aug 2002 14:27:41 +0000 Subject: enable linewrapping git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7199 b3059339-0415-0410-9bf9-f77b7e298cf2 --- Gui/mplayer/widgets.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Gui') diff --git a/Gui/mplayer/widgets.c b/Gui/mplayer/widgets.c index 96b4dff59a..81ab285246 100644 --- a/Gui/mplayer/widgets.c +++ b/Gui/mplayer/widgets.c @@ -127,6 +127,12 @@ void gtkMessageBox( int type,gchar * str ) if ( !gtkInited ) return; ShowMessageBox( str ); gtk_label_set_text( GTK_LABEL( gtkMessageBoxText ),str ); + /* enable linewrapping by alex */ +// GTK_LABEL(gtkMessageBoxText)->max_width = 80; + if (strlen(str) > 80) + gtk_label_set_line_wrap(GTK_LABEL(gtkMessageBoxText), TRUE); + else + gtk_label_set_line_wrap(GTK_LABEL(gtkMessageBoxText), FALSE); switch( type) { case GTK_MB_FATAL: -- cgit v1.2.3