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. -