diff options
Diffstat (limited to 'src/core/eggtrayicon.c')
-rw-r--r-- | src/core/eggtrayicon.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/core/eggtrayicon.c b/src/core/eggtrayicon.c index 73620b3f..c855c960 100644 --- a/src/core/eggtrayicon.c +++ b/src/core/eggtrayicon.c | |||
@@ -544,7 +544,8 @@ egg_tray_icon_send_message (EggTrayIcon * icon, | |||
544 | ev.window = (Window) gtk_plug_get_id (GTK_PLUG (icon)); | 544 | ev.window = (Window) gtk_plug_get_id (GTK_PLUG (icon)); |
545 | ev.format = 8; | 545 | ev.format = 8; |
546 | ev.message_type = XInternAtom (xdisplay, | 546 | ev.message_type = XInternAtom (xdisplay, |
547 | "_NET_SYSTEM_TRAY_MESSAGNUNET_GEDATA", False); | 547 | "_NET_SYSTEM_TRAY_MESSAGNUNET_GEDATA", |
548 | False); | ||
548 | if (len > 20) | 549 | if (len > 20) |
549 | { | 550 | { |
550 | memcpy (&ev.data, message, 20); | 551 | memcpy (&ev.data, message, 20); |
@@ -607,7 +608,9 @@ tray_clicked (GtkWidget * widget, GdkEvent * event) | |||
607 | if (event_button->button == 1) | 608 | if (event_button->button == 1) |
608 | { | 609 | { |
609 | GtkWidget *root; | 610 | GtkWidget *root; |
610 | root = glade_xml_get_widget (GNUNET_GTK_get_main_glade_XML (), "mainWindow"); | 611 | root = |
612 | glade_xml_get_widget (GNUNET_GTK_get_main_glade_XML (), | ||
613 | "mainWindow"); | ||
611 | GdkWindowState main_window_state; | 614 | GdkWindowState main_window_state; |
612 | if (gtk_window_is_active (GTK_WINDOW (root))) | 615 | if (gtk_window_is_active (GTK_WINDOW (root))) |
613 | gtk_widget_hide (root); | 616 | gtk_widget_hide (root); |
@@ -645,7 +648,8 @@ initTrayIcon () | |||
645 | char *iconPath; | 648 | char *iconPath; |
646 | 649 | ||
647 | trayContextMenuXML = | 650 | trayContextMenuXML = |
648 | glade_xml_new (GNUNET_GTK_get_glade_filename (), "trayContextMenu", PACKAGNUNET_GENAME); | 651 | glade_xml_new (GNUNET_GTK_get_glade_filename (), "trayContextMenu", |
652 | PACKAGNUNET_GENAME); | ||
649 | trayContextMenu = | 653 | trayContextMenu = |
650 | glade_xml_get_widget (trayContextMenuXML, "trayContextMenu"); | 654 | glade_xml_get_widget (trayContextMenuXML, "trayContextMenu"); |
651 | tray_quit = glade_xml_get_widget (trayContextMenuXML, "tray_quit"); | 655 | tray_quit = glade_xml_get_widget (trayContextMenuXML, "tray_quit"); |