comparison libpurple/idle.c @ 25918:bc8d1607f9b8

propagate from branch 'im.pidgin.pidgin' (head 566d2e86bfd45c806aba1b32d6f85a9a409ff9ea) to branch 'im.pidgin.pidgin.next.minor' (head ffd76856f93610f7cd6178e943d0b61e4220b549)
author Richard Laager <rlaager@wiktel.com>
date Mon, 26 Jan 2009 02:39:55 +0000
parents a6e3cb32cdd2
children 584063555949
comparison
equal deleted inserted replaced
25372:a8db457c421a 25918:bc8d1607f9b8
124 purple_signal_emit(purple_blist_get_handle(), "update-idle"); 124 purple_signal_emit(purple_blist_get_handle(), "update-idle");
125 125
126 idle_reporting = purple_prefs_get_string("/purple/away/idle_reporting"); 126 idle_reporting = purple_prefs_get_string("/purple/away/idle_reporting");
127 auto_away = purple_prefs_get_bool("/purple/away/away_when_idle"); 127 auto_away = purple_prefs_get_bool("/purple/away/away_when_idle");
128 128
129 if (!strcmp(idle_reporting, "system") && 129 if (purple_strequal(idle_reporting, "system") &&
130 (idle_ui_ops != NULL) && (idle_ui_ops->get_time_idle != NULL)) 130 (idle_ui_ops != NULL) && (idle_ui_ops->get_time_idle != NULL))
131 { 131 {
132 /* Use system idle time (mouse or keyboard movement, etc.) */ 132 /* Use system idle time (mouse or keyboard movement, etc.) */
133 time_idle = idle_ui_ops->get_time_idle(); 133 time_idle = idle_ui_ops->get_time_idle();
134 idle_recheck_interval = 1; 134 idle_recheck_interval = 1;
135 } 135 }
136 else if (!strcmp(idle_reporting, "purple")) 136 else if (purple_strequal(idle_reporting, "purple"))
137 { 137 {
138 /* Use 'Purple idle' */ 138 /* Use 'Purple idle' */
139 time_idle = time(NULL) - last_active_time; 139 time_idle = time(NULL) - last_active_time;
140 idle_recheck_interval = 0; 140 idle_recheck_interval = 0;
141 } 141 }