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
8a3fd98b
Commit
8a3fd98b
authored
Feb 06, 2007
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Problem with termination in GetSelection fixed
parent
7528dbe7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
src/lib/co/gtk/co_wow_gtk.cpp
src/lib/co/gtk/co_wow_gtk.cpp
+6
-2
No files found.
src/lib/co/gtk/co_wow_gtk.cpp
View file @
8a3fd98b
/**
* Proview $Id: co_wow_gtk.cpp,v 1.
4 2007-02-05 09:30:02
claes Exp $
* Proview $Id: co_wow_gtk.cpp,v 1.
5 2007-02-06 07:32:34
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -39,6 +39,7 @@ typedef struct {
int
received
;
pwr_tStatus
sts
;
GdkAtom
atom
;
int
new_main
;
}
wow_sSelection
;
...
...
@@ -514,7 +515,8 @@ static void wow_get_selection_cb( GtkWidget *w, GtkSelectionData *selection_data
else
data
->
sts
=
0
;
data
->
received
=
1
;
gtk_main_quit
();
if
(
data
->
new_main
)
gtk_main_quit
();
}
int
CoWowGtk
::
GetSelection
(
GtkWidget
*
w
,
char
*
str
,
int
size
,
GdkAtom
atom
)
...
...
@@ -524,6 +526,7 @@ int CoWowGtk::GetSelection( GtkWidget *w, char *str, int size, GdkAtom atom)
data
.
received
=
0
;
data
.
sts
=
0
;
data
.
atom
=
atom
;
data
.
new_main
=
0
;
gulong
id
=
g_signal_connect
(
w
,
"selection_received"
,
G_CALLBACK
(
wow_get_selection_cb
),
&
data
);
...
...
@@ -532,6 +535,7 @@ int CoWowGtk::GetSelection( GtkWidget *w, char *str, int size, GdkAtom atom)
while
(
!
data
.
received
)
{
// From other application
data
.
new_main
=
1
;
gtk_main
();
}
...
...
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