diff options
Diffstat (limited to 'Gui')
-rw-r--r-- | Gui/mplayer/widgets.c | 6 |
1 files changed, 6 insertions, 0 deletions
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: |