aboutsummaryrefslogtreecommitdiff
path: root/src/core/eggtrayicon.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/eggtrayicon.c')
-rw-r--r--src/core/eggtrayicon.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/core/eggtrayicon.c b/src/core/eggtrayicon.c
index dc3f139e..73620b3f 100644
--- a/src/core/eggtrayicon.c
+++ b/src/core/eggtrayicon.c
@@ -200,7 +200,7 @@ egg_tray_icon_init (EggTrayIcon * icon)
200 icon->stamp = 1; 200 icon->stamp = 1;
201 icon->orientation = GTK_ORIENTATION_HORIZONTAL; 201 icon->orientation = GTK_ORIENTATION_HORIZONTAL;
202 202
203 gtk_widget_add_events (GTK_WIDGET (icon), GDK_PROPERTY_CHANGE_MASK); 203 gtk_widget_add_events (GTK_WIDGET (icon), GDK_PROPERTY_CHANGNUNET_GEMASK);
204} 204}
205 205
206static void 206static void
@@ -544,7 +544,7 @@ 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_MESSAGE_DATA", False); 547 "_NET_SYSTEM_TRAY_MESSAGNUNET_GEDATA", False);
548 if (len > 20) 548 if (len > 20)
549 { 549 {
550 memcpy (&ev.data, message, 20); 550 memcpy (&ev.data, message, 20);
@@ -592,7 +592,7 @@ egg_tray_icon_get_orientation (EggTrayIcon * icon)
592static gboolean 592static gboolean
593on_tray_quit_activate (GtkWidget * widget, GdkEvent * event, gpointer data) 593on_tray_quit_activate (GtkWidget * widget, GdkEvent * event, gpointer data)
594{ 594{
595 gnunet_gtk_main_quit (); 595 GNUNET_GTK_main_quit ();
596 return TRUE; 596 return TRUE;
597} 597}
598 598
@@ -607,13 +607,13 @@ tray_clicked (GtkWidget * widget, GdkEvent * event)
607 if (event_button->button == 1) 607 if (event_button->button == 1)
608 { 608 {
609 GtkWidget *root; 609 GtkWidget *root;
610 root = glade_xml_get_widget (getMainXML (), "mainWindow"); 610 root = glade_xml_get_widget (GNUNET_GTK_get_main_glade_XML (), "mainWindow");
611 GdkWindowState main_window_state; 611 GdkWindowState main_window_state;
612 if (gtk_window_is_active (GTK_WINDOW (root))) 612 if (gtk_window_is_active (GTK_WINDOW (root)))
613 gtk_widget_hide (root); 613 gtk_widget_hide (root);
614 else 614 else
615 gtk_window_present (GTK_WINDOW (root)); 615 gtk_window_present (GTK_WINDOW (root));
616 main_window_state = getMainWindowState (); 616 main_window_state = GNUNET_GTK_get_main_window_state ();
617 if (main_window_state & GDK_WINDOW_STATE_MAXIMIZED) 617 if (main_window_state & GDK_WINDOW_STATE_MAXIMIZED)
618 gtk_window_maximize (GTK_WINDOW (root)); 618 gtk_window_maximize (GTK_WINDOW (root));
619 return TRUE; 619 return TRUE;
@@ -645,7 +645,7 @@ initTrayIcon ()
645 char *iconPath; 645 char *iconPath;
646 646
647 trayContextMenuXML = 647 trayContextMenuXML =
648 glade_xml_new (getGladeFileName (), "trayContextMenu", PACKAGE_NAME); 648 glade_xml_new (GNUNET_GTK_get_glade_filename (), "trayContextMenu", PACKAGNUNET_GENAME);
649 trayContextMenu = 649 trayContextMenu =
650 glade_xml_get_widget (trayContextMenuXML, "trayContextMenu"); 650 glade_xml_get_widget (trayContextMenuXML, "trayContextMenu");
651 tray_quit = glade_xml_get_widget (trayContextMenuXML, "tray_quit"); 651 tray_quit = glade_xml_get_widget (trayContextMenuXML, "tray_quit");