Ignore:
Timestamp:
07/04/19 18:08:19 (5 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
python3
hg-Phase:
(<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
Message:

Using 'GdkPixbuf' instead of 'gdkPixbuf', 'AppIndicator3' instead of 'appindicator' and 'Pango' instead of 'pango' (re #347)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/gui/common.py

    r997 r998  
    2424gi.require_version("Gdk", "3.0")
    2525from gi.repository import Gdk
    26 from gi.repository import GdkPixbuf as gdkPixbuf
     26from gi.repository import GdkPixbuf
    2727gi.require_version("Gtk", "3.0")
    2828from gi.repository import Gtk
    2929try:
    3030    gi.require_version("AppIndicator3", "0.1")
    31     from gi.repository import AppIndicator3 as appindicator
     31    from gi.repository import AppIndicator3
    3232    appIndicator = True
    3333except:
    3434    pass
    35 from gi.repository import Pango as pango
     35from gi.repository import Pango
    3636
    3737
     
    7575POLICY_ALWAYS = Gtk.PolicyType.ALWAYS
    7676
    77 WEIGHT_NORMAL = pango.Weight.NORMAL
    78 WEIGHT_BOLD = pango.Weight.BOLD
     77WEIGHT_NORMAL = Pango.Weight.NORMAL
     78WEIGHT_BOLD = Pango.Weight.BOLD
    7979
    8080WINDOW_STATE_ICONIFIED = Gdk.WindowState.ICONIFIED
     
    9595SELECTION_MULTIPLE = Gtk.SelectionMode.MULTIPLE
    9696
    97 pixbuf_new_from_file = gdkPixbuf.Pixbuf.new_from_file
     97pixbuf_new_from_file = GdkPixbuf.Pixbuf.new_from_file
    9898
    9999import codecs
Note: See TracChangeset for help on using the changeset viewer.