changeset 36031:8ae2e20462a7

Move variable declarations and definitions where they belong.
author ib
date Sun, 31 Mar 2013 22:45:25 +0000
parents 7efddc4d726f
children c667e34fb941
files gui/dialog/dialog.c gui/dialog/dialog.h gui/dialog/msgbox.c gui/dialog/msgbox.h
diffstat 4 files changed, 5 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/gui/dialog/dialog.c	Sun Mar 31 22:41:03 2013 +0000
+++ b/gui/dialog/dialog.c	Sun Mar 31 22:45:25 2013 +0000
@@ -51,9 +51,6 @@
 
 static GtkWidget *PopUpMenu;
 
-GtkWidget *WarningPixmap;
-GtkWidget *ErrorPixmap;
-
 static int gtkInitialized;
 
 #include "skinbrowser.h"
--- a/gui/dialog/dialog.h	Sun Mar 31 22:41:03 2013 +0000
+++ b/gui/dialog/dialog.h	Sun Mar 31 22:45:25 2013 +0000
@@ -28,11 +28,6 @@
 #define GTK_MB_ERROR 4
 #define GTK_MB_WARNING 8
 
-extern GtkWidget *WarningPixmap;
-extern GtkWidget *ErrorPixmap;
-
-extern GtkWidget *gtkMessageBoxText;
-
 typedef struct {
     Pixmap small;
     Pixmap small_mask;
--- a/gui/dialog/msgbox.c	Sun Mar 31 22:41:03 2013 +0000
+++ b/gui/dialog/msgbox.c	Sun Mar 31 22:45:25 2013 +0000
@@ -30,6 +30,8 @@
 
 GtkWidget * gtkMessageBoxText;
 GtkWidget * MessageBox = NULL;
+GtkWidget * WarningPixmap;
+GtkWidget * ErrorPixmap;
 
 static void on_Ok_released( GtkButton * button,gpointer user_data  )
 {
--- a/gui/dialog/msgbox.h	Sun Mar 31 22:41:03 2013 +0000
+++ b/gui/dialog/msgbox.h	Sun Mar 31 22:45:25 2013 +0000
@@ -22,6 +22,9 @@
 #include <gtk/gtk.h>
 
 extern GtkWidget * MessageBox;
+extern GtkWidget * WarningPixmap;
+extern GtkWidget * ErrorPixmap;
+extern GtkWidget * gtkMessageBoxText;
 
 void ShowMessageBox( const char * msg );