aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-08-31 14:27:41 +0000
committerGravatar alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-08-31 14:27:41 +0000
commit5e4a4fc3836d5e70e03e18cb94036d91c562dbbe (patch)
tree3f757985f215ce36194968f7c95891f380c81cad
parente9105a9b644bd3b11adf962ed31711ea98ef0732 (diff)
enable linewrapping
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7199 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--Gui/mplayer/widgets.c6
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: