From 3a860d665bf30156d88151998da71e6aebf3f11c Mon Sep 17 00:00:00 2001 From: akshay-c Date: Thu, 28 Feb 2019 10:16:04 +0530 Subject: McuSettings issue resolved --- ldmicro/confdialog.cpp | 4 +++- ldmicro/ldmicro.cpp | 2 +- 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)); -- cgit