'How to make a popup menu in GTK

NOOB ALERT

I am making a simple GTK application, and as it's my first time using a UI toolkit, I'm a bit confused. No matter what I do, I can't seem to make the menu's (icon::menu) contents to appear when the status icon is right clicked. Instead, I just get a blank menu:

1

I genuinely do not know what could be going wrong here, I looked everywhere for examples and such and I can't figure out what is wrong with my code. Any help would be greatly appreciated. Thanks!

Also, apologies for the lack of detail in my question, I'm completely lost and I don't know where to even start debugging.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source