Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
b02216b1
Kaydet (Commit)
b02216b1
authored
Mar 10, 2015
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
lokdocview: return early in lcl_signalMotion()
Change-Id: Ibf9d62c52edeaad4aada7960820e1bb8fa6c2c63
üst
b2355ed7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
lokdocview.c
libreofficekit/source/gtk/lokdocview.c
+10
-8
No files found.
libreofficekit/source/gtk/lokdocview.c
Dosyayı görüntüle @
b02216b1
...
...
@@ -70,6 +70,7 @@ void lcl_getDragPoint(GdkRectangle* pHandle, GdkEventButton* pEvent, GdkPoint* p
gboolean
lcl_signalMotion
(
GtkWidget
*
pEventBox
,
GdkEventButton
*
pEvent
,
LOKDocView
*
pDocView
)
{
GdkPoint
aPoint
;
int
i
;
(
void
)
pEventBox
;
if
(
pDocView
->
m_bInDragMiddleHandle
)
...
...
@@ -79,31 +80,32 @@ gboolean lcl_signalMotion(GtkWidget* pEventBox, GdkEventButton* pEvent, LOKDocVi
pDocView
->
pDocument
->
pClass
->
setTextSelection
(
pDocView
->
pDocument
,
LOK_SETTEXTSELECTION_RESET
,
pixelToTwip
(
aPoint
.
x
)
/
pDocView
->
fZoom
,
pixelToTwip
(
aPoint
.
y
)
/
pDocView
->
fZoom
);
return
FALSE
;
}
else
if
(
pDocView
->
m_bInDragStartHandle
)
if
(
pDocView
->
m_bInDragStartHandle
)
{
g_info
(
"lcl_signalMotion: dragging the start handle"
);
lcl_getDragPoint
(
&
pDocView
->
m_aHandleStartRect
,
pEvent
,
&
aPoint
);
pDocView
->
pDocument
->
pClass
->
setTextSelection
(
pDocView
->
pDocument
,
LOK_SETTEXTSELECTION_START
,
pixelToTwip
(
aPoint
.
x
)
/
pDocView
->
fZoom
,
pixelToTwip
(
aPoint
.
y
)
/
pDocView
->
fZoom
);
return
FALSE
;
}
else
if
(
pDocView
->
m_bInDragEndHandle
)
if
(
pDocView
->
m_bInDragEndHandle
)
{
g_info
(
"lcl_signalMotion: dragging the end handle"
);
lcl_getDragPoint
(
&
pDocView
->
m_aHandleEndRect
,
pEvent
,
&
aPoint
);
pDocView
->
pDocument
->
pClass
->
setTextSelection
(
pDocView
->
pDocument
,
LOK_SETTEXTSELECTION_END
,
pixelToTwip
(
aPoint
.
x
)
/
pDocView
->
fZoom
,
pixelToTwip
(
aPoint
.
y
)
/
pDocView
->
fZoom
);
return
FALSE
;
}
else
for
(
i
=
0
;
i
<
GRAPHIC_HANDLE_COUNT
;
++
i
)
{
int
i
;
for
(
i
=
0
;
i
<
GRAPHIC_HANDLE_COUNT
;
++
i
)
if
(
pDocView
->
m_bInDragGraphicHandles
[
i
])
{
if
(
pDocView
->
m_bInDragGraphicHandles
[
i
])
g_info
(
"lcl_signalButton: dragging the graphic handle #%d"
,
i
)
;
g_info
(
"lcl_signalButton: dragging the graphic handle #%d"
,
i
);
return
FALSE
;
}
}
return
FALSE
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment