Skip to content
richardeigenmannPublic

About

Create a Systray icon with C++ and GTK

Resources

Stars

1 star

Watchers

1 watching

Forks

Repository files navigation

Systray Experiments

Description

This project is about creating a systray icon. It is a C++ program which uses GTK3+ to create and interact with a System Tray icon. The menu entries simply call GTK callback functions which can then do any task which may include changing the icon which is demonstrated with the "Low, Medium and High Security" buttons. (Not that any functionality has been associated with this when you try it out.)

Screenshot of the AppIndicator (blue):

Screenshot

The menu expaned when right-clicked:

Screenshot

The changed icon of the AppIndicator (shield):

Screenshot

See also

Prerequisites to build on openSUSE Linux

sudo zypper in gtk3-devel libappindicator3-devel

Build and run

git clone https://github.com/richardeigenmann/Systray.git
cd Systray
mkdir -p build
cd build
cmake ..
# or cmake -DCMAKE_CXX_COMPILER=/usr/bin/clang++ -DCMAKE_CC_COMPILER=/usr/bin/clang ..
# or cmake -DCMAKE_CXX_COMPILER=/usr/bin/g++-6 -DCMAKE_CC_COMPILER=/usr/bin/gcc ..
make
./systrayApp

About

Create a Systray icon with C++ and GTK

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages