Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 3.141.29.119
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
ibus /
setup /
Delete
Unzip
Name
Size
Permission
Date
Action
emojilang.py
11.01
KB
-rw-r--r--
2017-10-22 10:31
emojilang.pyc
11.33
KB
-rw-r--r--
2020-11-16 16:23
emojilang.pyo
11.33
KB
-rw-r--r--
2020-11-16 16:23
engineabout.py
4.92
KB
-rw-r--r--
2017-10-22 10:31
engineabout.pyc
3.98
KB
-rw-r--r--
2020-11-16 16:23
engineabout.pyo
3.98
KB
-rw-r--r--
2020-11-16 16:23
enginecombobox.py
6.11
KB
-rw-r--r--
2017-10-22 10:31
enginecombobox.pyc
5.36
KB
-rw-r--r--
2020-11-16 16:23
enginecombobox.pyo
5.36
KB
-rw-r--r--
2020-11-16 16:23
enginedialog.py
12.67
KB
-rw-r--r--
2017-10-22 10:31
enginedialog.pyc
11.64
KB
-rw-r--r--
2020-11-16 16:23
enginedialog.pyo
11.64
KB
-rw-r--r--
2020-11-16 16:23
enginetreeview.py
9.86
KB
-rw-r--r--
2017-10-22 10:31
enginetreeview.pyc
9.74
KB
-rw-r--r--
2020-11-16 16:23
enginetreeview.pyo
9.74
KB
-rw-r--r--
2020-11-16 16:23
i18n.py
2.14
KB
-rw-r--r--
2017-10-22 10:31
i18n.pyc
1.65
KB
-rw-r--r--
2020-11-16 16:23
i18n.pyo
1.65
KB
-rw-r--r--
2020-11-16 16:23
icon.py
2.83
KB
-rw-r--r--
2017-10-22 10:31
icon.pyc
1.46
KB
-rw-r--r--
2020-11-16 16:23
icon.pyo
1.46
KB
-rw-r--r--
2020-11-16 16:23
keyboardshortcut.py
13.88
KB
-rw-r--r--
2017-10-22 10:31
keyboardshortcut.pyc
12.91
KB
-rw-r--r--
2020-11-16 16:23
keyboardshortcut.pyo
12.91
KB
-rw-r--r--
2020-11-16 16:23
main.py
27.55
KB
-rw-r--r--
2017-10-22 10:31
main.pyc
21.39
KB
-rw-r--r--
2020-11-16 16:23
main.pyo
21.39
KB
-rw-r--r--
2020-11-16 16:23
setup.ui
78.49
KB
-rw-r--r--
2017-10-22 10:31
Save
Rename
# vim:set et sts=4 sw=4: # # ibus - The Input Bus # # Copyright (c) 2007-2010 Peng Huang <shawn.p.huang@gmail.com> # Copyright (c) 2007-2010 Red Hat, Inc. # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 # USA __all__ = ( "load_icon" ) from gi.repository import Gdk from gi.repository import GdkPixbuf from gi.repository import Gtk from os import path icon_theme = Gtk.IconTheme.get_default() dir = path.dirname(__file__) icondir = path.join(dir, "..", "icons") icon_theme.prepend_search_path(icondir) icon_cache = {} # load_icon: # @icon_name_or_path: Can be a name or path but not stock id # because gtk_icon_theme_load_icon() cannot fallback the stock id to # a real file name against gtk_image_new_from_stock(). # @size: #GtkIconSize def load_icon(icon_name_or_path, size): if (icon_name_or_path, size) in icon_cache: return icon_cache[(icon_name_or_path, size)] icon_size = Gtk.icon_size_lookup(size) if icon_size[0]: icon_size = icon_size[1] pixbuf = None try: pixbuf = GdkPixbuf.Pixbuf.new_from_file(icon_name_or_path) w, h = pixbuf.get_width(), pixbuf.get_height() rate = max(w, h) / float(icon_size) w = int(w / rate) h = int(h / rate) pixbuf = pixbuf.scale_simple(w, h, GdkPixbuf.InterpType.BILINEAR) except: # import traceback # traceback.print_exc() pass if pixbuf == None: try: theme = Gtk.IconTheme.get_default() pixbuf = theme.load_icon(icon_name_or_path, icon_size, 0) except: # import traceback # traceback.print_exc() pass if pixbuf == None: try: theme = Gtk.IconTheme.get_default() pixbuf = theme.load_icon('ibus-engine', icon_size, 0) except: # import traceback # traceback.print_exc() pass if pixbuf == None: try: theme = Gtk.IconTheme.get_default() pixbuf = theme.load_icon('image-missing', icon_size, 0) except: # import traceback # traceback.print_exc() pass icon_cache[(icon_name_or_path, size)] = pixbuf return pixbuf