diff options
author | 2002-08-31 14:27:41 +0000 | |
---|---|---|
committer | 2002-08-31 14:27:41 +0000 | |
commit | 5e4a4fc3836d5e70e03e18cb94036d91c562dbbe (patch) | |
tree | 3f757985f215ce36194968f7c95891f380c81cad /Gui/mplayer/widgets.c | |
parent | e9105a9b644bd3b11adf962ed31711ea98ef0732 (diff) |
enable linewrapping
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7199 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'Gui/mplayer/widgets.c')
-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: |