Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.3
libfm
libfm-1.2.3-Fix-SF932.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File libfm-1.2.3-Fix-SF932.patch of Package libfm
From 30df77f34fdb8b65f09c62b2ca88536130622298 Mon Sep 17 00:00:00 2001 From: Andriy Grytsenko <andrej@rep.kiev.ua> Date: Thu, 14 May 2015 18:46:11 +0300 Subject: [PATCH] [SF#932] Fix renaming of desktop entries on copy operation error. It was the file name which was set in renaming dialog but it was compared with display name instead when decided whether "Rename" button should be active or not. --- diff --git a/src/base/fm-thumbnail-loader.c b/src/base/fm-thumbnail-loader.c index 01a4a75..f0292f1 100644 --- a/src/base/fm-thumbnail-loader.c +++ b/src/base/fm-thumbnail-loader.c @@ -351,6 +351,7 @@ static gboolean is_thumbnail_outdated(GObject* thumb_pix, const char* thumbnail_ { /* if the thumbnail png file does not contain "tEXt::Thumb::MTime" value, * we compare the mtime of the thumbnail with its original directly. */ + /* FIXME: XDG specification requires to regenerate it in such case */ struct stat statbuf; if(stat(thumbnail_path, &statbuf) == 0) /* get mtime of the thumbnail file */ { @@ -481,6 +482,7 @@ static gpointer load_thumbnail_thread(gpointer user_data) memcpy( large_basename, md5, 32 ); task->large_path = large_path; } + /* FIXME: support fail/<PRG>/<MD5>.png to skip creation */ if(task->flags & (GENERATE_NORMAL|GENERATE_LARGE)) generate_thumbnails(task); /* second cycle */ diff --git a/src/gtk/fm-progress-dlg.c b/src/gtk/fm-progress-dlg.c index 77a28bc..fa084b6 100644 --- a/src/gtk/fm-progress-dlg.c +++ b/src/gtk/fm-progress-dlg.c @@ -2,7 +2,7 @@ * fm-progress-dlg.c * * Copyright 2009 PCMan <pcman.tw@gmail.com> - * Copyright 2012-2014 Andriy Grytsenko (LStranger) <andrej@rep.kiev.ua> + * Copyright 2012-2015 Andriy Grytsenko (LStranger) <andrej@rep.kiev.ua> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -262,8 +262,6 @@ static gint on_ask_rename(FmFileOpsJob* job, FmFileInfo* src, FmFileInfo* dest, tmp = g_filename_display_name(fm_path_get_basename(path)); gtk_entry_set_text(filename, tmp); - g_free(tmp); - tmp = g_strdup(fm_file_info_get_disp_name(dest)); g_object_set_data_full(G_OBJECT(filename), "old_name", tmp, g_free); g_signal_connect(filename, "changed", G_CALLBACK(on_filename_changed), gtk_builder_get_object(builder, "rename")); -- 2.1.4
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor