diff options
author | Akshay Chipkar | 2018-06-29 15:22:20 +0530 |
---|---|---|
committer | GitHub | 2018-06-29 15:22:20 +0530 |
commit | e7a0739bd60a65f4c402e27a1543295400ff6b00 (patch) | |
tree | bf3bee6bb5bcf74f4bb2e9bb6b768d6af0932015 | |
parent | 8a25c568bb1cf44a1df0b61c4ab199378bdc4063 (diff) | |
parent | 8511fc6e87d515c2e4a1fbaa2e65f22d844b4a16 (diff) | |
download | LDMicroGtk-e7a0739bd60a65f4c402e27a1543295400ff6b00.tar.gz LDMicroGtk-e7a0739bd60a65f4c402e27a1543295400ff6b00.tar.bz2 LDMicroGtk-e7a0739bd60a65f4c402e27a1543295400ff6b00.zip |
Merge pull request #40 from akshay-c/GUI_port
Minor bug fixes.
-rw-r--r-- | README.md | 6 | ||||
-rw-r--r-- | ldmicro/ldmicro.cpp | 11 |
2 files changed, 12 insertions, 5 deletions
@@ -26,11 +26,7 @@ Simply run `make` in the build directory of the project to compile. _Note_: In order to compile the Makefile must first be generated (see [Building the Makefile](#building-the-makefile)). -Multiple Perl Scripts are executed during the build phase. In order to execute these scripts, you need perl. This project uses ActivePerl Community Edition, which can be obtained from the following website: - -http://www.activestate.com/activeperl - -or install the perl packages from the terminal (see [External package dependencies](#external-package-dependencies)). +Multiple Perl Scripts are executed during the build phase. In order to execute these scripts, to install the perl packages from the terminal (see [External package dependencies](#external-package-dependencies)). ## External package dependencies The install commands for all the packages required to compile LDMicro for Linux are given below: diff --git a/ldmicro/ldmicro.cpp b/ldmicro/ldmicro.cpp index 7a39478..700e490 100644 --- a/ldmicro/ldmicro.cpp +++ b/ldmicro/ldmicro.cpp @@ -719,6 +719,17 @@ gboolean LD_GTK_mouse_click_hook(GtkWidget *widget, GdkEvent *event, gpointer us * WM_LBUTTONDBLCLK, WM_LBUTTONDOWN */ + RECT Rect; + GetWindowRect(ScrollWindow, &Rect); + int wy; + gtk_window_get_position(GTK_WINDOW(MainWindow), NULL, &wy); + + // g_print("net: %i\n", wy + 30 + Rect.bottom); + + /// Identify if mouse is clicked outside drawing area + if (wy + 30 + Rect.bottom < event->button.y_root) + return FALSE; + GtkAdjustment *adjustment = gtk_scrolled_window_get_vadjustment(GTK_SCROLLED_WINDOW(ScrollWindow)); switch(event->button.type) |