Esempio n. 1
0
 def set_sound_theme(self, theme):
     if self.desktop == "mate":
         gstheme = gsettings.get_schema('org.mate.sound')
         gstheme.set_string('theme-name', theme)
     else:
         gstheme = gsettings.get_schema('org.gnome.desktop.sound')
         gstheme.set_string('theme-name', theme)
Esempio n. 2
0
 def set_sound_theme(self, theme):
     if self.desktop == "mate":
         gstheme = gsettings.get_schema('org.mate.sound')
         gstheme.set_string('theme-name',theme)
     else:
         gstheme = gsettings.get_schema('org.gnome.desktop.sound')
         gstheme.set_string('theme-name',theme)
Esempio n. 3
0
 def set_cursor_size(self, size):
     if self.desktop == "mate":
         gstheme = gsettings.get_schema('org.mate.peripherals-mouse')
         gstheme.set_int('cursor-size', size)
     else:
         gstheme = gsettings.get_schema('org.gnome.desktop.interface')
         gstheme.set_int('cursor-size', size)
Esempio n. 4
0
 def set_cursor_theme(self, theme):
     if self.desktop == "mate":
         gstheme = gsettings.get_schema('org.mate.peripherals-mouse')
         gstheme.set_string('cursor-theme', theme)
     else:
         gstheme = gsettings.get_schema('org.gnome.desktop.interface')
         gstheme.set_string('cursor-theme', theme)
Esempio n. 5
0
 def set_icon_theme(self, theme):
     if self.desktop == "mate":
         gstheme = gsettings.get_schema('org.mate.interface')
         gstheme.set_string('icon-theme',theme)
     else:
         gstheme = gsettings.get_schema('org.gnome.desktop.interface')
         gstheme.set_string('icon-theme',theme)
Esempio n. 6
0
 def set_theme(self, theme):
     if self.desktop == "mate":
         gstheme = gsettings.get_schema('org.mate.interface')
         gstheme.set_string('gtk-theme',theme)
     else:
         gstheme = gsettings.get_schema('org.gnome.desktop.interface')
         gstheme.set_string('gtk-theme',theme)
         _gstheme = gsettings.get_schema('org.gnome.desktop.wm.preferences')
         _gstheme.set_string('theme',theme)
Esempio n. 7
0
 def get_launcher_have_showdesktopicon(self):
     launcher = gsettings.get_schema('com.canonical.Unity.Launcher')
     icons = launcher.get_strv('favorites')
     desktop = 'unity://desktop-icon'
     if desktop in icons:
         return True
     else:
         return False
Esempio n. 8
0
 def get_launcher_have_showdesktopicon(self):
     launcher = gsettings.get_schema('com.canonical.Unity.Launcher')
     icons = launcher.get_strv('favorites')
     desktop = 'unity://desktop-icon'
     if desktop in icons:
         return True
     else:
         return False
Esempio n. 9
0
 def set_launcher_have_showdesktopicon(self, flag):
     launcher = gsettings.get_schema('com.canonical.Unity.Launcher')
     icons = launcher.get_strv('favorites')
     desktop = 'unity://desktop-icon'
     if flag == True:
         if desktop not in icons:
             icons.append(desktop)
             launcher.set_strv('favorites', icons)
     else:
         if desktop in icons:
             icons.remove(desktop)
             launcher.set_strv('favorites', icons)
Esempio n. 10
0
 def set_launcher_have_showdesktopicon(self, flag):
     launcher = gsettings.get_schema('com.canonical.Unity.Launcher')
     icons = launcher.get_strv('favorites')
     desktop = 'unity://desktop-icon'
     if flag == True:
         if desktop not in icons:
             icons.append(desktop)
             launcher.set_strv('favorites', icons)
     else:
         if desktop in icons:
             icons.remove(desktop)
             launcher.set_strv('favorites', icons)
Esempio n. 11
0
 def set_sound_theme(self, theme):
     gstheme = gsettings.get_schema('org.gnome.desktop.sound')
     gstheme.set_string('theme-name',theme)
Esempio n. 12
0
 def set_sound_theme(self, theme):
     gstheme = gsettings.get_schema('org.gnome.desktop.sound')
     gstheme.set_string('theme-name',theme)
Esempio n. 13
0
 def set_cursor_size(self, size):
     gstheme = gsettings.get_schema('org.gnome.desktop.interface')
     gstheme.set_int('cursor-size', size)
Esempio n. 14
0
 def set_cursor_theme(self, theme):
     gstheme = gsettings.get_schema('org.gnome.desktop.interface')
     gstheme.set_string('cursor-theme', theme)
Esempio n. 15
0
 def set_icon_theme(self, theme):
     gstheme = gsettings.get_schema('org.gnome.desktop.interface')
     gstheme.set_string('icon-theme', theme)