diff options
author | NatsuDrag9 | 2018-06-19 19:48:18 +0530 |
---|---|---|
committer | NatsuDrag9 | 2018-06-19 19:48:18 +0530 |
commit | d4202cbb3bfe98ce433674afeb99af5bb1f0072a (patch) | |
tree | 47b225b47bd01d20f2bb83823fbb2844a68dcea4 | |
parent | db313e63f75bf7e142299a4ec2c26cee0f1213d7 (diff) | |
download | LDMicroGtk-d4202cbb3bfe98ce433674afeb99af5bb1f0072a.tar.gz LDMicroGtk-d4202cbb3bfe98ce433674afeb99af5bb1f0072a.tar.bz2 LDMicroGtk-d4202cbb3bfe98ce433674afeb99af5bb1f0072a.zip |
Removed draw called print statements.
-rw-r--r-- | ldmicro/ldmicro.cpp | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/ldmicro/ldmicro.cpp b/ldmicro/ldmicro.cpp index c3d84d6..0d02d8d 100644 --- a/ldmicro/ldmicro.cpp +++ b/ldmicro/ldmicro.cpp @@ -973,8 +973,6 @@ gboolean LD_GTK_mouse_click_hook(GtkWidget *widget, GdkEvent *event, gpointer us * WM_LBUTTONDBLCLK, WM_LBUTTONDOWN */ - g_print("x = %f\n", event->button.x_root); - g_print("y = %f\n", event->button.y_root); switch(event->button.type) { case GDK_BUTTON_PRESS:// To Do: run only for left click @@ -1043,8 +1041,6 @@ gboolean LD_WM_MouseMove_call(GtkWidget *widget, GdkEvent *event, gpointer user_ * WM_MOUSEMOVE */ - g_print("x = %f\n", event->button.x_root); - g_print("y = %f\n", event->button.y_root); // int x = LOWORD(lParam); // int y = HIWORD(lParam); @@ -1064,8 +1060,6 @@ gboolean LD_WM_Paint_call(HWID widget, HCRDC cr, gpointer data) * WM_PAINT */ - g_print("draw called\n"); - // guint width, height; // GdkRGBA color; // GtkStyleContext *context; @@ -1310,17 +1304,17 @@ int main(int argc, char** argv) /// Keyboard and mouse hooks equivalent to MainWndProc g_signal_connect (MainWindow, "delete_event", G_CALLBACK (LD_WM_Close_call), NULL); - g_signal_connect (MainWindow, "key_press_event", G_CALLBACK (LD_WM_KeyDown_call), NULL); + // g_signal_connect (MainWindow, "key_press_event", G_CALLBACK (LD_WM_KeyDown_call), NULL); g_signal_connect (MainWindow, "button_press_event", G_CALLBACK (LD_GTK_mouse_click_hook), NULL); g_signal_connect (MainWindow, "scroll_event", G_CALLBACK (LD_GTK_mouse_scroll_hook), NULL); g_signal_connect (MainWindow, "motion_notify_event", G_CALLBACK (LD_WM_MouseMove_call), NULL); g_signal_connect (DrawWindow, "draw", G_CALLBACK (LD_WM_Paint_call), NULL); g_signal_connect (MainWindow, "destroy_event", G_CALLBACK (LD_WM_Destroy_call), NULL); g_signal_connect (MainWindow, "configure_event", G_CALLBACK (LD_WM_Size_call), NULL); - g_signal_connect (MainWindow, "focus_in_event", G_CALLBACK (LD_WM_SetFocus_call), NULL); + // g_signal_connect (MainWindow, "focus_in_event", G_CALLBACK (LD_WM_SetFocus_call), NULL); /// Keyboard and mouse hooks equivalent to MainWndProc - end - // NewProgram(); + NewProgram(); // strcpy(CurrentSaveFile, ""); // We are running interactively, or we would already have exited. We |