Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 172901 Details for
Bug 248260
[NEW EBUILD] x11-misc/gestikk, WM-independent gesture recognition
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Remove libnotify-depending code if requested
gestikk-0.6-remove-libnotify.diff (text/plain), 4.01 KB, created by
Michał Górny
on 2008-11-22 23:29:12 UTC
(
hide
)
Description:
Remove libnotify-depending code if requested
Filename:
MIME Type:
Creator:
Michał Górny
Created:
2008-11-22 23:29:12 UTC
Size:
4.01 KB
patch
obsolete
>diff -dupr gestikk-old/gestikk/start_main.py gestikk-0.6/gestikk/start_main.py >--- gestikk-old/gestikk/start_main.py 2008-11-22 22:07:31.619527280 +0100 >+++ gestikk-0.6/gestikk/start_main.py 2008-11-22 22:13:43.902613840 +0100 >@@ -31,9 +31,6 @@ import subprocess > import signal > import gtk > import gobject >-import pynotify >-if not pynotify.init("gestikk"): >- print "Libnotify daemon error!" > > import osd > from gestikk.tools import * >@@ -102,26 +99,6 @@ class StatusIcon: > subprocess.Popen([get_file('gestikk', 'executable'), '-c', '-q']) > > >-class Notifier: >- """ class for notifying the user when a gesture started """ >- def __init__(self, logic, statusicon): >- self.logic = logic >- self.statusicon = statusicon >- >- def notify(self, s, gesture): >- """ Notify and display `s` >- :type s: String >- """ >- notify = pynotify.Notification(_("Notification"), s.replace('<', '<').replace('>', '>')) >- screen, rect, orient = self.statusicon.icon.get_geometry() >- notify.set_hint("x", rect.x + (rect.width / 2)) >- notify.set_hint("y", rect.y + (rect.height / 2)) >- notify.set_timeout(3000) # timeout in ms >- color = self.logic.config_get_option('OSD', 'color', '#0000FF') >- pb = pixmap_to_pixbuf(gesture_to_pixmap(gesture2py(gesture), 40, color), (255, 255, 255)) >- notify.set_icon_from_pixbuf(pb) >- notify.show() >- > class Listener: > """ class for listening the mouse positions """ > def __init__(self, logic, notifier, debugger): >@@ -224,9 +201,8 @@ class Listener: > if action.check_condition(): > action.do() > self.debugger.debug(self.notify_string(gesture_repr)) >- if self.notify_method == 'balloon' or self.notify_method == 'osd': >- self.notifier.notify(action.get_formatted(), action.gesture) > if self.notify_method == 'osd': >+ self.notifier.notify(action.get_formatted(), action.gesture) > gobject.timeout_add(3000, self._osd_clear) # show it 2 sec > return self.running > >@@ -248,8 +224,6 @@ class Listener: > self.notify_method = self.logic.config_get_option('Notification', 'type') > if isinstance(self.notifier, osd.OSDNotifier): > self.notifier.destroy() >- if self.notify_method == 'balloon': >- self.notifier = Notifier(self.logic, self.logic.status_icon) > elif self.notify_method == 'osd': > notify_colorstr = self.logic.config_get_option('Notification', 'color', 'red') > notify_font = self.logic.config_get_option('Notification', 'font', 'Sans') >@@ -269,11 +243,7 @@ def main(debug): > logic.status_icon = status # Not clean... TODO? > # get notifiers > notify_m = logic.config_get_option('Notification', 'type') >- if notify_m == 'balloon': >- debugger.debug("Using balloontip notification") >- notifier = Notifier(logic, status) >- osd_obj = False >- elif notify_m == 'osd': >+ if notify_m == 'osd': > debugger.debug("Using OSD notification") > notify_colorstr = logic.config_get_option('Notification', 'color', 'red') > notify_font = logic.config_get_option('Notification', 'font', 'Sans') >diff -dupr gestikk-old/gestikk/tools.py gestikk-0.6/gestikk/tools.py >--- gestikk-old/gestikk/tools.py 2008-11-22 22:07:31.620540520 +0100 >+++ gestikk-0.6/gestikk/tools.py 2008-11-22 22:10:30.428525800 +0100 >@@ -679,7 +679,7 @@ class Logic(): > print 'You have chosen a gesture switcher which is not supported anymore. I\'ll reset it.' > self.current_switcher = 'rightdown' > self.current_switcher_txt = dict_rev(self.gesture_switchers_txt)[self.gesture_switchers.index(self.current_switcher)] >- self.notifiers = {"0":_("None"), "balloon":_("Balloontip"), "osd":_("OSD")} >+ self.notifiers = {"0":_("None"), "osd":_("OSD")} > > self.enable_conditions = True >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 248260
:
172897
|
172899
|
172901
|
172903