summaryrefslogtreecommitdiff
path: root/ldmicro/lib/linuxUI/linuxUI.cpp
diff options
context:
space:
mode:
authorRamana2018-06-28 19:04:28 +0530
committerGitHub2018-06-28 19:04:28 +0530
commit169b2cedb1a17c3ab537b3d39a3758d5742ba043 (patch)
tree2c18e91409fa468188b37d60743d4abf5eacd21c /ldmicro/lib/linuxUI/linuxUI.cpp
parentd49887b15a0abb17d7687e8b96b4e5ffb0c75677 (diff)
parent2bd608013578880800ba957fff3f318339de0ae3 (diff)
downloadLDMicroGtk-169b2cedb1a17c3ab537b3d39a3758d5742ba043.tar.gz
LDMicroGtk-169b2cedb1a17c3ab537b3d39a3758d5742ba043.tar.bz2
LDMicroGtk-169b2cedb1a17c3ab537b3d39a3758d5742ba043.zip
Merge pull request #33 from akshay-c/GUI_Port_2
lutdialog update
Diffstat (limited to 'ldmicro/lib/linuxUI/linuxUI.cpp')
-rw-r--r--ldmicro/lib/linuxUI/linuxUI.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/ldmicro/lib/linuxUI/linuxUI.cpp b/ldmicro/lib/linuxUI/linuxUI.cpp
index d7248b7..64f7690 100644
--- a/ldmicro/lib/linuxUI/linuxUI.cpp
+++ b/ldmicro/lib/linuxUI/linuxUI.cpp
@@ -531,5 +531,8 @@ BOOL KillTimer(HWID hWid, UINT uIDEvent)
void DestroyWindow (HWID widget)
{
- gtk_widget_destroy (widget);
+ if (GTK_IS_WIDGET(widget))
+ {
+ gtk_widget_destroy (widget);
+ }
}