[kupfer: 24/51] uievents: Use make_display_name
- From: Ulrik Sverdrup <usverdrup src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [kupfer: 24/51] uievents: Use make_display_name
- Date: Mon, 28 Mar 2011 15:03:05 +0000 (UTC)
commit 27bca2f12ab380de755a6ee8e05f36faaf97ba39
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date: Mon Mar 28 16:51:45 2011 +0200
uievents: Use make_display_name
kupfer/ui/uievents.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/kupfer/ui/uievents.py b/kupfer/ui/uievents.py
index 219daff..e0c42fd 100644
--- a/kupfer/ui/uievents.py
+++ b/kupfer/ui/uievents.py
@@ -41,6 +41,7 @@ class GUIEnvironmentContext (object):
def __init__(self, timestamp, screen=None):
self._timestamp = timestamp
self._screen = screen or gtk.gdk.screen_get_default()
+
def get_timestamp(self):
return self._timestamp
def get_startup_notification_id(self):
@@ -53,7 +54,8 @@ class GUIEnvironmentContext (object):
Always returns a byte string
"""
- return self._screen.get_display().get_name()
+ return self._screen.make_display_name()
+
def get_screen(self):
return self._screen
def present_window(self, window):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]