Commit 625167de authored by Alberts Muktupāvels's avatar Alberts Muktupāvels
Browse files

screenshot: fix fade timeout

parent c4a7e269
......@@ -28,7 +28,6 @@
#define FLASH_DURATION 100
#define FLASH_ANIMATION_RATE 200
#define FLASH_FADE_FACTOR 0.95
struct _GfFlashspot
{
......@@ -60,7 +59,9 @@ fade (gpointer user_data)
flashspot = GF_FLASHSPOT (user_data);
opacity = gtk_widget_get_opacity (flashspot->window);
gtk_widget_set_opacity (flashspot->window, opacity * FLASH_FADE_FACTOR);
opacity -= 0.02;
gtk_widget_set_opacity (flashspot->window, opacity);
if (opacity <= 0.01)
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment