Created
July 1, 2012 00:37
-
-
Save mpereira/3026227 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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
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: