Change literal to G_FILE_ATTRIBUTE_TIME_MODIFIED, change line spacing in template help
This commit is contained in:
@@ -1030,7 +1030,7 @@ Glib::ustring BatchQueue::calcAutoFileNameBase (const Glib::ustring& origFileNam
|
|||||||
{
|
{
|
||||||
Glib::RefPtr<Gio::File> file = Gio::File::create_for_path(origFileName);
|
Glib::RefPtr<Gio::File> file = Gio::File::create_for_path(origFileName);
|
||||||
if (file) {
|
if (file) {
|
||||||
Glib::RefPtr<Gio::FileInfo> info = file->query_info("time::modified");
|
Glib::RefPtr<Gio::FileInfo> info = file->query_info(G_FILE_ATTRIBUTE_TIME_MODIFIED);
|
||||||
if (info) {
|
if (info) {
|
||||||
dateTime = info->get_modification_date_time();
|
dateTime = info->get_modification_date_time();
|
||||||
}
|
}
|
||||||
|
@@ -381,7 +381,7 @@ void BatchQueuePanel::populateTemplateHelpBuffer(Glib::RefPtr<Gtk::TextBuffer> b
|
|||||||
#else
|
#else
|
||||||
auto exampleFilePath = M("QUEUE_LOCATION_TEMPLATE_HELP_PATHS_EXAMPLE_LINUX");
|
auto exampleFilePath = M("QUEUE_LOCATION_TEMPLATE_HELP_PATHS_EXAMPLE_LINUX");
|
||||||
#endif
|
#endif
|
||||||
pos = buffer->insert_markup(pos, Glib::ustring::format("\n ", exampleFilePath, "\n"));
|
pos = buffer->insert_markup(pos, Glib::ustring::format("\n ", exampleFilePath, "\n\n"));
|
||||||
pos = buffer->insert_markup(pos, M("QUEUE_LOCATION_TEMPLATE_HELP_PATHS_BODY_2"));
|
pos = buffer->insert_markup(pos, M("QUEUE_LOCATION_TEMPLATE_HELP_PATHS_BODY_2"));
|
||||||
// Examples are generated from exampleFilePath using the actual template processing function
|
// Examples are generated from exampleFilePath using the actual template processing function
|
||||||
Options savedOptions = options; // to be restored after generating example results
|
Options savedOptions = options; // to be restored after generating example results
|
||||||
|
Reference in New Issue
Block a user