Esempio n. 1
0
static gboolean
check_file_done (gpointer user_data)
{
  AsyncExistenceJob *job = user_data;

  finish_prepare_screenshot (job->retval, job->window, job->rectangle);

  async_existence_job_free (job);
  
  return FALSE;
}
Esempio n. 2
0
static gboolean
prepare_screenshot_timeout (gpointer data)
{
  if (screenshot_config->take_area_shot)
    screenshot_select_area_async (rectangle_found_cb);
  else
    finish_prepare_screenshot (NULL);

  screenshot_save_config ();

  return FALSE;
}
static gboolean
prepare_screenshot_timeout (gpointer user_data)
{
  ScreenshotApplication *self = user_data;

  if (screenshot_config->take_area_shot)
    screenshot_select_area_async (rectangle_found_cb, self);
  else
    finish_prepare_screenshot (self, NULL);

  screenshot_save_config ();

  return FALSE;
}
static void
rectangle_found_cb (GdkRectangle *rectangle,
                    gpointer user_data)
{
  ScreenshotApplication *self = user_data;

  if (rectangle != NULL)
    {
      finish_prepare_screenshot (self, rectangle);
    }
  else
    {
      /* user dismissed the area selection, possibly show the dialog again */
      g_application_release (G_APPLICATION (self));

      if (screenshot_config->interactive)
        screenshot_show_interactive_dialog (self);
    }
}
Esempio n. 5
0
static void
rectangle_found_cb (GdkRectangle *rectangle)
{
  finish_prepare_screenshot (rectangle);
}