changeset 25234:02518a3daeef

Fix return type of getGtkEntryText, it must be const
author reimar
date Sun, 02 Dec 2007 16:50:33 +0000
parents 7c82d9df9c38
children b444558c0b22
files gui/mplayer/gtk/opts.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gui/mplayer/gtk/opts.c	Sun Dec 02 16:45:34 2007 +0000
+++ b/gui/mplayer/gtk/opts.c	Sun Dec 02 16:50:33 2007 +0000
@@ -1454,7 +1454,7 @@
 
 // Gets text string from a gtk entry, interpreting 
 // 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));
   if (strcmp(tmp, MSGTR_PREFERENCES_DriverDefault) == 0) {
     tmp = NULL;