Commit 70a0d1a3 authored by Benjamin Otte's avatar Benjamin Otte

tests: Remove multiscreen code from teststusicon

parent 4b75077c
......@@ -65,7 +65,7 @@ screen_changed_cb (GtkStatusIcon *icon)
}
static void
update_icons (void)
update_icon (void)
{
GSList *l;
gchar *icon_name;
......@@ -99,7 +99,7 @@ timeout_handler (gpointer data)
else
status = TEST_STATUS_INFO;
update_icons ();
update_icon ();
return TRUE;
}
......@@ -259,22 +259,11 @@ popup_menu (GtkStatusIcon *icon,
int
main (int argc, char **argv)
{
GdkDisplay *display;
guint n_screens, i;
GtkStatusIcon *icon;
gtk_init (&argc, &argv);
display = gdk_display_get_default ();
n_screens = gdk_display_get_n_screens (display);
for (i = 0; i < n_screens; i++)
{
GtkStatusIcon *icon;
icon = gtk_status_icon_new ();
gtk_status_icon_set_screen (icon, gdk_display_get_screen (display, i));
update_icons ();
g_signal_connect (icon, "size-changed", G_CALLBACK (size_changed_cb), NULL);
g_signal_connect (icon, "notify::embedded", G_CALLBACK (embedded_changed_cb), NULL);
......@@ -290,10 +279,9 @@ main (int argc, char **argv)
icons = g_slist_append (icons, icon);
update_icons ();
update_icon ();
timeout = gdk_threads_add_timeout (2000, timeout_handler, icon);
}
gtk_main ();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment