diff options
author | Ulrich Sibiller <uli42@gmx.de> | 2019-03-01 15:25:36 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2019-03-01 15:26:14 +0100 |
commit | ff1b3e9e8a45dcb9e95d121f8b5f2fbc0a961fae (patch) | |
tree | 4b669355a8068a8b6becc44451fef7960b4035cb /nxdialog/bin | |
parent | ca8d889dac9bf0f5934ea810448fea9cf2755fad (diff) | |
download | nx-libs-ff1b3e9e8a45dcb9e95d121f8b5f2fbc0a961fae.tar.gz nx-libs-ff1b3e9e8a45dcb9e95d121f8b5f2fbc0a961fae.tar.bz2 nx-libs-ff1b3e9e8a45dcb9e95d121f8b5f2fbc0a961fae.zip |
nxdialog: Allow user to specify hexadecimal X11 window IDs.
Diffstat (limited to 'nxdialog/bin')
-rwxr-xr-x | nxdialog/bin/nxdialog | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/nxdialog/bin/nxdialog b/nxdialog/bin/nxdialog index e7ca10aad..379ce0024 100755 --- a/nxdialog/bin/nxdialog +++ b/nxdialog/bin/nxdialog @@ -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: +# Examples: # 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 |