[pygobject] Override Gtk.RecentInfo.get_application_info to not return success value
- From: Sebastian Polsterl <sebp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] Override Gtk.RecentInfo.get_application_info to not return success value
- Date: Tue, 26 Oct 2010 13:49:55 +0000 (UTC)
commit da6d87460b9392c29d025a7eed9249fb604204bc
Author: Sebastian Pölsterl <sebp k-d-w org>
Date: Sat Oct 23 14:17:04 2010 +0200
Override Gtk.RecentInfo.get_application_info to not return success value
gi/overrides/Gtk.py | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/gi/overrides/Gtk.py b/gi/overrides/Gtk.py
index 07af899..6a22248 100644
--- a/gi/overrides/Gtk.py
+++ b/gi/overrides/Gtk.py
@@ -434,6 +434,16 @@ class IMContext(Gtk.IMContext):
IMContext = override(IMContext)
__all__.append('IMContext')
+class RecentInfo(Gtk.RecentInfo):
+
+ def get_application_info(self, app_name):
+ success, app_exec, count, time = super(RecentInfo, self).get_application_info(app_name)
+ if success:
+ return (app_exec, count, time,)
+
+RecentInfo = override(RecentInfo)
+__all__.append('RecentInfo')
+
class TextBuffer(Gtk.TextBuffer):
def _get_or_create_tag_table(self):
table = self.get_tag_table()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]