[MPlayer-cvslog] r38093 - in trunk/gui/dialog: dialog.h menu.c msgbox.c

ib subversion at mplayerhq.hu
Fri Apr 13 17:08:24 EEST 2018


Author: ib
Date: Fri Apr 13 17:08:24 2018
New Revision: 38093

Log:
Replace three dots by an ellipsis.

Since the GUI's character encoding is UTF-8, it's time
for the remnants of ASCII times to finally disappear.

Modified:
   trunk/gui/dialog/dialog.h
   trunk/gui/dialog/menu.c
   trunk/gui/dialog/msgbox.c

Modified: trunk/gui/dialog/dialog.h
==============================================================================
--- trunk/gui/dialog/dialog.h	Fri Apr 13 16:55:24 2018	(r38092)
+++ trunk/gui/dialog/dialog.h	Fri Apr 13 17:08:24 2018	(r38093)
@@ -22,6 +22,8 @@
 #include <gtk/gtk.h>
 #include <X11/Xlib.h>
 
+#define ELLIPSIS "…"
+
 /// MessageBox types
 enum {
     MSGBOX_INFORMATION,

Modified: trunk/gui/dialog/menu.c
==============================================================================
--- trunk/gui/dialog/menu.c	Fri Apr 13 16:55:24 2018	(r38092)
+++ trunk/gui/dialog/menu.c	Fri Apr 13 17:08:24 2018	(r38093)
@@ -433,7 +433,7 @@ GtkWidget * CreatePopUpMenu( int wType )
   AddMenuItem( Menu, about_png, MSGTR_GUI_AboutMPlayer, evAbout );
   AddSeparator( Menu );
    SubMenu=AddSubMenu( Menu, open_png, MSGTR_GUI_Open );
-    AddMenuItem( SubMenu, file_png, MSGTR_GUI_File"...", evLoadPlay );
+    AddMenuItem( SubMenu, file_png, MSGTR_GUI_File ELLIPSIS, evLoadPlay );
 #ifdef CONFIG_CDDA
     AddMenuItem( SubMenu, cd_play_png, MSGTR_GUI_CD, evPlayCD );
     CDSubMenu=AddSubMenu( Menu, cd_png, MSGTR_GUI_CD );
@@ -516,16 +516,16 @@ GtkWidget * CreatePopUpMenu( int wType )
        }
 #endif
 #if defined(CONFIG_LIBCDIO) || defined(CONFIG_DVDREAD)
-    AddMenuItem( SubMenu, image_png, MSGTR_GUI_Image"...", evPlayImage );
+    AddMenuItem( SubMenu, image_png, MSGTR_GUI_Image ELLIPSIS, evPlayImage );
 #endif
-    AddMenuItem( SubMenu, url_png, MSGTR_GUI_URL"...", evLoadURL );
+    AddMenuItem( SubMenu, url_png, MSGTR_GUI_URL ELLIPSIS, evLoadURL );
 #ifdef CONFIG_TV
     AddMenuItem( SubMenu, tv_png, MSGTR_GUI_TV, evPlayTV );
 #endif
     AddSeparator( SubMenu );
-    D = AddMenuItem( SubMenu, audio_track_load_png, MSGTR_GUI_AudioTrack"...", evLoadAudioFile );
+    D = AddMenuItem( SubMenu, audio_track_load_png, MSGTR_GUI_AudioTrack ELLIPSIS, evLoadAudioFile );
     gtk_widget_set_sensitive( D, !guiInfo.Playing );
-    D = AddMenuItem( SubMenu, subtitle_load_png, MSGTR_GUI_Subtitle"...", evLoadSubtitle );
+    D = AddMenuItem( SubMenu, subtitle_load_png, MSGTR_GUI_Subtitle ELLIPSIS, evLoadSubtitle );
     gtk_widget_set_sensitive( D, !guiInfo.Playing );
    SubMenu=AddSubMenu( Menu, play_png, MSGTR_GUI_Playback );
     D = AddMenuItem( SubMenu, play_png, MSGTR_GUI_Play, evPlay );

Modified: trunk/gui/dialog/msgbox.c
==============================================================================
--- trunk/gui/dialog/msgbox.c	Fri Apr 13 16:55:24 2018	(r38092)
+++ trunk/gui/dialog/msgbox.c	Fri Apr 13 17:08:24 2018	(r38093)
@@ -54,7 +54,7 @@ static GtkWidget * CreateMessageBox( voi
 
  MessageBox=gtk_window_new( GTK_WINDOW_TOPLEVEL );
  gtk_widget_set_events( MessageBox,GDK_EXPOSURE_MASK | GDK_KEY_PRESS_MASK | GDK_KEY_RELEASE_MASK | GDK_VISIBILITY_NOTIFY_MASK );
- gtk_window_set_title( GTK_WINDOW( MessageBox ),"MPlayer ..." );
+ gtk_window_set_title( GTK_WINDOW( MessageBox ),"MPlayer " ELLIPSIS );
  gtk_window_set_position( GTK_WINDOW( MessageBox ),GTK_WIN_POS_CENTER );
  gtk_window_set_modal( GTK_WINDOW( MessageBox ),TRUE );
  gtk_window_set_policy( GTK_WINDOW( MessageBox ),FALSE,FALSE,TRUE );


More information about the MPlayer-cvslog mailing list