diff options
author | Elliott Sales de Andrade <qulogic@pidgin.im> | 2012-07-23 20:03:44 -0400 |
---|---|---|
committer | Elliott Sales de Andrade <qulogic@pidgin.im> | 2012-07-23 20:03:44 -0400 |
commit | 2c87ac897d4d073d225624b35b608742f78a9bd4 (patch) | |
tree | 2af61500f3472af78d8ccd25043fdead0614f8ab | |
parent | e2d64dfd8d947da00f7d99ba2527780b450ce930 (diff) | |
download | pidgin-2c87ac897d4d073d225624b35b608742f78a9bd4.tar.gz |
Remove periodic blinking function.
This timer was only necessary to blank and then re-show the status icon,
but the status icon has a function to enable blinking itself.
-rw-r--r-- | pidgin/gtkdocklet.c | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/pidgin/gtkdocklet.c b/pidgin/gtkdocklet.c index 88ce410d30..d525a73e39 100644 --- a/pidgin/gtkdocklet.c +++ b/pidgin/gtkdocklet.c @@ -59,7 +59,6 @@ static PurpleStatusPrimitive status = PURPLE_STATUS_OFFLINE; static gboolean pending = FALSE; static gboolean connecting = FALSE; static gboolean enable_join_chat = FALSE; -static guint docklet_blinking_timer = 0; static gboolean visible = FALSE; static gboolean visibility_manager = FALSE; @@ -112,27 +111,6 @@ docklet_gtk_status_update_icon(PurpleStatusPrimitive status, gboolean connecting } } -static gboolean -docklet_blink_icon(gpointer data) -{ - static gboolean blinked = FALSE; - gboolean ret = FALSE; /* by default, don't keep blinking */ - - blinked = !blinked; - - if(pending && !connecting) { - if (!blinked) { - docklet_gtk_status_update_icon(status, connecting, pending); - } - ret = TRUE; /* keep blinking */ - } else { - docklet_blinking_timer = 0; - blinked = FALSE; - } - - return ret; -} - static GList * get_pending_list(guint max) { @@ -253,12 +231,6 @@ docklet_update_status(void) connecting = newconnecting; docklet_gtk_status_update_icon(status, connecting, pending); - - /* and schedule the blinker function if messages are pending */ - if (purple_prefs_get_bool(PIDGIN_PREFS_ROOT "/docklet/blink") - && pending && !connecting && docklet_blinking_timer == 0) { - docklet_blinking_timer = g_timeout_add(500, docklet_blink_icon, NULL); - } } return FALSE; /* for when we're called by the glib idle handler */ @@ -841,10 +813,6 @@ pidgin_docklet_remove(void) pidgin_blist_visibility_manager_remove(); visibility_manager = FALSE; } - if (docklet_blinking_timer) { - g_source_remove(docklet_blinking_timer); - docklet_blinking_timer = 0; - } visible = FALSE; status = PURPLE_STATUS_OFFLINE; } |