Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37404107
en ru br
ALT Linux repos
S:1.4.1-alt4

Group :: Graphical desktop/GNOME
RPM: onboard

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: onboard-no-appindicator.patch
Download


diff --git a/onboard/Onboard/Indicator.py b/onboard/Onboard/Indicator.py
index 0a9bed6..92888b7 100644
--- a/onboard/Onboard/Indicator.py
+++ b/onboard/Onboard/Indicator.py
@@ -105,14 +105,7 @@ class Indicator(GObject.GObject):
                 self._menu.get_children()[1].hide()
 
     def _init_indicator(self):
-        from gi.repository import AppIndicator3 as AppIndicator
-        self._indicator = AppIndicator.Indicator.new(
-            "Onboard",
-            "onboard",
-            AppIndicator.IndicatorCategory.APPLICATION_STATUS)
-        self._indicator.set_icon_full("onboard", _("Onboard on-screen keyboard"))
-
-        self._indicator.set_menu(self._menu)
+	    raise ImportError('No AppIndicator on ALT')
 
     def _init_status_icon(self):
         self._status_icon = Gtk.StatusIcon(icon_name="onboard")
@@ -149,7 +142,7 @@ class Indicator(GObject.GObject):
 
     def _set_indicator_active(self, active):
         try:
-            from gi.repository import AppIndicator3 as AppIndicator
+	    raise ImportError('No AppIndicator on ALT')
         except ImportError:
             pass
         else:
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin