From c6006562c2fe1ff096f58bde78a5b2b613f4cf7a Mon Sep 17 00:00:00 2001 From: claudiux Date: Mon, 31 Jul 2023 17:39:20 +0200 Subject: [PATCH] Updated write-applet.xml - New example (Cin from 4.6 to 5.8+ --- .../cinnamon-tutorials/write-applet.xml | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/docs/reference/cinnamon-tutorials/write-applet.xml b/docs/reference/cinnamon-tutorials/write-applet.xml index eb6f828034..62219682d4 100644 --- a/docs/reference/cinnamon-tutorials/write-applet.xml +++ b/docs/reference/cinnamon-tutorials/write-applet.xml @@ -272,7 +272,7 @@ - Note that set_applet_icon_symbolic_name is a function defined inside Applet.IconApplet, which makes the applet display the corresponding icon. By using the applet API, we have saved ourselves from the hassle of creating icons and putting them in the right place. (bell-notif is the name of an icon from the user's icon set. The icons available for use can be found in /usr/share/icons/ or in the icons folder of this applet) + Note that set_applet_icon_symbolic_name is a function defined inside Applet.IconApplet, which makes the applet display the corresponding icon. By using the applet API, we have saved ourselves from the hassle of creating icons and putting them in the right place. (bell-notif is the name of an icon from the user's icon set. The icons available for use can be found in /usr/share/icons/ or in the icons/ folder of this applet) @@ -292,20 +292,5 @@ There is a way to translate messages such as "Click here to send a notification". Please see Translating applets. - - - That is all the code in our _init function. Now we have to wait for the user to click on the applet. The applet API automatically helps you to listen to these events, and when the user presses the applet, the API will call the on_applet_clicked of your applet. Here we have - - - - on_applet_clicked: function() { - Util.spawn(['xkill']); - } - - - - - which calls the spawn function from Util, and launches an external command, xkill. -