[gnome-screenshot] screenshot: make sure to emit the screenshot taken sound for clipboard
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-screenshot] screenshot: make sure to emit the screenshot taken sound for clipboard
- Date: Thu, 26 Jan 2012 04:32:43 +0000 (UTC)
commit f604a0f59a90d3bcd5c7eee19c9cb43326ce5933
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Wed Jan 25 22:31:00 2012 -0500
screenshot: make sure to emit the screenshot taken sound for clipboard
src/screenshot-application.c | 4 ++++
src/screenshot-utils.c | 3 ---
2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/screenshot-application.c b/src/screenshot-application.c
index 508cc9a..ba20355 100644
--- a/src/screenshot-application.c
+++ b/src/screenshot-application.c
@@ -309,6 +309,8 @@ build_filename_ready_cb (GObject *source,
return;
}
+ screenshot_play_sound_effect ("screen-capture", _("Screenshot taken"));
+
self->priv->dialog = screenshot_dialog_new (self->priv->screenshot, save_uri);
toplevel = screenshot_dialog_get_toplevel (self->priv->dialog);
gtk_widget_show (toplevel);
@@ -368,6 +370,8 @@ finish_prepare_screenshot (ScreenshotApplication *self,
if (screenshot_config->copy_to_clipboard)
{
screenshot_save_to_clipboard (self);
+ screenshot_play_sound_effect ("screen-capture", _("Screenshot taken"));
+
g_application_release (G_APPLICATION (self));
return;
diff --git a/src/screenshot-utils.c b/src/screenshot-utils.c
index 3995062..b0091be 100644
--- a/src/screenshot-utils.c
+++ b/src/screenshot-utils.c
@@ -652,9 +652,6 @@ screenshot_get_pixbuf (GdkRectangle *rectangle)
screenshot = screenshot_fallback_get_pixbuf (rectangle);
}
- if (screenshot != NULL)
- screenshot_play_sound_effect ("screen-capture", _("Screenshot taken"));
-
g_free (path);
g_free (tmpname);
g_free (filename);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]