summaryrefslogtreecommitdiff
path: root/libreofficekit
diff options
context:
space:
mode:
authorPranav Kant <pranavk@collabora.co.uk>2017-12-01 14:27:21 +0530
committerPranav Kant <pranavk@collabora.co.uk>2017-12-04 17:14:03 +0530
commitb1bcc70d2a5a51d2cb4b2e9e2a8e6641719fe18b (patch)
tree0347b8a69436f99c889b57b9072fc34fffaaea63 /libreofficekit
parentae412b57e3f7866e24b120f0afb8ac80618a8d07 (diff)
lokdialog: Merge dialog & dialog child mouse event APIs into one
Change-Id: I91aaa6a58f33dd2d817e02533de96e0c8191f2ca
Diffstat (limited to 'libreofficekit')
-rw-r--r--libreofficekit/qa/gtktiledviewer/gtv-lok-dialog.cxx54
1 files changed, 27 insertions, 27 deletions
diff --git a/libreofficekit/qa/gtktiledviewer/gtv-lok-dialog.cxx b/libreofficekit/qa/gtktiledviewer/gtv-lok-dialog.cxx
index f6fddbba73d0..5db79514aa4a 100644
--- a/libreofficekit/qa/gtktiledviewer/gtv-lok-dialog.cxx
+++ b/libreofficekit/qa/gtktiledviewer/gtv-lok-dialog.cxx
@@ -162,7 +162,7 @@ gtv_lok_dialog_signal_button(GtkWidget* pDialogDrawingArea, GdkEventButton* pEve
break;
}
priv->m_nLastButtonPressed = nEventButton;
- pDocument->pClass->postDialogMouseEvent(pDocument,
+ pDocument->pClass->postWindowMouseEvent(pDocument,
priv->dialogid,
LOK_MOUSEEVENT_MOUSEBUTTONDOWN,
(pEvent->x),
@@ -193,7 +193,7 @@ gtv_lok_dialog_signal_button(GtkWidget* pDialogDrawingArea, GdkEventButton* pEve
break;
}
priv->m_nLastButtonPressed = nEventButton;
- pDocument->pClass->postDialogMouseEvent(pDocument,
+ pDocument->pClass->postWindowMouseEvent(pDocument,
priv->dialogid,
LOK_MOUSEEVENT_MOUSEBUTTONUP,
(pEvent->x),
@@ -223,7 +223,7 @@ gtv_lok_dialog_signal_motion(GtkWidget* pDialogDrawingArea, GdkEventButton* pEve
(int)pixelToTwip(pEvent->x),
(int)pixelToTwip(pEvent->y));
- pDocument->pClass->postDialogMouseEvent(pDocument,
+ pDocument->pClass->postWindowMouseEvent(pDocument,
priv->dialogid,
LOK_MOUSEEVENT_MOUSEMOVE,
(pEvent->x),
@@ -541,14 +541,14 @@ gtv_lok_dialog_floating_win_signal_button(GtkWidget* /*pDialogChildDrawingArea*/
break;
}
priv->m_nChildLastButtonPressed = nEventButton;
- pDocument->pClass->postDialogChildMouseEvent(pDocument,
- priv->m_nChildId,
- LOK_MOUSEEVENT_MOUSEBUTTONDOWN,
- (pEvent->x),
- (pEvent->y),
- nCount,
- nEventButton,
- priv->m_nChildKeyModifier);
+ pDocument->pClass->postWindowMouseEvent(pDocument,
+ priv->m_nChildId,
+ LOK_MOUSEEVENT_MOUSEBUTTONDOWN,
+ (pEvent->x),
+ (pEvent->y),
+ nCount,
+ nEventButton,
+ priv->m_nChildKeyModifier);
break;
}
@@ -572,14 +572,14 @@ gtv_lok_dialog_floating_win_signal_button(GtkWidget* /*pDialogChildDrawingArea*/
break;
}
priv->m_nChildLastButtonPressed = nEventButton;
- pDocument->pClass->postDialogChildMouseEvent(pDocument,
- priv->m_nChildId,
- LOK_MOUSEEVENT_MOUSEBUTTONUP,
- (pEvent->x),
- (pEvent->y),
- nCount,
- nEventButton,
- priv->m_nChildKeyModifier);
+ pDocument->pClass->postWindowMouseEvent(pDocument,
+ priv->m_nChildId,
+ LOK_MOUSEEVENT_MOUSEBUTTONUP,
+ (pEvent->x),
+ (pEvent->y),
+ nCount,
+ nEventButton,
+ priv->m_nChildKeyModifier);
break;
}
default:
@@ -602,14 +602,14 @@ gtv_lok_dialog_floating_win_signal_motion(GtkWidget* /*pDialogDrawingArea*/, Gdk
(int)pixelToTwip(pEvent->x),
(int)pixelToTwip(pEvent->y));
- pDocument->pClass->postDialogChildMouseEvent(pDocument,
- priv->m_nChildId,
- LOK_MOUSEEVENT_MOUSEMOVE,
- (pEvent->x),
- (pEvent->y),
- 1,
- priv->m_nChildLastButtonPressed,
- priv->m_nChildKeyModifier);
+ pDocument->pClass->postWindowMouseEvent(pDocument,
+ priv->m_nChildId,
+ LOK_MOUSEEVENT_MOUSEMOVE,
+ (pEvent->x),
+ (pEvent->y),
+ 1,
+ priv->m_nChildLastButtonPressed,
+ priv->m_nChildKeyModifier);
return FALSE;
}