mirror of
https://github.com/mpv-player/mpv
synced 2024-12-16 03:45:23 +00:00
Fix return type of getGtkEntryText, it must be const
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25262 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
37235a01d9
commit
74be616f16
@ -1454,7 +1454,7 @@ GList *appendESDDevices(GList *l) {
|
|||||||
|
|
||||||
// Gets text string from a gtk entry, interpreting
|
// Gets text string from a gtk entry, interpreting
|
||||||
// MSGTR_PREFERENCES_DriverDefault as null string.
|
// MSGTR_PREFERENCES_DriverDefault as null string.
|
||||||
char *getGtkEntryText(GtkWidget *from) {
|
const char *getGtkEntryText(GtkWidget *from) {
|
||||||
const char *tmp = gtk_entry_get_text(GTK_ENTRY(from));
|
const char *tmp = gtk_entry_get_text(GTK_ENTRY(from));
|
||||||
if (strcmp(tmp, MSGTR_PREFERENCES_DriverDefault) == 0) {
|
if (strcmp(tmp, MSGTR_PREFERENCES_DriverDefault) == 0) {
|
||||||
tmp = NULL;
|
tmp = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user