412 |
static gboolean on_cachelist_focus_in(GtkWidget *widget, GdkEventFocus *event, |
static gboolean on_cachelist_focus_in(GtkWidget *widget, GdkEventFocus *event, |
413 |
gpointer data) { |
gpointer data) { |
414 |
|
|
|
|
|
415 |
/* we don't want a runnign timer yet */ |
/* we don't want a runnign timer yet */ |
416 |
if(!g_object_get_data(G_OBJECT(data), "handler_id")) { |
if(!g_object_get_data(G_OBJECT(data), "handler_id")) { |
417 |
printf("focus received: restarting cachelist timer\n"); |
printf("focus received: restarting cachelist timer\n"); |
422 |
|
|
423 |
g_object_set_data(G_OBJECT(data), "handler_id", (gpointer) |
g_object_set_data(G_OBJECT(data), "handler_id", (gpointer) |
424 |
gtk_timeout_add(CACHELIST_UPDATE_TIMEOUT, cachelist_update, data)); |
gtk_timeout_add(CACHELIST_UPDATE_TIMEOUT, cachelist_update, data)); |
425 |
|
|
426 |
|
/* and redo list immediately */ |
427 |
|
cachelist_redraw(appdata); |
428 |
} |
} |
429 |
|
|
430 |
return FALSE; |
return FALSE; |