Mercurial > mplayer.hg
comparison gui/mplayer/gtk/opts.c @ 25234:02518a3daeef
Fix return type of getGtkEntryText, it must be const
author | reimar |
---|---|
date | Sun, 02 Dec 2007 16:50:33 +0000 |
parents | 35fcce39b121 |
children | 8a0adeba5910 |
comparison
equal
deleted
inserted
replaced
25233:7c82d9df9c38 | 25234:02518a3daeef |
---|---|
1452 } | 1452 } |
1453 #endif | 1453 #endif |
1454 | 1454 |
1455 // Gets text string from a gtk entry, interpreting | 1455 // Gets text string from a gtk entry, interpreting |
1456 // MSGTR_PREFERENCES_DriverDefault as null string. | 1456 // MSGTR_PREFERENCES_DriverDefault as null string. |
1457 char *getGtkEntryText(GtkWidget *from) { | 1457 const char *getGtkEntryText(GtkWidget *from) { |
1458 const char *tmp = gtk_entry_get_text(GTK_ENTRY(from)); | 1458 const char *tmp = gtk_entry_get_text(GTK_ENTRY(from)); |
1459 if (strcmp(tmp, MSGTR_PREFERENCES_DriverDefault) == 0) { | 1459 if (strcmp(tmp, MSGTR_PREFERENCES_DriverDefault) == 0) { |
1460 tmp = NULL; | 1460 tmp = NULL; |
1461 } | 1461 } |
1462 return tmp; | 1462 return tmp; |