Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gtk
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1,143
Issues
1,143
List
Boards
Labels
Milestones
Merge Requests
96
Merge Requests
96
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
GNOME
gtk
Commits
80b414ef
Commit
80b414ef
authored
Jan 25, 2012
by
Carlos Garcia Campos
Committed by
Carlos Garcia Campos
Jan 27, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
examples: Use symbolic names for button numbers
parent
f7c6c977
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
examples/drawing.c
examples/drawing.c
+2
-2
No files found.
examples/drawing.c
View file @
80b414ef
...
...
@@ -86,11 +86,11 @@ button_press_event_cb (GtkWidget *widget,
if
(
surface
==
NULL
)
return
FALSE
;
if
(
event
->
button
==
1
)
if
(
event
->
button
==
GDK_BUTTON_PRIMARY
)
{
draw_brush
(
widget
,
event
->
x
,
event
->
y
);
}
else
if
(
event
->
button
==
3
)
else
if
(
event
->
button
==
GDK_BUTTON_SECONDARY
)
{
clear_surface
();
gtk_widget_queue_draw
(
widget
);
...
...
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