changeset 7198:9d21564cfc37

enable linewrapping
author alex
date Sat, 31 Aug 2002 14:27:41 +0000
parents c36333ff54b0
children 9e201175b78c
files Gui/mplayer/widgets.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Gui/mplayer/widgets.c	Sat Aug 31 14:19:11 2002 +0000
+++ b/Gui/mplayer/widgets.c	Sat Aug 31 14:27:41 2002 +0000
@@ -127,6 +127,12 @@
  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: