xapp-icon-chooser-dialog.c: prevent segfault on non-existent icon name (#76)
With the addition of the xapp_icon_chooser_dialog_add_custom_category it is now possible to have non-existent icon names. To prevent a segfault, these icon names are now skipped.
- Removed popup-menu signal. All menu handling is done within XAppStatusIcon.
- Primary and secondary menu can be set now.
- Buttons with no corresponding menu will always send the 'activate' signal
instead.
- Middle button always sends activate.
- button-press- and button-release events are always sent regardless.
- Added more test scripts to test various possible menu configurations.
- Re-use some common code for native and fallback.
icon chooser dialog: add *_add_custom_category () function
This function allows to specify a new category in the dialog's category list, which will (when selected) show the icons from the provided list of icon names.
This property, when set, will cause the dialog to show a revert button. When that button is pressed, it will set the currently selected item to the default icon.