Mercurial > mplayer.hg
diff gui/dialog/dialog.c @ 36694:eed2fb870f43
Rename symbolic constants of GUI help message texts.
Create a kind of GUI namespace and don't add place or kind of
usage to the name unless it's advantageous.
This reduces the amount of definitions as well.
Arrange them alphabetically.
author | ib |
---|---|
date | Wed, 05 Feb 2014 16:39:38 +0000 |
parents | cc70b0fb8d36 |
children | b28b632efeef |
line wrap: on
line diff
--- a/gui/dialog/dialog.c Wed Feb 05 16:03:44 2014 +0000 +++ b/gui/dialog/dialog.c Wed Feb 05 16:39:38 2014 +0000 @@ -96,7 +96,7 @@ g_object_unref(pixbuf); } else - mp_msg(MSGT_GPLAYER, MSGL_WARN, MSGTR_ICONERROR, guiIconName, size); + mp_msg(MSGT_GPLAYER, MSGL_WARN, MSGTR_GUI_MSG_IconError, guiIconName, size); /* start up GTK which realizes the pixmaps */ gtk_main_iteration_do(FALSE); @@ -135,7 +135,7 @@ env = getenv("G_FILENAME_ENCODING"); if ((!env && getenv("G_BROKEN_FILENAMES")) || (gstrncmp(env, "@locale", 7) == 0)) - mp_msg(MSGT_GPLAYER, MSGL_WARN, MSGTR_LOCALE_ENCODING); + mp_msg(MSGT_GPLAYER, MSGL_WARN, MSGTR_GUI_MSG_LocaleEncoding); #endif gtk_init(&argc, &argv); @@ -196,28 +196,28 @@ switch (type) { case MSGBOX_FATAL: - gtk_window_set_title(GTK_WINDOW(MessageBox), MSGTR_MSGBOX_LABEL_FatalError); + gtk_window_set_title(GTK_WINDOW(MessageBox), MSGTR_GUI_ErrorFatal); gtk_widget_hide(InformationPixmap); gtk_widget_hide(WarningPixmap); gtk_widget_show(ErrorPixmap); break; case MSGBOX_ERROR: - gtk_window_set_title(GTK_WINDOW(MessageBox), MSGTR_MSGBOX_LABEL_Error); + gtk_window_set_title(GTK_WINDOW(MessageBox), MSGTR_GUI_Error); gtk_widget_hide(InformationPixmap); gtk_widget_hide(WarningPixmap); gtk_widget_show(ErrorPixmap); break; case MSGBOX_WARNING: - gtk_window_set_title(GTK_WINDOW(MessageBox), MSGTR_MSGBOX_LABEL_Warning); + gtk_window_set_title(GTK_WINDOW(MessageBox), MSGTR_GUI_Warning); gtk_widget_hide(InformationPixmap); gtk_widget_show(WarningPixmap); gtk_widget_hide(ErrorPixmap); break; case MSGBOX_INFORMATION: - gtk_window_set_title(GTK_WINDOW(MessageBox), MSGTR_MSGBOX_LABEL_Information); + gtk_window_set_title(GTK_WINDOW(MessageBox), MSGTR_GUI_Information); gtk_widget_show(InformationPixmap); gtk_widget_hide(WarningPixmap); gtk_widget_hide(ErrorPixmap);