summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRr422018-05-28 12:30:38 +0530
committerRr422018-05-28 12:30:38 +0530
commit0c0b7b26031283bb1ba7e71064cbee7d215557cd (patch)
tree8c8af569c48c5c6ede959a3c4324b1f88e4e5d76
parentc71814905e187916d81ad250fa0bbcc13c2e8098 (diff)
downloadLDMicroGtk-0c0b7b26031283bb1ba7e71064cbee7d215557cd.tar.gz
LDMicroGtk-0c0b7b26031283bb1ba7e71064cbee7d215557cd.tar.bz2
LDMicroGtk-0c0b7b26031283bb1ba7e71064cbee7d215557cd.zip
Updated handle types
-rw-r--r--ldmicro/includes/linuxUI/linuxLD.h4
-rw-r--r--ldmicro/linuxUI.cpp2
2 files changed, 4 insertions, 2 deletions
diff --git a/ldmicro/includes/linuxUI/linuxLD.h b/ldmicro/includes/linuxUI/linuxLD.h
index 77352e4..53194e1 100644
--- a/ldmicro/includes/linuxUI/linuxLD.h
+++ b/ldmicro/includes/linuxUI/linuxLD.h
@@ -20,10 +20,12 @@ typedef unsigned int DWORD;
typedef void* PVOID;
typedef GtkWidget* HANDLE;
typedef HANDLE HINSTANCE;
-typedef HANDLE HWND;
+typedef HANDLE HWID;
typedef HANDLE HDC;
typedef HANDLE HMENU;
+typedef GtkWindow* HWND;
+
typedef GtkApplication* HAPP;
/// Check if system is x64 or x86
diff --git a/ldmicro/linuxUI.cpp b/ldmicro/linuxUI.cpp
index 85c605e..854ed09 100644
--- a/ldmicro/linuxUI.cpp
+++ b/ldmicro/linuxUI.cpp
@@ -3,7 +3,7 @@
/// Wraper function for gtk_window_has_toplevel_focus
BOOL isFocus(HWND window)
{
- return (BOOL) gtk_window_has_toplevel_focus(GTK_WINDOW(gtk_widget_get_parent_window(GTK_WIDGET(window))));
+ return (BOOL) gtk_window_has_toplevel_focus(GTK_WINDOW(window)));
}
COLORREF RGB(int red, int green, int blue)