Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nx-libs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dimbor
nx-libs
Commits
ff1b3e9e
Commit
ff1b3e9e
authored
Mar 01, 2019
by
Ulrich Sibiller
Committed by
Mike Gabriel
Mar 01, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nxdialog: Allow user to specify hexadecimal X11 window IDs.
parent
ca8d889d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
nxdialog
nxdialog/bin/nxdialog
+4
-3
No files found.
nxdialog/bin/nxdialog
View file @
ff1b3e9e
...
...
@@ -45,8 +45,9 @@
# If an "NX_CLIENT" environment variable is not provided to nxagent
# nxcomp library assumes this script is located in /usr/NX/bin/nxclient
#
# Example:
# Example
s
:
# nxdialog --dialog yesno --message "message text" --caption "message title" --parent 0
# nxdialog --dialog yesno --message "message text" --caption "message title" --window 0x123456 --parent 0
from
__future__
import
print_function
...
...
@@ -110,7 +111,7 @@ class PullDownMenu(object):
""" Shows popup and returns result. """
display
=
Gdk
.
Display
.
get_default
()
win
=
GdkX11
.
X11Window
.
foreign_new_for_display
(
display
,
self
.
window_id
)
win
=
GdkX11
.
X11Window
.
foreign_new_for_display
(
display
,
int
(
self
.
window_id
,
0
)
)
menu
=
Gtk
.
Menu
()
menu
.
connect
(
"deactivate"
,
self
.
menu_deactivate
)
...
...
@@ -312,7 +313,7 @@ class NxDialogProgram(object):
shown"
)
parser
.
add_argument
(
"--parent"
,
type
=
int
,
dest
=
"agentpid"
,
help
=
"pid of the nxagent"
)
parser
.
add_argument
(
"--window"
,
type
=
int
,
dest
=
"window"
,
parser
.
add_argument
(
"--window"
,
dest
=
"window"
,
help
=
"id of window where to embed the
\
pulldown dialog type"
)
# -class, -local, -allowmultiple are unused in nxlibs 3.5.99.18
...
...
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