Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
7bad33d8
Commit
7bad33d8
authored
Sep 11, 2011
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OpenBSD gtk bugfixes
parent
ebd071c8
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
47 additions
and
5 deletions
+47
-5
xtt/lib/glow/gtk/glow_curvewidget_gtk.cpp
xtt/lib/glow/gtk/glow_curvewidget_gtk.cpp
+4
-2
xtt/lib/glow/gtk/glow_draw_gtk.cpp
xtt/lib/glow/gtk/glow_draw_gtk.cpp
+36
-0
xtt/lib/glow/gtk/glow_growwidget_gtk.cpp
xtt/lib/glow/gtk/glow_growwidget_gtk.cpp
+4
-2
xtt/lib/glow/src/glow_growctx.cpp
xtt/lib/glow/src/glow_growctx.cpp
+3
-1
No files found.
xtt/lib/glow/gtk/glow_curvewidget_gtk.cpp
View file @
7bad33d8
...
...
@@ -287,8 +287,10 @@ static void curvewidgetgtk_destroy( GtkObject *object)
curvew
->
destroyed
=
1
;
if
(
curvew
->
scroll_timerid
)
g_source_remove
(
curvew
->
scroll_timerid
);
if
(
curvew
->
is_navigator
&&
curvew
->
curve_ctx
)
((
CurveCtx
*
)
curvew
->
curve_ctx
)
->
no_nav
=
1
;
if
(
curvew
->
is_navigator
)
{
if
(
curvew
->
curve_ctx
&&
!
((
CurveWidgetGtk
*
)
curvew
->
main_curve_widget
)
->
destroyed
)
((
CurveCtx
*
)
curvew
->
curve_ctx
)
->
no_nav
=
1
;
}
else
delete
(
GlowDrawGtk
*
)
curvew
->
draw_ctx
;
}
...
...
xtt/lib/glow/gtk/glow_draw_gtk.cpp
View file @
7bad33d8
...
...
@@ -859,20 +859,28 @@ int GlowDrawGtk::event_handler( GdkEvent event)
if
(
(
event
.
button
.
state
&
GDK_SHIFT_MASK
)
&&
!
(
event
.
button
.
state
&
GDK_CONTROL_MASK
))
{
sts
=
ctx
->
event_handler
(
glow_eEvent_MB1ClickShift
,
(
int
)
event
.
button
.
x
,
(
int
)
event
.
button
.
y
,
0
,
0
);
if
(
sts
==
GLOW__TERMINATED
||
sts
==
GLOW__DESTROYED
)
return
1
;
click_sensitivity
=
0
;
}
else
if
(
!
(
event
.
button
.
state
&
GDK_SHIFT_MASK
)
&&
(
event
.
button
.
state
&
GDK_CONTROL_MASK
))
{
sts
=
ctx
->
event_handler
(
glow_eEvent_MB1ClickCtrl
,
(
int
)
event
.
button
.
x
,
(
int
)
event
.
button
.
y
,
0
,
0
);
if
(
sts
==
GLOW__TERMINATED
||
sts
==
GLOW__DESTROYED
)
return
1
;
click_sensitivity
=
0
;
}
else
if
(
(
event
.
button
.
state
&
GDK_SHIFT_MASK
)
&&
(
event
.
button
.
state
&
GDK_CONTROL_MASK
))
{
sts
=
ctx
->
event_handler
(
glow_eEvent_MB1ClickShiftCtrl
,
(
int
)
event
.
button
.
x
,
(
int
)
event
.
button
.
y
,
0
,
0
);
if
(
sts
==
GLOW__TERMINATED
||
sts
==
GLOW__DESTROYED
)
return
1
;
click_sensitivity
=
0
;
}
else
{
sts
=
ctx
->
event_handler
(
glow_eEvent_MB1Click
,
(
int
)
event
.
button
.
x
,
(
int
)
event
.
button
.
y
,
0
,
0
);
if
(
sts
==
GLOW__TERMINATED
||
sts
==
GLOW__DESTROYED
)
return
1
;
click_sensitivity
=
0
;
}
break
;
...
...
@@ -880,20 +888,28 @@ int GlowDrawGtk::event_handler( GdkEvent event)
if
(
(
event
.
button
.
state
&
GDK_SHIFT_MASK
)
&&
!
(
event
.
button
.
state
&
GDK_CONTROL_MASK
))
{
sts
=
ctx
->
event_handler
(
glow_eEvent_MB2ClickShift
,
(
int
)
event
.
button
.
x
,
(
int
)
event
.
button
.
y
,
0
,
0
);
if
(
sts
==
GLOW__TERMINATED
||
sts
==
GLOW__DESTROYED
)
return
1
;
click_sensitivity
=
0
;
}
else
if
(
!
(
event
.
button
.
state
&
GDK_SHIFT_MASK
)
&&
(
event
.
button
.
state
&
GDK_CONTROL_MASK
))
{
sts
=
ctx
->
event_handler
(
glow_eEvent_MB2ClickCtrl
,
(
int
)
event
.
button
.
x
,
(
int
)
event
.
button
.
y
,
0
,
0
);
if
(
sts
==
GLOW__TERMINATED
||
sts
==
GLOW__DESTROYED
)
return
1
;
click_sensitivity
=
0
;
}
else
if
(
(
event
.
button
.
state
&
GDK_SHIFT_MASK
)
&&
(
event
.
button
.
state
&
GDK_CONTROL_MASK
))
{
sts
=
ctx
->
event_handler
(
glow_eEvent_MB2ClickShiftCtrl
,
(
int
)
event
.
button
.
x
,
(
int
)
event
.
button
.
y
,
0
,
0
);
if
(
sts
==
GLOW__TERMINATED
||
sts
==
GLOW__DESTROYED
)
return
1
;
click_sensitivity
=
0
;
}
else
{
sts
=
ctx
->
event_handler
(
glow_eEvent_MB2Click
,
(
int
)
event
.
button
.
x
,
(
int
)
event
.
button
.
y
,
0
,
0
);
if
(
sts
==
GLOW__TERMINATED
||
sts
==
GLOW__DESTROYED
)
return
1
;
click_sensitivity
=
0
;
}
break
;
...
...
@@ -911,6 +927,8 @@ int GlowDrawGtk::event_handler( GdkEvent event)
else
#endif
sts
=
ctx
->
event_handler
(
glow_eEvent_MB3Click
,
(
int
)
event
.
button
.
x
,
(
int
)
event
.
button
.
y
,
0
,
0
);
if
(
sts
==
GLOW__TERMINATED
||
sts
==
GLOW__DESTROYED
)
return
1
;
click_sensitivity
=
0
;
break
;
}
...
...
@@ -919,6 +937,8 @@ int GlowDrawGtk::event_handler( GdkEvent event)
/* Button release */
// cout << "Button release detected" << endl;
sts
=
ctx
->
event_handler
(
glow_eEvent_ButtonRelease
,
(
int
)
event
.
button
.
x
,
(
int
)
event
.
button
.
y
,
0
,
0
);
if
(
sts
==
GLOW__TERMINATED
||
sts
==
GLOW__DESTROYED
)
return
1
;
}
}
else
{
...
...
@@ -945,20 +965,28 @@ int GlowDrawGtk::event_handler( GdkEvent event)
if
(
(
event
.
button
.
state
&
GDK_SHIFT_MASK
)
&&
!
(
event
.
button
.
state
&
GDK_CONTROL_MASK
))
{
sts
=
ctx
->
event_handler
(
glow_eEvent_MB1DoubleClickShift
,
(
int
)
event
.
button
.
x
,
(
int
)
event
.
button
.
y
,
0
,
0
);
if
(
sts
==
GLOW__TERMINATED
||
sts
==
GLOW__DESTROYED
)
return
1
;
click_sensitivity
=
0
;
}
else
if
(
!
(
event
.
button
.
state
&
GDK_SHIFT_MASK
)
&&
(
event
.
button
.
state
&
GDK_CONTROL_MASK
))
{
sts
=
ctx
->
event_handler
(
glow_eEvent_MB1DoubleClickCtrl
,
(
int
)
event
.
button
.
x
,
(
int
)
event
.
button
.
y
,
0
,
0
);
if
(
sts
==
GLOW__TERMINATED
||
sts
==
GLOW__DESTROYED
)
return
1
;
click_sensitivity
=
0
;
}
else
if
(
(
event
.
button
.
state
&
GDK_SHIFT_MASK
)
&&
(
event
.
button
.
state
&
GDK_CONTROL_MASK
))
{
sts
=
ctx
->
event_handler
(
glow_eEvent_MB1DoubleClickShiftCtrl
,
(
int
)
event
.
button
.
x
,
(
int
)
event
.
button
.
y
,
0
,
0
);
if
(
sts
==
GLOW__TERMINATED
||
sts
==
GLOW__DESTROYED
)
return
1
;
click_sensitivity
=
0
;
}
else
{
sts
=
ctx
->
event_handler
(
glow_eEvent_MB1DoubleClick
,
(
int
)
event
.
button
.
x
,
(
int
)
event
.
button
.
y
,
0
,
0
);
if
(
sts
==
GLOW__TERMINATED
||
sts
==
GLOW__DESTROYED
)
return
1
;
click_sensitivity
=
0
;
}
break
;
...
...
@@ -966,20 +994,28 @@ int GlowDrawGtk::event_handler( GdkEvent event)
if
(
(
event
.
button
.
state
&
GDK_SHIFT_MASK
)
&&
!
(
event
.
button
.
state
&
GDK_CONTROL_MASK
))
{
sts
=
ctx
->
event_handler
(
glow_eEvent_MB2DoubleClickShift
,
(
int
)
event
.
button
.
x
,
(
int
)
event
.
button
.
y
,
0
,
0
);
if
(
sts
==
GLOW__TERMINATED
||
sts
==
GLOW__DESTROYED
)
return
1
;
click_sensitivity
=
0
;
}
else
if
(
!
(
event
.
button
.
state
&
GDK_SHIFT_MASK
)
&&
(
event
.
button
.
state
&
GDK_CONTROL_MASK
))
{
sts
=
ctx
->
event_handler
(
glow_eEvent_MB2DoubleClickCtrl
,
(
int
)
event
.
button
.
x
,
(
int
)
event
.
button
.
y
,
0
,
0
);
if
(
sts
==
GLOW__TERMINATED
||
sts
==
GLOW__DESTROYED
)
return
1
;
click_sensitivity
=
0
;
}
else
if
(
(
event
.
button
.
state
&
GDK_SHIFT_MASK
)
&&
(
event
.
button
.
state
&
GDK_CONTROL_MASK
))
{
sts
=
ctx
->
event_handler
(
glow_eEvent_MB2DoubleClickShiftCtrl
,
(
int
)
event
.
button
.
x
,
(
int
)
event
.
button
.
y
,
0
,
0
);
if
(
sts
==
GLOW__TERMINATED
||
sts
==
GLOW__DESTROYED
)
return
1
;
click_sensitivity
=
0
;
}
else
{
sts
=
ctx
->
event_handler
(
glow_eEvent_MB2DoubleClick
,
(
int
)
event
.
button
.
x
,
(
int
)
event
.
button
.
y
,
0
,
0
);
if
(
sts
==
GLOW__TERMINATED
||
sts
==
GLOW__DESTROYED
)
return
1
;
click_sensitivity
=
0
;
}
break
;
...
...
xtt/lib/glow/gtk/glow_growwidget_gtk.cpp
View file @
7bad33d8
...
...
@@ -291,8 +291,10 @@ static void growwidgetgtk_destroy( GtkObject *object)
grow
->
destroyed
=
1
;
if
(
grow
->
scroll_timerid
)
g_source_remove
(
grow
->
scroll_timerid
);
if
(
grow
->
is_navigator
&&
grow
->
grow_ctx
)
((
GrowCtx
*
)
grow
->
grow_ctx
)
->
no_nav
=
1
;
if
(
grow
->
is_navigator
)
{
if
(
grow
->
grow_ctx
&&
!
((
GrowWidgetGtk
*
)
grow
->
main_grow_widget
)
->
destroyed
)
((
GrowCtx
*
)
grow
->
grow_ctx
)
->
no_nav
=
1
;
}
else
delete
(
GlowDrawGtk
*
)
grow
->
draw_ctx
;
}
...
...
xtt/lib/glow/src/glow_growctx.cpp
View file @
7bad33d8
...
...
@@ -266,7 +266,9 @@ int GrowCtx::event_handler( glow_eEvent event, int x, int y, int w, int h)
case
glow_eEvent_MB1Up
:
case
glow_eEvent_MB1Click
:
sts
=
a
[
a
.
a_size
-
1
]
->
event_handler
(
&
mw
,
event
,
x
,
y
,
fx
,
fy
);
if
(
sts
)
if
(
sts
==
GLOW__TERMINATED
||
sts
==
GLOW__DESTROYED
)
return
sts
;
else
if
(
sts
)
return
1
;
break
;
default:
;
...
...
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