summaryrefslogtreecommitdiff
path: root/ldmicro
diff options
context:
space:
mode:
Diffstat (limited to 'ldmicro')
-rw-r--r--ldmicro/coildialog.cpp4
-rw-r--r--ldmicro/contactsdialog.cpp4
-rw-r--r--ldmicro/resetdialog.cpp10
3 files changed, 8 insertions, 10 deletions
diff --git a/ldmicro/coildialog.cpp b/ldmicro/coildialog.cpp
index ba9002b..1d36f98 100644
--- a/ldmicro/coildialog.cpp
+++ b/ldmicro/coildialog.cpp
@@ -41,8 +41,8 @@ static HWID CancelButton;
static LONG_PTR PrevNameProc;
-HWID CoilGrid;
-HWID CoilPackingBox;
+static HWID CoilGrid;
+static HWID CoilPackingBox;
static bool* tmpnegated;
static bool* tmpsetOnly ;
static bool* tmpresetOnly;
diff --git a/ldmicro/contactsdialog.cpp b/ldmicro/contactsdialog.cpp
index 8d6e8d4..bf896fa 100644
--- a/ldmicro/contactsdialog.cpp
+++ b/ldmicro/contactsdialog.cpp
@@ -38,8 +38,8 @@ static HWID OkButton;
static HWID CancelButton;
static LONG_PTR PrevNameProc;
-HWID ContactsGrid;
-HWID ContactsPackingBox;
+static HWID ContactsGrid;
+static HWID ContactsPackingBox;
char* tmpname;
BOOL* tmpnegated;
//-----------------------------------------------------------------------------
diff --git a/ldmicro/resetdialog.cpp b/ldmicro/resetdialog.cpp
index cbcfd30..238814a 100644
--- a/ldmicro/resetdialog.cpp
+++ b/ldmicro/resetdialog.cpp
@@ -38,8 +38,8 @@ static HWID OkButton;
static HWID CancelButton;
static LONG_PTR PrevNameProc;
-HWID ResetGrid;
-HWID ResetPackingBox;
+static HWID ResetGrid;
+static HWID ResetPackingBox;
//-----------------------------------------------------------------------------
// Don't allow any characters other than A-Za-z0-9_ in the name.
@@ -82,8 +82,8 @@ static void MakeControls(void)
gtk_grid_set_column_spacing (GTK_GRID (ResetGrid), 1);
gtk_box_pack_start(GTK_BOX(ResetPackingBox), ResetGrid, TRUE, TRUE, 0);
- // PrevNameProc = SetWindowLongPtr(NameTextbox, GWLP_WNDPROC,
- // (LONG_PTR)MyNameProc);
+ g_signal_connect (G_OBJECT(NameTextbox), "insert-text",
+ G_CALLBACK(ResetDialogMyNameProc), NULL);
}
void ResetDialogGetData (char* name){
@@ -147,8 +147,6 @@ void ShowResetDialog(char *name)
gtk_widget_show_all (ResetDialog);
gtk_widget_grab_focus (NameTextbox);
- g_signal_connect (G_OBJECT(NameTextbox), "insert-text",
- G_CALLBACK(ResetDialogMyNameProc), NULL);
g_signal_connect (G_OBJECT (ResetDialog), "key-press-event",
G_CALLBACK(ResetDialogKeyPress), (gpointer)name);
g_signal_connect (G_OBJECT (OkButton), "clicked",