Removed unused imports and some other stuff

This commit is contained in:
monsta 2014-03-28 14:46:28 +04:00
parent 8c2ef69ca9
commit 52a030411a
3 changed files with 1 additions and 12 deletions

View File

@ -9,7 +9,6 @@ from gi.repository import Gio
try: try:
import sys import sys
from gi.repository import Pango
import os import os
import commands import commands
import gettext import gettext
@ -18,7 +17,6 @@ try:
import gc import gc
import ctypes import ctypes
from ctypes import * from ctypes import *
import capi
import xdg.Config import xdg.Config
import keybinding import keybinding
import pointerMonitor import pointerMonitor
@ -28,14 +26,12 @@ except Exception, e:
GObject.threads_init() GObject.threads_init()
gtk = CDLL("libgtk-x11-2.0.so.0")
gdk = CDLL("libgdk-x11-2.0.so.0") gdk = CDLL("libgdk-x11-2.0.so.0")
# Rename the process # Rename the process
architecture = commands.getoutput("uname -a") architecture = commands.getoutput("uname -a")
if (architecture.find("x86_64") >= 0): if (architecture.find("x86_64") >= 0):
import ctypes libc = CDLL('libc.so.6')
libc = ctypes.CDLL('libc.so.6')
libc.prctl(15, 'mintmenu', 0, 0, 0) libc.prctl(15, 'mintmenu', 0, 0, 0)
else: else:
import dl import dl

View File

@ -6,8 +6,6 @@ gi.require_version("Gtk", "2.0")
from gi.repository import Gtk, Pango, Gdk, Gio, GLib from gi.repository import Gtk, Pango, Gdk, Gio, GLib
import os import os
#import mateconf
import fnmatch
import time import time
import string import string
import gettext import gettext
@ -16,7 +14,6 @@ import commands
import subprocess import subprocess
import filecmp import filecmp
import ctypes import ctypes
import capi
from ctypes import * from ctypes import *
from easybuttons import * from easybuttons import *
from execute import Execute from execute import Execute

View File

@ -2,11 +2,7 @@ import gi
gi.require_version("Gtk", "2.0") gi.require_version("Gtk", "2.0")
from gi.repository import Gtk, Pango from gi.repository import Gtk, Pango
import sys
import os import os
import gobject
import datetime
import fcntl
from easygsettings import EasyGSettings from easygsettings import EasyGSettings
from execute import Execute from execute import Execute
from easyfiles import * from easyfiles import *