Exemple #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)
Exemple #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)
Exemple #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)
Exemple #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)
Exemple #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)
Exemple #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)
Exemple #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
Exemple #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
Exemple #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)
Exemple #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)
Exemple #11
0
 def set_sound_theme(self, theme):
     gstheme = gsettings.get_schema('org.gnome.desktop.sound')
     gstheme.set_string('theme-name',theme)
Exemple #12
0
 def set_sound_theme(self, theme):
     gstheme = gsettings.get_schema('org.gnome.desktop.sound')
     gstheme.set_string('theme-name',theme)
Exemple #13
0
 def set_cursor_size(self, size):
     gstheme = gsettings.get_schema('org.gnome.desktop.interface')
     gstheme.set_int('cursor-size', size)
Exemple #14
0
 def set_cursor_theme(self, theme):
     gstheme = gsettings.get_schema('org.gnome.desktop.interface')
     gstheme.set_string('cursor-theme', theme)
Exemple #15
0
 def set_icon_theme(self, theme):
     gstheme = gsettings.get_schema('org.gnome.desktop.interface')
     gstheme.set_string('icon-theme', theme)