diff options
author | waker <wakeroid@gmail.com> | 2009-08-16 19:03:31 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2009-08-16 19:03:31 +0200 |
commit | 97da31bb0e0b426f06eb8ba4c35d60b11ceca24a (patch) | |
tree | 5b797840df4579e884f3f547a65dd69d9188d543 /main.c | |
parent | 72254e73f91e9385184bca91d8bdcc575a26e618 (diff) |
fixed gtkstatusicon use
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -43,7 +43,7 @@ GtkWidget *mainwin; GtkWidget *searchwin; -GtkWidget *trayicon; +GtkStatusIcon *trayicon; GtkWidget *traymenu; gtkplaylist_t main_playlist; @@ -509,9 +509,8 @@ main (int argc, char *argv[]) { // system tray icon traymenu = create_traymenu (); GdkPixbuf *trayicon_pixbuf = create_pixbuf ("play_24.png"); - trayicon = GTK_WIDGET (gtk_status_icon_new_from_pixbuf (trayicon_pixbuf)); - gtk_widget_show (trayicon); - gtk_status_icon_set_tooltip_text (GTK_STATUS_ICON (trayicon), "DeaDBeeF"); + trayicon = gtk_status_icon_new_from_pixbuf (trayicon_pixbuf); + gtk_status_icon_set_tooltip_text (trayicon, "DeaDBeeF"); //gtk_status_icon_set_title (GTK_STATUS_ICON (trayicon), "DeaDBeeF"); g_signal_connect ((gpointer)trayicon, "scroll_event", G_CALLBACK (on_trayicon_scroll_event), NULL); g_signal_connect ((gpointer)trayicon, "button_press_event", G_CALLBACK (on_trayicon_button_press_event), NULL); |