summaryrefslogtreecommitdiff
path: root/tests/teststatusicon.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2010-09-02 09:37:06 -0400
committerMatthias Clasen <mclasen@redhat.com>2010-09-02 09:37:06 -0400
commit18b47b6cd03f0f6da777ad3a5e2795cbf458b804 (patch)
tree3f6e6064c20465f980336674fd659d80cee86e2d /tests/teststatusicon.c
parent46f15e7d68a36d094d1c3be387e5150cb303d42f (diff)
downloadgtk+-18b47b6cd03f0f6da777ad3a5e2795cbf458b804.tar.gz
Remove blinking from status icons
This feature was just a bad idea.
Diffstat (limited to 'tests/teststatusicon.c')
-rwxr-xr-xtests/teststatusicon.c54
1 files changed, 0 insertions, 54 deletions
diff --git a/tests/teststatusicon.c b/tests/teststatusicon.c
index 942a4a54c9..79caeef1a9 100755
--- a/tests/teststatusicon.c
+++ b/tests/teststatusicon.c
@@ -107,16 +107,6 @@ timeout_handler (gpointer data)
}
static void
-blink_toggle_toggled (GtkToggleButton *toggle)
-{
- GSList *l;
-
- for (l = icons; l; l = l->next)
- gtk_status_icon_set_blinking (GTK_STATUS_ICON (l->data),
- gtk_toggle_button_get_active (toggle));
-}
-
-static void
visible_toggle_toggled (GtkToggleButton *toggle)
{
GSList *l;
@@ -177,15 +167,6 @@ icon_activated (GtkStatusIcon *icon)
g_signal_connect (toggle, "toggled",
G_CALLBACK (visible_toggle_toggled), NULL);
- toggle = gtk_toggle_button_new_with_mnemonic ("_Blink the icon");
- gtk_box_pack_end (GTK_BOX (content_area), toggle, TRUE, TRUE, 6);
- gtk_widget_show (toggle);
-
- gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle),
- gtk_status_icon_get_blinking (icon));
- g_signal_connect (toggle, "toggled",
- G_CALLBACK (blink_toggle_toggled), NULL);
-
toggle = gtk_toggle_button_new_with_mnemonic ("_Change images");
gtk_box_pack_end (GTK_BOX (content_area), toggle, TRUE, TRUE, 6);
gtk_widget_show (toggle);
@@ -200,35 +181,6 @@ icon_activated (GtkStatusIcon *icon)
}
static void
-check_activated (GtkCheckMenuItem *item)
-{
- GSList *l;
- GdkScreen *screen;
-
- screen = NULL;
-
- for (l = icons; l; l = l->next)
- {
- GtkStatusIcon *icon = l->data;
- GdkScreen *orig_screen;
-
- orig_screen = gtk_status_icon_get_screen (icon);
-
- if (screen != NULL)
- gtk_status_icon_set_screen (icon, screen);
-
- screen = orig_screen;
-
- gtk_status_icon_set_blinking (icon,
- gtk_check_menu_item_get_active (item));
- }
-
- g_assert (screen != NULL);
-
- gtk_status_icon_set_screen (GTK_STATUS_ICON (icons->data), screen);
-}
-
-static void
do_properties (GtkMenuItem *item,
GtkStatusIcon *icon)
{
@@ -279,11 +231,6 @@ popup_menu (GtkStatusIcon *icon,
gtk_menu_set_screen (GTK_MENU (menu),
gtk_status_icon_get_screen (icon));
- menuitem = gtk_check_menu_item_new_with_label ("Blink");
- gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (menuitem),
- gtk_status_icon_get_blinking (icon));
- g_signal_connect (menuitem, "activate", G_CALLBACK (check_activated), NULL);
-
gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem);
gtk_widget_show (menuitem);
@@ -340,7 +287,6 @@ main (int argc, char **argv)
g_signal_connect (icon, "notify::orientation", G_CALLBACK (orientation_changed_cb), NULL);
g_signal_connect (icon, "notify::screen", G_CALLBACK (screen_changed_cb), NULL);
g_print ("icon size %d\n", gtk_status_icon_get_size (icon));
- gtk_status_icon_set_blinking (GTK_STATUS_ICON (icon), FALSE);
g_signal_connect (icon, "activate",
G_CALLBACK (icon_activated), NULL);