[gnome-applets] windowpicker/task-item.c: Rename timer to blink_timer
- From: Sebastian Geiger <segeiger src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-applets] windowpicker/task-item.c: Rename timer to blink_timer
- Date: Tue, 9 Jun 2015 11:34:42 +0000 (UTC)
commit d65f1c206ccbd9295214c06c969b381396a5c234
Author: Sebastian Geiger <sbastig gmx net>
Date: Mon Jun 8 23:42:08 2015 +0200
windowpicker/task-item.c: Rename timer to blink_timer
windowpicker/src/task-item.c | 15 +++++++--------
1 files changed, 7 insertions(+), 8 deletions(-)
---
diff --git a/windowpicker/src/task-item.c b/windowpicker/src/task-item.c
index 9b72308..babae4d 100644
--- a/windowpicker/src/task-item.c
+++ b/windowpicker/src/task-item.c
@@ -42,7 +42,7 @@ struct _TaskItemPrivate {
GdkPixbuf *pixbuf;
GdkRectangle area;
GTimeVal urgent_time;
- guint timer;
+ guint blink_timer;
gboolean mouse_over;
WindowPickerApplet *windowPickerApplet;
};
@@ -427,7 +427,7 @@ static gboolean on_blink (TaskItem *item) {
if (wnck_window_or_transient_needs_attention (item->priv->window)) {
return TRUE;
} else {
- item->priv->timer = 0;
+ item->priv->blink_timer = 0;
return FALSE;
}
}
@@ -441,8 +441,8 @@ static void on_window_state_changed (
g_return_if_fail (WNCK_IS_WINDOW (window));
g_return_if_fail (TASK_IS_ITEM (taskItem));
TaskItemPrivate *priv = taskItem->priv;
- if (new_state & WNCK_WINDOW_STATE_URGENT && !priv->timer) {
- priv->timer = g_timeout_add (30, (GSourceFunc)on_blink, taskItem);
+ if (new_state & WNCK_WINDOW_STATE_URGENT && !priv->blink_timer) {
+ priv->blink_timer = g_timeout_add (30, (GSourceFunc)on_blink, taskItem);
g_get_current_time (&priv->urgent_time);
}
task_item_set_visibility (taskItem);
@@ -737,9 +737,8 @@ task_item_dispose (GObject *object)
static void task_item_finalize (GObject *object) {
TaskItemPrivate *priv = TASK_ITEM (object)->priv;
- /* remove timer */
- if (priv->timer) {
- g_source_remove (priv->timer);
+ if (priv->blink_timer) {
+ g_source_remove (priv->blink_timer);
}
if (GDK_IS_PIXBUF (priv->pixbuf)) {
@@ -767,7 +766,7 @@ static void task_item_class_init (TaskItemClass *klass) {
static void task_item_init (TaskItem *item) {
TaskItemPrivate *priv = item->priv = TASK_ITEM_GET_PRIVATE (item);
- priv->timer = 0;
+ priv->blink_timer = 0;
}
GtkWidget *task_item_new (WindowPickerApplet* windowPickerApplet, WnckWindow *window) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]