diff options
Diffstat (limited to 'mktrayicon.c')
-rw-r--r-- | mktrayicon.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/mktrayicon.c b/mktrayicon.c index 1a6328e..932a5e1 100644 --- a/mktrayicon.c +++ b/mktrayicon.c @@ -169,11 +169,8 @@ static GtkStatusIcon *create_tray_icon(char *start_icon) GtkStatusIcon *tray_icon; tray_icon = gtk_status_icon_new_from_icon_name(start_icon); - g_signal_connect(G_OBJECT(tray_icon), "activate", - G_CALLBACK(tray_icon_on_click), NULL); - g_signal_connect(G_OBJECT(tray_icon), - "popup-menu", - G_CALLBACK(tray_icon_on_menu), NULL); + g_signal_connect(G_OBJECT(tray_icon), "activate", G_CALLBACK(tray_icon_on_click), NULL); + g_signal_connect(G_OBJECT(tray_icon), "popup-menu", G_CALLBACK(tray_icon_on_menu), NULL); gtk_status_icon_set_visible(tray_icon, TRUE); return tray_icon; @@ -189,12 +186,12 @@ int main(int argc, char **argv) gtk_init(&argc, &argv); if (argc == 4 && strcmp(argv[1], "-i") == 0) { - start_icon = argv[2]; + start_icon = argv[2]; } if (argc == 1) { - /* usage */ - return 0; + /* usage */ + return 0; } icon = create_tray_icon(start_icon); |