+//#1750161
+guint64 hbfile_file_get_time_modified(gchar *filepath)
+{
+guint64 retval = 0ULL;
+GFile *gfile;
+GFileInfo *gfileinfo;
+
+ DB( g_print("\n[hbfile] get time modified\n") );
+
+ gfile = g_file_new_for_path(filepath);
+ gfileinfo = g_file_query_info (gfile, G_FILE_ATTRIBUTE_TIME_MODIFIED, 0, NULL, NULL);
+ if( gfileinfo )
+ {
+ retval = g_file_info_get_attribute_uint64 (gfileinfo, G_FILE_ATTRIBUTE_TIME_MODIFIED);
+ DB( g_print("- '%s' last access = %lu\n", filepath, retval) );
+ g_object_unref(gfileinfo);
+ }
+ g_object_unref(gfile);
+
+ return retval;
+}
+
+
+void hbfile_file_default(void)
+{
+ DB( g_print("\n[hbfile] default\n") );
+
+ //todo: maybe translate this also
+ hbfile_change_filepath(g_build_filename(PREFS->path_hbfile, "untitled.xhb", NULL));
+ GLOBALS->hbfile_is_new = TRUE;
+ GLOBALS->hbfile_is_bak = FALSE;
+ GLOBALS->xhb_timemodified = 0ULL;
+
+ DB( g_print("- path_hbfile is '%s'\n", PREFS->path_hbfile) );
+ DB( g_print("- xhb_filepath is '%s'\n", GLOBALS->xhb_filepath) );
+}