summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ldmicro/confdialog.cpp4
-rw-r--r--ldmicro/ldmicro.cpp2
2 files changed, 4 insertions, 2 deletions
diff --git a/ldmicro/confdialog.cpp b/ldmicro/confdialog.cpp
index 099d35a..f707c02 100644
--- a/ldmicro/confdialog.cpp
+++ b/ldmicro/confdialog.cpp
@@ -171,6 +171,7 @@ void ConfDialogGetData (GtkWidget* widget, gpointer data){
Prog.baudRate = atoi(buf);
DestroyWindow (ConfDialog);
ProgramChanged();
+ gtk_widget_set_sensitive (MainWindow, TRUE);
}
// Checks for the required key press
@@ -206,7 +207,8 @@ void ConfDialogSignalCall () {
G_CALLBACK(ConfDialogGetData), NULL);
g_signal_connect (G_OBJECT (CancelButton), "clicked",
G_CALLBACK(ConfCallDestroyWindow), NULL);
- g_signal_connect (ConfDialog, "delete_event", G_CALLBACK (ConfCallDestroyWindow), NULL);
+ g_signal_connect (ConfDialog, "delete_event",
+ G_CALLBACK (ConfCallDestroyWindow), NULL);
}
void ShowConfDialog(void)
diff --git a/ldmicro/ldmicro.cpp b/ldmicro/ldmicro.cpp
index f42defe..6085acf 100644
--- a/ldmicro/ldmicro.cpp
+++ b/ldmicro/ldmicro.cpp
@@ -861,7 +861,7 @@ gboolean LD_WM_Paint_call(HWID widget, HCRDC cr, gpointer data)
gint width = gtk_widget_get_allocated_width (widget);
gint height = gtk_widget_get_allocated_height (widget);
- gtk_widget_set_size_request(widget, width, height+1);
+ gtk_widget_set_size_request(widget, width, height + 1);
gdk_cairo_set_source_rgba (cr, (HBRUSH)GetStockObject(BLACK_BRUSH));