# HG changeset patch # User ib # Date 1357812043 0 # Node ID 46b3d0bb76e0b9653633eb64992bf80fa6f8305c # Parent 59456592c6d19bef30cbe0c63686f8e025767e85 Make variables static that are only used inside the file. Additionally, remove unnecessary initialization. diff -r 59456592c6d1 -r 46b3d0bb76e0 gui/dialog/dialog.c --- a/gui/dialog/dialog.c Thu Jan 10 09:52:50 2013 +0000 +++ b/gui/dialog/dialog.c Thu Jan 10 10:00:43 2013 +0000 @@ -48,14 +48,14 @@ #include "gui/ui/actions.h" #include "fileselect.h" -GtkWidget *PopUpMenu = NULL; +static GtkWidget *PopUpMenu; GtkWidget *WarningPixmap; GtkWidget *ErrorPixmap; int gtkPopupMenu = 0; int gtkPopupMenuParam = 0; -int gtkInitialized = False; +static int gtkInitialized; #include "skinbrowser.h" #include "playlist.h" diff -r 59456592c6d1 -r 46b3d0bb76e0 gui/dialog/dialog.h --- a/gui/dialog/dialog.h Thu Jan 10 09:52:50 2013 +0000 +++ b/gui/dialog/dialog.h Thu Jan 10 10:00:43 2013 +0000 @@ -38,7 +38,6 @@ extern GtkWidget *PlayList; extern GtkWidget *Options; -extern GtkWidget *PopUpMenu; extern GtkWidget *WarningPixmap; extern GtkWidget *ErrorPixmap;