summaryrefslogtreecommitdiff
path: root/ldmicro
diff options
context:
space:
mode:
authorakshay-c2019-02-28 10:16:04 +0530
committerakshay-c2019-02-28 10:16:04 +0530
commit3a860d665bf30156d88151998da71e6aebf3f11c (patch)
treeb822fb7187b62a3ca2a1877c65cc9df9fde40507 /ldmicro
parentc41c6cc508d94d97eed40ad8efd4b8dfd4a105f6 (diff)
downloadLDMicroGtk-3a860d665bf30156d88151998da71e6aebf3f11c.tar.gz
LDMicroGtk-3a860d665bf30156d88151998da71e6aebf3f11c.tar.bz2
LDMicroGtk-3a860d665bf30156d88151998da71e6aebf3f11c.zip
McuSettings issue resolved
Diffstat (limited to 'ldmicro')
-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));