| #include <gtk/gtk.h> | |
| #include <libappindicator/app-indicator.h> | |
| int main(int argc, char **argv) { | |
| gtk_init(&argc, &argv); | |
| AppIndicator *app_indicator; | |
| app_indicator = app_indicator_new("foo", | |
| "", | |
| APP_INDICATOR_CATEGORY_APPLICATION_STATUS); | |
| app_indicator_set_status(app_indicator, APP_INDICATOR_STATUS_ACTIVE); | |
| app_indicator_set_label(app_indicator, "foo", "foo"); | |
| gtk_main(); | |
| return(0); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
mpereira commentedJul 1, 2012
I'm compiling it with:
The compilation succeeds without warnings and the program is also run without warnings if run by the super user. If not, it yields the following output: