SHARE
Facebook X Pinterest WhatsApp

LinuxDev.net: Writing Gnome Panel Applets III: Advanced Features

Written By
thumbnail
Web Webster
Web Webster
Jun 6, 2000

[ Thanks to BeOpen
for this link. ]

“In this last article in the series “Writing GNOME Panel
Applets”, we will go through a few features that you, as an applet
developer, need to know. To begin with, you will learn how to
create sub-menus in the panel menu. We will not just implement
a sub-menu in our panel menu, but we will also create a feature
that makes use of it. Then, we will go through a feature called
session saving.
Session saving makes it possible to save
information to file, so that it can be accessed between sessions.
Exactly how it can be used is up to your own imagination and need,
but our example may give you some ideas. In the last section of
this article, we’ll show you how to install an applet into the
GNOME environment so that users will be able to add your applet to
their panel.”

“Sub-menus can be used to arrange your menu items sensibly. If
you need to add many entries to the menu, this feature is
invaluable. In this section, we will go through an example of how a
sub-menu can be used. As usual, the example builds on the applet we
created in the first article of this series (the applet that adds
the text “BeOpen” to the panel).”

“What if you want the applet to remember your selected option,
and then start with that option as default? You won’t have to
re-select the option every time you start the applet. In our simple
example, this would mean that if you had selected the “True”
menu-item from the sub-menu, the applet would remember this even if
you terminated it and re-started it later. In a more complex
applet, with many options, this is actually very useful.”

Complete
Story

thumbnail
Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Recommended for you...

5 Best Free and Open Source Text Expander Tools
webmaster
Jun 13, 2025
Grafito: Systemd Journal Log Viewer with a Beautiful Web UI
Bobby Borisov
Jun 12, 2025
FreeBSD Wants to Know a Few Things
brideoflinux
May 11, 2025
NVK enabled for Maxwell, Pascal, and Volta GPUs
Kara Bembridge
May 1, 2025
Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2025 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.