Skip to content
Snippets Groups Projects
Commit f6b1ced5 authored by Jerome Guelfucci's avatar Jerome Guelfucci
Browse files

* lib/screenshooter-actions.c: correctly set the active folder in the

  file chooser, this is useful when using the -s cli option. Patch by
  Enrico Tröger.



(Old svn revision: 6688)
parent 00e8cba4
No related branches found
No related tags found
No related merge requests found
2009-02-15 jeromeg
* lib/screenshooter-actions.c: correctly set the active folder in the
file chooser, this is useful when using the -s cli option. Patch by
Enrico Tröger.
2009-02-08 jeromeg
* configure.ac.in: add maintainer information about xml2po and
......
......@@ -7,6 +7,8 @@
be annoying.
- fix build without Gio (#4894).
- do not use a verb for the desktop file title (#4914).
- set the correct folder in the filechooser when using the -s CLI
option. Thanks to Enrico Tröger.
* Translations updates.
......
......@@ -21,28 +21,17 @@
void screenshooter_take_and_output_screenshot (ScreenshotData *sd)
{
GdkPixbuf *screenshot =
GdkPixbuf *screenshot =
screenshooter_take_screenshot (sd->region, sd->delay);
if (sd->action == SAVE)
{
if (sd->show_save_dialog == 1)
{
gchar *home = g_strdup (DEFAULT_SAVE_DIRECTORY);
screenshooter_save_screenshot (screenshot,
1,
home);
if (home != NULL)
g_free (home);
}
else
{
screenshooter_save_screenshot (screenshot,
0,
sd->screenshot_dir);
}
if (sd->screenshot_dir == NULL)
sd->screenshot_dir = g_strdup (DEFAULT_SAVE_DIRECTORY);
screenshooter_save_screenshot (screenshot,
TRUE,
sd->screenshot_dir);
}
else if (sd->action == CLIPBOARD)
{
......@@ -52,22 +41,22 @@ void screenshooter_take_and_output_screenshot (ScreenshotData *sd)
else
{
gchar *tempdir = g_strdup (g_get_tmp_dir ());
gchar *screenshot_path =
screenshooter_save_screenshot (screenshot,
FALSE,
screenshooter_save_screenshot (screenshot,
FALSE,
tempdir);
if (screenshot_path != NULL)
{
screenshooter_open_screenshot (screenshot_path, sd->app);
g_free (screenshot_path);
}
if (tempdir != NULL)
g_free (tempdir);
}
#endif
g_object_unref (screenshot);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment