-
-
Notifications
You must be signed in to change notification settings - Fork 177
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ensure all capture implementations have a refresh and clean method, u…
…se the new capture class in the bug report tool, never instantiate capture from the model git-svn-id: https://xpra.org/svn/Xpra/trunk@19179 3bb7dfac-3a0b-4e04-842a-767bc560f471
- Loading branch information
Showing
5 changed files
with
16 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/usr/bin/env python | ||
# This file is part of Xpra. | ||
# Copyright (C) 2014 Antoine Martin <[email protected]> | ||
# Copyright (C) 2014-2018 Antoine Martin <[email protected]> | ||
# Xpra is released under the terms of the GNU GPL v2, or, at your option, any | ||
# later version. See the file COPYING for details. | ||
|
||
|
@@ -18,7 +18,7 @@ | |
pango = import_pango() | ||
|
||
from xpra.gtk_common.gtk_util import window_defaults, gtk_main, add_close_accel, scaled_image, pixbuf_new_from_file, get_display_info, get_default_root_window, \ | ||
JUSTIFY_LEFT, WIN_POS_CENTER, STATE_NORMAL, FILE_CHOOSER_ACTION_SAVE, choose_file, get_gtk_version_info | ||
JUSTIFY_LEFT, WIN_POS_CENTER, FILE_CHOOSER_ACTION_SAVE, choose_file, get_gtk_version_info | ||
from xpra.util import nonl, envint, repr_ellipsized | ||
from xpra.os_util import strtobytes | ||
from xpra.log import Logger | ||
|
@@ -161,8 +161,8 @@ def pillow_imagegrab_screenshot(): | |
if not take_screenshot_fn: | ||
#default: gtk screen capture | ||
try: | ||
from xpra.server.shadow.gtk_root_window_model import GTKRootWindowModel | ||
rwm = GTKRootWindowModel(get_default_root_window()) | ||
from xpra.server.shadow.gtk_root_window_model import GTKImageCapture | ||
rwm = GTKImageCapture(get_default_root_window()) | ||
take_screenshot_fn = rwm.take_screenshot | ||
except: | ||
log.warn("Warning: failed to load gtk screenshot code", exc_info=True) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# -*- coding: utf-8 -*- | ||
# This file is part of Xpra. | ||
# Copyright (C) 2012-2017 Antoine Martin <[email protected]> | ||
# Copyright (C) 2012-2018 Antoine Martin <[email protected]> | ||
# Xpra is released under the terms of the GNU GPL v2, or, at your option, any | ||
# later version. See the file COPYING for details. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters