~ubuntu-branches/ubuntu/vivid/blueman/vivid-proposed

« back to all changes in this revision

Viewing changes to blueman/gui/CommonUi.py

  • Committer: Package Import Robot
  • Author(s): Artur Rona
  • Date: 2014-12-24 18:33:36 UTC
  • mfrom: (2.3.8 sid)
  • Revision ID: package-import@ubuntu.com-20141224183336-cyb82ot0y8tz8flq
Tags: 1.99~alpha1-1ubuntu1
* Merge from Debian unstable.  Remaining changes:
  - debian/patches/01_dont_autostart_lxde.patch:
    + Don't autostart the applet in LXDE.
  - debian/patches/03_filemanager_fix.patch:
    + Add support for more filemanagers.
* debian/patches/02_dont_crash_on_non-bluetooth_card.patch:
  - Dropped, no longer applicable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
from blueman.Constants import *
24
24
from blueman.Functions import *
25
25
 
26
 
import gtk
 
26
from gi.repository import Gtk
27
27
 
28
28
 
29
29
def show_about_dialog(app_name, run=True):
36
36
        def url_hook(dialog, url, black_hole):
37
37
                uri_open(url)
38
38
        
39
 
        gtk.about_dialog_set_email_hook(email_hook, None)
40
 
        gtk.about_dialog_set_url_hook(url_hook, None)
 
39
        #FIXME find equivalents with introspection
 
40
        #Gtk.about_dialog_set_email_hook(email_hook, None)
 
41
        #Gtk.about_dialog_set_url_hook(url_hook, None)
41
42
        
42
 
        about = gtk.AboutDialog()
 
43
        about = Gtk.AboutDialog()
43
44
        about.set_name(app_name)
44
45
        about.set_version(VERSION)
45
46
        about.set_translator_credits(_("translator-credits"))
57
58
                about.destroy()
58
59
        else:
59
60
                return about
60
 
 
61