summaryrefslogtreecommitdiff
path: root/mate-screenshot/src/mate-screenshot.c
diff options
context:
space:
mode:
authormonsta <[email protected]>2017-10-12 12:39:18 +0300
committermonsta <[email protected]>2017-10-12 12:39:18 +0300
commitb0a9d1377e0f99b3c2a496a12e6973a60ba9e384 (patch)
treefb03c914e848112b1f4a5fa53478e2bcaeb00074 /mate-screenshot/src/mate-screenshot.c
parentdeb5ea1089ff879e6a693957f3f128007d6b3476 (diff)
downloadmate-utils-b0a9d1377e0f99b3c2a496a12e6973a60ba9e384.tar.bz2
mate-utils-b0a9d1377e0f99b3c2a496a12e6973a60ba9e384.tar.xz
screenshot: don't get window title as it's not used later
it's useless since https://github.com/mate-desktop/mate-utils/commit/8f060cfddeedc196cf8689ffc670a80cbe5698c6 fixes https://github.com/mate-desktop/mate-utils/issues/165
Diffstat (limited to 'mate-screenshot/src/mate-screenshot.c')
-rw-r--r--mate-screenshot/src/mate-screenshot.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/mate-screenshot/src/mate-screenshot.c b/mate-screenshot/src/mate-screenshot.c
index 499b582a..00b95677 100644
--- a/mate-screenshot/src/mate-screenshot.c
+++ b/mate-screenshot/src/mate-screenshot.c
@@ -93,7 +93,6 @@ static GdkPixbuf *screenshot = NULL;
/* Global variables*/
static char *last_save_dir = NULL;
-static char *window_title = NULL;
static char *temporary_file = NULL;
static gboolean save_immediately = FALSE;
static GSettings *settings = NULL;
@@ -1030,7 +1029,7 @@ out:
}
static GdkWindow *
-find_current_window (char **window_title)
+find_current_window (void)
{
GdkWindow *window;
@@ -1045,15 +1044,6 @@ find_current_window (char **window_title)
take_window_shot = FALSE;
window = gdk_get_default_root_window ();
}
- else
- {
- gchar *tmp, *sanitized;
-
- tmp = screenshot_get_window_title (window);
- sanitized = screenshot_sanitize_filename (tmp);
- g_free (tmp);
- *window_title = sanitized;
- }
}
else
{
@@ -1075,7 +1065,7 @@ push_check_file_job (GdkRectangle *rectangle)
job->base_uris[2] = g_strconcat ("file://", g_get_tmp_dir (), NULL);
job->iteration = 0;
job->type = TEST_LAST_DIR;
- job->window = find_current_window (&window_title);
+ job->window = find_current_window ();
if (rectangle != NULL)
{