[mousetweaks] Remove mt-main header file
- From: Gerd Kohlberger <gerdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mousetweaks] Remove mt-main header file
- Date: Tue, 26 Oct 2010 16:53:09 +0000 (UTC)
commit be5db0e334954e62c94452bd83b50e39d8001b92
Author: Gerd Kohlberger <gerdk src gnome org>
Date: Tue Oct 26 18:52:21 2010 +0200
Remove mt-main header file
src/Makefile.am | 1 -
src/mt-main.c | 18 +++++++++++++++++-
src/mt-main.h | 49 -------------------------------------------------
3 files changed, 17 insertions(+), 51 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index f0c1c38..e0a1590 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -15,7 +15,6 @@ bin_PROGRAMS = mousetweaks $(pca_bin) $(dca_bin)
mousetweaks_SOURCES = \
mt-main.c \
- mt-main.h \
mt-common.c \
mt-common.h \
mt-pidfile.c \
diff --git a/src/mt-main.c b/src/mt-main.c
index 39cdcf4..864d566 100644
--- a/src/mt-main.c
+++ b/src/mt-main.c
@@ -33,7 +33,6 @@
#include "mt-timer.h"
#include "mt-cursor-manager.h"
#include "mt-cursor.h"
-#include "mt-main.h"
#include "mt-listener.h"
#include "mt-sig-handler.h"
@@ -62,6 +61,23 @@ typedef struct _MtCliArgs
gboolean login;
} MtCliArgs;
+typedef struct _MtData
+{
+ MtService *service;
+ MtTimer *ssc_timer;
+ MtTimer *dwell_timer;
+ MtCursor *cursor;
+ gint direction;
+ gint pointer_x;
+ gint pointer_y;
+
+ /* state flags */
+ guint dwell_drag_started : 1;
+ guint dwell_gesture_started : 1;
+ guint override_cursor : 1;
+ guint ssc_finished : 1;
+} MtData;
+
static void
mt_main_generate_motion_event (GdkScreen *screen, gint x, gint y)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]