diff gui/dialog/dialog.c @ 35629:365dc9336f0d

Pass parameter instead of using global variable.
author ib
date Thu, 10 Jan 2013 11:20:18 +0000
parents ce4b3cbeb1d0
children 840e473ba4c0
line wrap: on
line diff
--- a/gui/dialog/dialog.c	Thu Jan 10 11:12:40 2013 +0000
+++ b/gui/dialog/dialog.c	Thu Jan 10 11:20:18 2013 +0000
@@ -115,7 +115,7 @@
     return (pixbuf != NULL);
 }
 
-void gtkInit(void)
+void gtkInit(char *display_name)
 {
     int argc = 0;
     char *arg[3], **argv = arg;
@@ -127,9 +127,9 @@
 
     arg[argc++] = GMPlayer;
 
-    if (mDisplayName) {            // MPlayer option '-display' was given
+    if (display_name) {            // MPlayer option '-display' was given
         arg[argc++] = "--display"; // Pass corresponding command line arguments to GTK,
-        arg[argc++] = mDisplayName; // to open the requested display for the GUI, too.
+        arg[argc++] = display_name; // to open the requested display for the GUI, too.
     }
 
 #ifdef CONFIG_GTK2